{"id":167589,"date":"2020-10-15T01:28:21","date_gmt":"2020-10-14T17:28:21","guid":{"rendered":"http:\/\/4563.org\/?p=167589"},"modified":"2020-10-15T01:28:21","modified_gmt":"2020-10-14T17:28:21","slug":"android-kotlin-webview-%e8%87%aa%e5%b7%b1%e5%88%b6%e4%bd%9c%e8%a7%86%e9%a2%91%e5%ad%97%e5%b9%95%e5%8f%a0%e5%8a%a0%e5%9c%a8%e8%a7%86%e9%a2%91%e4%b8%8a-%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=167589","title":{"rendered":"Android\/Kotlin: webview \u81ea\u5df1\u5236\u4f5c\u89c6\u9891\u5b57\u5e55\u53e0\u52a0\u5728\u89c6\u9891\u4e0a, \u5982\u4f55\u5b9e\u73b0?"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Android\/Kotlin: webview \u81ea\u5df1\u5236\u4f5c\u89c6\u9891\u5b57\u5e55\u53e0\u52a0\u5728\u89c6\u9891\u4e0a, \u5982\u4f55\u5b9e\u73b0?               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sprinter <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u8bf7\u6559\u5404\u4f4d:<\/p>\n<p>\u64ad\u653e\u5668\u53ef\u4ee5\u64ad\u653e srt \u7b49\u5b57\u5e55, \u4f46\u663e\u793a\u6837\u5f0f\u5355\u4e00, \u6211\u9700\u8981\u663e\u793a\u9177\u70ab\u7684\u5b57\u5e55, \u76ee\u524d\u601d\u8def\u5982\u4e0b:<\/p>\n<ol>\n<li>\u7528 webview\/css \u505a\u5b57\u5e55\u53e0\u52a0\u5728\u89c6\u9891\u4e0a, webview \u53ea\u663e\u793a\u5b57\u5e55\u80cc\u666f\u900f\u660e.<\/li>\n<li>\u7528\u5b9a\u65f6\u5668, \u6839\u636e\u64ad\u653e\u65f6\u95f4\u663e\u793a\u76f8\u5173\u7684\u5b57\u5e55.<\/li>\n<\/ol>\n<p>\u8bf7\u95ee:<\/p>\n<ol>\n<li>webview \u80fd\u53e0\u52a0\u5728\u89c6\u9891\u4e0a, \u5e76\u4e14\u663e\u793a\u5b57\u5e55\u548c\u900f\u660e webview \u80cc\u666f\u5417?<\/li>\n<li>\u5b9a\u65f6\u5668\u5b9a\u65f6\u64ad\u653e\u5b57\u5e55\u7684\u8bdd, \u7528\u4ec0\u4e48\u5b9a\u65f6\u5668\u80fd\u4fdd\u8bc1\u65f6\u95f4\u7cbe\u786e?<\/li>\n<li>\u6709\u6ca1\u6709\u5176\u4ed6\u65b9\u6cd5\u80fd\u7528 CSS \u7f16\u7a0b\u6765\u81ea\u5b9a\u4e49\u9177\u70ab\u7684\u5b57\u5e55\u5e76\u663e\u793a?<\/li>\n<\/ol>\n<p>\u9ebb\u70e6\u5927\u5bb6\u652f\u62db!<\/p>\n<p>\u8c22\u8c22!!<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3717801\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : blueaurora <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. webview \u80fd\u53e0\u52a0\u5728\u89c6\u9891\u4e0a\u5427\uff0c\u4e0d\u8fc7\u80cc\u666f\u900f\u660e\u53ea\u663e\u793a\u6587\u5b57\u5185\u5bb9\u7684 webview \u53ef\u6ca1\u89c1\u8fc7..<br \/>2. \u64ad\u653e\u5668\u662f\u672c\u5730\u7684\uff0c\u4f46 webview \u7684\u65f6\u95f4\u662f web \u7684\uff0c\u6240\u4ee5\u7528 jsbridge \u7406\u8bba\u4e0a\u5e94\u8be5\u80fd\u540c\u6b65\u65f6\u95f4\u8fdb\u5ea6<\/p>\n<p>\u6211\u7684\u95ee\u9898\u662f\uff1a<br \/>1.\u64ad\u653e\u5668\u88ab webview \u8986\u76d6\u4f4f\u4e86\uff0c\u90a3\u64ad\u653e\u5668\u7684\u63a7\u5236\uff0c\u6bd4\u5982\u8fdb\u5ea6\u548c\u6682\u505c\u6309\u94ae\u600e\u4e48\u5904\u7406\uff1f<\/p>\n<p>\u5c31\u7b97\u57fa\u672c\u80fd\u8dd1\u901a\uff0c\u6211\u7684\u6000\u7591\u662f\uff1a<br \/>1. webview \u548c \u64ad\u653e\u5668\u90fd\u5c5e\u4e8e\u5f88\u91cd\u91cf\u7ea7\u7684\u63a7\u4ef6\uff0c\u521d\u59cb\u5316\u65f6\u95f4\u5f88\u6162\uff0c\u4e3b\u7ebf\u7a0b \u4f1a\u4e0d\u4f1a\u5361\uff1f<br \/>2. \u6211\u89c9\u5f97\u96be\u5ea6\u5f88\u5927\uff0c\u4f1a\u4e0d\u4f1a\u6709\u9002\u914d\u95ee\u9898<\/p>\n<p>webview \u548c\u64ad\u653e\u5668\u90fd\u662f\u5e95\u5c42\u76f4\u63a5\u6e32\u67d3\u7684\uff0c\u8bf4\u5b9e\u5728\u7684\u4e86\u89e3\u5e95\u5c42\u7684\u8bdd\uff0c\u89c9\u5f97\u8fd9\u6837\u7684\u4e0a\u5c42\u65b9\u6848\u8fd8\u633a\u6d6a\u8d39\u7684..\u4f46\u662f\u5982\u679c\u53ea\u80fd\u6709\u8fd9\u4e00\u4e2a\u65b9\u6848\u7684\u8bdd\uff0c\u4e5f\u53ea\u80fd\u8fd9\u6837\u4e86..                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3717802\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Nuttertoo1s <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Android \u7684\u540c\u4e00\u5e03\u5c40\u4e0b\uff0c\u540e\u4e00\u7ec4\u4ef6\u53ef\u4ee5\u8986\u76d6\u5230\u4e0a\u4e00\u7ec4\u4ef6\u4e0a\u9762\uff0cwebview \u6211\u8bb0\u5f97\u662f\u53ef\u4ee5\u8bbe\u7f6e\u900f\u660e\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3717803\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Nuttertoo1s <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Android \u597d\u50cf\u662f\u6ca1\u5f97\u8bbe\u7f6e\u5c42\u7ea7\u7684\uff08\u53cd\u6b63\u6211\u6ca1\u8bbe\u7f6e\u8fc7\uff09\uff0c\u60f3\u8c01\u5728\u6700\u4e0a\u9762\uff0c\u5c31\u628a\u7ec4\u4ef6\u5f80\u540e\u653e\u5c31\u884c\u4e86\u3002\u6bd4\u5982<br \/>&lt;ImageView<br \/> android:id=&#8221;@+id\/iv_1&#8243;<br \/> android:layout_width=&#8221;match_parent&#8221;<br \/> android:layout_height=&#8221;match_parent&#8221;\/&gt;<br \/> &lt;ImageView<br \/> android:id=&#8221;@+id\/iv_2&#8243;<br \/> android:layout_width=&#8221;match_parent&#8221;<br \/> android:layout_height=&#8221;match_parent&#8221;\/&gt;<br \/>\u8fd9\u79cd\u60c5\u51b5\u5c31\u662f 2 \u76d6\u5728 1 \u4e0a\u9762                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3717804\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : unco020511 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3a\u4ec0\u4e48\u4e00\u5b9a\u8981\u7528 css,\u4f60\u7684\u5b57\u5e55\u6765\u6e90\u662f css \u7f16\u7a0b\u8fc7\u7684?\u7528\u81ea\u5b9a\u4e49 view \u6765\u8986\u76d6\u5728\u89c6\u9891\u63a7\u4ef6\u4e0a \u4e0d\u662f\u66f4\u7b80\u5355\u4e00\u4e9b\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3717805\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cctrv <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u63db ass \u5b57\u5e55<br \/>\u627e\u4e00\u500b\u652f\u6301 ass \u7684\u64ad\u653e\u5668\u5c31\u597d\u4e86\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u96a8\u4fbf\u627e\u7684<br \/>https:\/\/github.com\/yuseisako\/TangoPlayer                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Android\/Kotlin: w&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/167589"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=167589"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/167589\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=167589"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=167589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}