{"id":874,"date":"2018-12-26T06:07:34","date_gmt":"2018-12-25T23:07:34","guid":{"rendered":"https:\/\/luckytruedev.com\/learning\/?p=874"},"modified":"2019-09-21T22:14:52","modified_gmt":"2019-09-21T15:14:52","slug":"pengenalan-android-user-interface-ui-fab-button-snackbar","status":"publish","type":"post","link":"https:\/\/luckytruedev.com\/learning\/pengenalan-android-user-interface-ui-fab-button-snackbar\/","title":{"rendered":"Pengenalan Android User Interface (UI) Fab Button &amp; Snackbar"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-1024x379.png\" alt=\"\" class=\"wp-image-881\" width=\"489\" height=\"180\" srcset=\"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9.png 1024w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-300x111.png 300w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-768x284.png 768w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-110x41.png 110w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-420x155.png 420w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-770x285.png 770w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-20x7.png 20w\" sizes=\"auto, (max-width: 489px) 100vw, 489px\" \/><figcaption>Android Fab &amp; Snackbar<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>SnackBar<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"379\" src=\"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-1024x379.png\" alt=\"\" class=\"wp-image-881\" srcset=\"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9.png 1024w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-300x111.png 300w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-768x284.png 768w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-110x41.png 110w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-420x155.png 420w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-770x285.png 770w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture1-9-20x7.png 20w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Android Snackbar<\/figcaption><\/figure><\/div>\n\n\n\n<p>Snackbar di android adalah widget baru yang diperkenalkan dengan library Design Material sebagai pengganti Toast.<\/p>\n\n\n<div id=\"lucky-1257132058\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-5605825534849002\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-5605825534849002\" \ndata-ad-slot=\"5317815257\" \ndata-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\n\n\n<p><br><br>Android Snackbar adalah widget ringan dan digunakan untuk menampilkan pesan di bagian bawah aplikasi dengan swiping diaktifkan. <br><br>Contoh sintaks Snackbar yang diterapkan di class java.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code brush: plain; notranslate\">Snackbar snackbar = Snackbar.make(coordinatorLayout,   \"www.youtube.com\/c\/androidmasterapp\", Snackbar.LENGTH_LONG);\nsnackbar.show();<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Fab Button<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1010\" height=\"477\" src=\"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture2-3.png\" alt=\"\" class=\"wp-image-882\" srcset=\"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture2-3.png 1010w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture2-3-300x142.png 300w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture2-3-768x363.png 768w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture2-3-110x52.png 110w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture2-3-420x198.png 420w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture2-3-770x364.png 770w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/Picture2-3-20x9.png 20w\" sizes=\"auto, (max-width: 1010px) 100vw, 1010px\" \/><figcaption>Android Fab Button<\/figcaption><\/figure><\/div>\n\n\n\n<p>Tombol Aksi Mengambang Android adalah komponen menarik lainnya yang diperkenalkan dalam desain material. <br><br>Tombol aksi mengambang mengapung di UI dalam bentuk melingkar dengan tindakan yang menyertainya. <br><br>Untuk menggunakan fitur desain material, Anda harus menambahkan gradle terbaru : <\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code brush: plain; notranslate\">compile 'com.android.support:design:XX.X.X\u2018\n\n\/\/Ganti tulisan XX.X.X dengan versi terbaru.<\/pre>\n\n\n\n<p>Sumber : Master Android (App)<\/p>\n<div id=\"lucky-4131302849\" class=\"lucky-after-content lucky-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-5605825534849002\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-5605825534849002\" \ndata-ad-slot=\"5317815257\" \ndata-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>SnackBar Snackbar di android adalah widget baru yang diperkenalkan dengan library Design Material sebagai pengganti Toast. Android Snackbar adalah widget ringan dan digunakan untuk menampilkan pesan di bagian bawah aplikasi dengan swiping diaktifkan. Contoh sintaks Snackbar yang diterapkan di class java. Fab Button Tombol Aksi Mengambang Android adalah komponen menarik lainnya yang diperkenalkan dalam desain [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":881,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-874","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ltdv-android-tutor"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/posts\/874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/comments?post=874"}],"version-history":[{"count":1,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/posts\/874\/revisions"}],"predecessor-version":[{"id":2282,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/posts\/874\/revisions\/2282"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/media\/881"}],"wp:attachment":[{"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/media?parent=874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/categories?post=874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/tags?post=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}