{"id":860,"date":"2018-12-25T06:37:38","date_gmt":"2018-12-24T23:37:38","guid":{"rendered":"https:\/\/luckytruedev.com\/learning\/?p=860"},"modified":"2019-09-21T22:15:28","modified_gmt":"2019-09-21T15:15:28","slug":"pengenalan-android-user-interface-ui-webview","status":"publish","type":"post","link":"https:\/\/luckytruedev.com\/learning\/pengenalan-android-user-interface-ui-webview\/","title":{"rendered":"Pengenalan Android User Interface (UI) WebView"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"540\" height=\"313\" src=\"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/wp8aa8c58f_06.png\" alt=\"\" class=\"wp-image-871\" srcset=\"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/wp8aa8c58f_06.png 540w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/wp8aa8c58f_06-300x174.png 300w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/wp8aa8c58f_06-110x64.png 110w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/wp8aa8c58f_06-420x243.png 420w, https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2018\/12\/wp8aa8c58f_06-20x12.png 20w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><figcaption>Android WebView (Sumber Google Images)<\/figcaption><\/figure><\/div>\n\n\n\n<p>WebView adalah tampilan yang menampilkan halaman web di dalam aplikasi Anda. <\/p>\n\n\n<div id=\"lucky-4270768577\"><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>Anda juga bisa menentukan string HTML dan bisa menampilkannya di dalam aplikasi Anda menggunakan WebView. <br><br>contoh sintaks penerapan webview di class java.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code brush: plain; notranslate\">WebView mbrowser = (WebView) findViewById(R.id.webview);<\/pre>\n\n\n\n<p>WebView mengubah aplikasi Anda menjadi aplikasi web.<br><br>Untuk memuat url web ke WebView, Anda perlu memanggil<br><br><strong>loadUrl(String url)<\/strong>&nbsp; dari kelas WebView, menentukan url yang diperlukan. Sintaksnya adalah : <\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code brush: plain; notranslate\">mbrowser.loadUrl\n(\"http:\/\/www.youtube.com\/c\/AndroidMasterApp\");<\/pre>\n\n\n\n<p>Terkadang Anda perlu menambahkan beberapa javascript di browser Anda. Anda harus mengaktifkan javascriptMode pada Kode. <br><br>Sumber : Master Android (App)<\/p>\n<div id=\"lucky-3059957258\" 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>WebView adalah tampilan yang menampilkan halaman web di dalam aplikasi Anda. Anda juga bisa menentukan string HTML dan bisa menampilkannya di dalam aplikasi Anda menggunakan WebView. contoh sintaks penerapan webview di class java. WebView mengubah aplikasi Anda menjadi aplikasi web. Untuk memuat url web ke WebView, Anda perlu memanggil loadUrl(String url)&nbsp; dari kelas WebView, menentukan [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":871,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-860","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\/860","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=860"}],"version-history":[{"count":1,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/posts\/860\/revisions"}],"predecessor-version":[{"id":2283,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/posts\/860\/revisions\/2283"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/media\/871"}],"wp:attachment":[{"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/media?parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/categories?post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/tags?post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}