{"id":761,"date":"2009-10-12T11:47:31","date_gmt":"2009-10-12T03:47:31","guid":{"rendered":"http:\/\/www.impjq.net\/blog\/2009\/10\/12\/android-browser-fakewebview%e5%92%8ctabpicker%e5%88%86%e6%9e%90\/"},"modified":"2018-12-07T23:20:47","modified_gmt":"2018-12-07T15:20:47","slug":"android-browser-fakewebview%e5%92%8ctabpicker%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/pjq.me\/?p=761","title":{"rendered":"Android Browser Fakewebview\u548ctabPicker\u5206\u6790"},"content":{"rendered":"<p>\u7814\u7a76\u4e86\u4e0bAndroid Browser\u7684Fakewebview\u548ctabPicker,\u5728\u8fd9\u91cc\u505a\u4e2a<a href=\"http:\/\/docs.google.com\/View?id=dg9p7dc4_43hcr83fgr\">\u7b14\u8bb0<\/a>.<\/p>\n<p>Android Browser\u652f\u6301\u591a\u4e2atab,\u6700\u591a\u652f\u63018\u4e2a:<br \/>\n\u5728TabControl\u91cc\u6709\u8bbe\u7f6e:<br \/>\nclass TabControl {<br \/>\n    \/\/ Log Tag<br \/>\n    private static final String LOGTAG = &#8220;TabControl&#8221;;<br \/>\n    \/\/ Maximum number of tabs.<br \/>\n    static final int MAX_TABS = 8;<\/p>\n<p><!--more--><\/p>\n<p>\u7b2c\u4e00\u6b21\u8fdbBrowser\u540e,\u5148\u62e9Menu\u4f1a\u6709\u4e00\u4e2a&#8221;New Window&#8221;\u7684\u529f\u80fd,\u9009\u62e9\u540e\u4f1a\u6253\u5f00\u4e00\u4e2a\u65b0\u7684tap(\u5177\u4f53\u4f4d\u7f6e\u76f4\u63a5\u7528SourceInsight\u67e5\u627e\u5c31\u884c\u4e86):<br \/>\n\u7b2c\u4e00\u6b21\u9ed8\u8ba4\u4f1a\u6253\u5f00\u8bbe\u7f6e\u7684HomePage:  openTabAndShow(mSettings.getHomePage(), null, false, null);:<br \/>\n        case R.id.windows_menu_id:<br \/>\n                if (mTabControl.getTabCount() == 1) {<br \/>\n                    openTabAndShow(mSettings.getHomePage(), null, false, null);<br \/>\n                } else {<br \/>\n                    tabPicker(true, mTabControl.getCurrentIndex(), false);<br \/>\n                }<br \/>\n                break;<br \/>\n1.  private TabControl.Tab openTabAndShow(UrlData urlData, final Message msg,<br \/>\n            boolean closeOnExit, String appId)<br \/>\n2.tabPicker(false, ImageGrid.NEW_TAB, false);<br \/>\n3.mTabOverview = new ImageGrid(this, stay, l);<br \/>\n4.   Tab createNewTab(boolean closeOnExit, String appId, String url)<\/p>\n<p>\u7136\u540e\u518d\u6309Menu\u952e\u4f1a\u51fa\u73b0&#8221;Windows&#8221;\u529f\u80fd,\u8fd9\u4e2a\u5c31\u662f\u7531&#8221;New Window&#8221;\u53d8\u8fc7\u6765\u7684,\u64cd\u4f5c\u8fc7\u7a0b:<br \/>\n1. tabPicker(true, mTabControl.getCurrentIndex(), false);<br \/>\n2.  public ImageGrid(Context context, boolean live, Listener l)<br \/>\n3.  mAdapter = new ImageAdapter(context, this, live);<br \/>\n        setAdapter(mAdapter);<\/p>\n<p>\u4e4b\u540e\u5c31\u4f1a\u51fa\u73b0\u4e00\u4e2atap\u9009\u62e9\u754c\u9762\u4e86,\u5e76\u4e14\u662f\u5e26\u7f51\u9875\u7f29\u7565\u56fe\u7684.<\/p>\n<p>\u4e0b\u9762\u5c31\u8981\u627e\u627e\u8fd9\u4e2a\u754c\u9762\u662f\u600e\u4e48\u521b\u5efa\u51fa\u6765\u7684:<br \/>\n\u7531\u4e8e\u6211\u5df2\u7ecf\u627e\u5230\u4e86\u6574\u8fc7\u8fc7\u7a0b,\u6240\u4ee5\u4ece\u4e0b\u9762\u6574\u7406\u4e00\u4e0b\u6574\u4e2a\u8fc7\u7a0b:<br \/>\n1.\u5148\u4ece\u5b83\u7684\u5b9a\u4e49UI\u51fa\u624b:<br \/>\nlayout\\tabitem.xml\u91cc\u5b9a\u4e49\u4e86\u6bcf\u4e2aitem\u7684UI:<\/p>\n<pre lang=\"xml\" line=\"1\">\n&lt;FrameLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\" android:layout_width=\"fill_parent\" android:orientation=\"vertical\" android:padding=\"4dip\" android:background=\"@color\/white\"&gt;\n  &lt;com.android.browser.FakeWebView android:id=\"@+id\/icon\" android:background=\"@color\/black\" android:layout_width=\"fill_parent\" android:layout_height=\"fill_parent\" \/&gt;\n  &lt;TextView android:id=\"@+id\/label\" android:layout_width=\"fill_parent\" android:layout_height=\"wrap_content\" android:layout_gravity=\"bottom\" android:textAppearance=\"?android:attr\/textAppearanceMedium\" android:textColor=\"@color\/white\" android:maxLines=\"1\" android:paddingTop=\"3dip\" android:paddingBottom=\"3dip\" android:paddingLeft=\"2dip\" android:paddingRight=\"2dip\" android:scrollHorizontally=\"true\" android:background=\"#CC000000\" \/&gt;\n  &lt;ImageView android:id=\"@+id\/close\" android:focusable=\"false\" android:layout_width=\"wrap_content\" android:layout_height=\"wrap_content\" android:layout_gravity=\"bottom|right\" android:paddingTop=\"14dip\" android:paddingBottom=\"12dip\" android:paddingLeft=\"12dip\" android:paddingRight=\"12dip\" android:src=\"@android:drawable\/btn_dialog\" \/&gt;\n  &lt;\/FrameLayout&gt;\n\n<\/pre>\n<p>\u5305\u62ec\u4e86\u4e00\u4e2aFakeWebView:\u663e\u793a\u7f51\u9875\u7f29\u7565\u56fe\u7684,\u4e00\u4e2aTextView:\u663e\u793a\u7f51\u9875\u540d\u79f0\u7684,\u4e00\u4e2aImageView\u663e\u793aclose\u6309\u952e\u7684.<\/p>\n<p>2.\u518d\u770b\u770b\u663e\u793a\u7f51\u9875\u7f29\u7565\u56fe\u7684FakeWebView:<br \/>\npublic class FakeWebView extends ImageView<br \/>\nextends\u81eaImageView,\u6211\u4eec\u6700\u5173\u6ce8\u7684\u5c31\u662f\u5982\u4f55\u5c06\u56fe\u7247\u663e\u793a\u51fa\u6765\u4e86:<br \/>\n\u6700\u91cd\u8981\u7684\u5c31\u662f:<br \/>\n   @Override<br \/>\n    protected void onDraw(Canvas canvas) {<br \/>\n        if (mUsesResource) {<br \/>\n            super.onDraw(canvas);<br \/>\n        } else {<br \/>\n            \/\/ Always draw white behind the picture just in case the picture<br \/>\n            \/\/ draws nothing.<br \/>\n            \/\/ FIXME: We used to draw white only when the WebView was null but<br \/>\n            \/\/ sometimes the picture was empty. So now we always draw white. It<br \/>\n            \/\/ would be nice to know if the picture is empty so we can avoid<br \/>\n            \/\/ drawing white.<br \/>\n            canvas.drawColor(Color.WHITE);<br \/>\n            if (mPickerData != null) {<br \/>\n                final Picture p = mPickerData.mPicture;<br \/>\n                if (p != null) {<br \/>\n                    canvas.save();<br \/>\n                    float scale = getWidth() * mPickerData.mScale<br \/>\n                            \/ mPickerData.mWidth;<br \/>\n                    \/\/ Check for NaN and infinity.<br \/>\n                    if (Float.isNaN(scale) || Float.isInfinite(scale)) {<br \/>\n                        scale = 1.0f;<br \/>\n                    }<br \/>\n                    canvas.scale(scale, scale);<br \/>\n                    canvas.translate(-mPickerData.mScrollX,<br \/>\n                            -mPickerData.mScrollY);<br \/>\n                    canvas.drawPicture(p);<br \/>\n                    canvas.restore();<br \/>\n                }<br \/>\n            }<br \/>\n        }<br \/>\n    }<br \/>\n\u753b\u56fe\u50cf\u7684\u5c31\u662f\u8fd9\u53e5:canvas.drawPicture(p);\u8fd9\u4e2apicture\u5c31\u662f\u4fdd\u5b58\u5728\u8fd9\u4e2atap\u91cc\u7684\u7f51\u9875\u7f29\u7565\u56fe\u4e86,\u8fd9\u91cc\u5173\u4e8ecanvas\u7684\u7528\u6cd5,\u770b\u8bf4\u660e\u5927\u6982\u90fd\u662f:<br \/>\n\u5148canvas.save();\u7136\u540e\u8fdb\u884c\u5404\u79cd\u64cd\u4f5c,\u5982\u65cb\u8f6c\u7b49,\u518d canvas.restore();<\/p>\n<p>\u8fd9\u4e2a\u7c7b\u91cc\u8fd8\u6709\u4e00\u4e2a\u91cd\u8981\u65b9\u6cd5\u5c31\u662f:public void setTab(TabControl.Tab t),\u5b83\u63d0\u4f9b\u4e86\u7ed9\u8fd9\u4e2aFakeWebView\u7ed1\u5b9a\u6570\u636e\u7684\u529f\u80fd,\u6240\u4ee5\u7684\u6570\u636e\u90fd\u662f\u901a\u8fc7\u5b83\u7ed1\u5b9a\u4e0a\u53bb\u7684.<\/p>\n<p>3.\u627e\u5230\u4e86tapPicker\u7684\u7ec4\u6210item,\u518d\u8bb2\u8bb2\u5b83\u662f\u600e\u6837\u5c06\u8fd9\u4e9b\u4e2atabitem\u653e\u5230\u4e00\u8d77\u7684:<br \/>\n\u8bf4\u8d77\u6765\u5176\u5b83\u4e5f\u633a\u7b80\u5355\u7684,\u5148\u521b\u5efa\u4e00\u4e2aImageGrid,\u7528\u6765\u6446\u653e\u8fd9\u4e9b\u4e2aitem,\u5c06\u7ed9\u5b83\u8bbe\u7f6e\u4e00\u4e2aImageAdapter:\u901a\u8fc7getView\u65b9\u6cd5\u6765\u521b\u5efa\u4e00\u4e2a\u4e2atabitem,\u6574\u4e2a\u8fc7\u7a0b\u5927\u6982\u5c31\u662f\u8fd9\u4e2a\u6837\u5b50\u7684.<br \/>\n\u4e0b\u9762\u5148\u8bb2\u8bb2ImageGride:<br \/>\nclass ImageGrid extends GridView implements OnItemClickListener,<br \/>\n        OnCreateContextMenuListener<br \/>\n\u5728\u5b83\u7684\u6784\u9020\u65b9\u6cd5\u91cc\u9762\u8fdb\u884c\u4e86\u521d\u59cb\u5316,\u6700\u91cd\u8981\u7684\u5c31\u662f\u8bbe\u7f6elistener\u548cAdapter\u4e86,\u9700\u8981\u6ce8\u610f\u7684\u662fpublic interface Listener,<br \/>\n\u8fd9\u4e2a\u63a5\u53e3\u5c31\u662f\u7528\u6765\u76d1\u542ctabitem\u70b9\u51fb\u4e8b\u4ef6\u7684,\u5305\u62ec\u6253\u5f00\u7f51\u9875\u548cremove\u6389\u4e00\u4e2atabitem, \u8fd9\u4e2a\u63a5\u53e3\u7684\u5177\u4f53\u5b9e\u73b0\u5728BrowserActivity\u91cc:<br \/>\nprivate class TabListener implements ImageGrid.Listener<br \/>\n\u5728remove\u51fd\u6570\u91cc\u5b9e\u9645\u4e86remove\u6389tabitem\u7684\u529f\u80fd,\u540c\u65f6\u5b83\u8fd9\u91cc\u4e5f\u8bf4\u660e\u4e86\u5982\u679c\u4ec5\u5269\u4e0b\u4e00\u4e2atabitem,remove\u7684\u64cd\u4f5c\u5c31\u76f8\u5f53\u4e8e\u662f\u6253\u5f00\u4e00\u4e2a\u65b0\u7684tabitem\u4e86.<br \/>\n\u5728onClick\u51fd\u6570\u91cc\u5c31\u5b9e\u73b0\u4e86\u6253\u5f00\u4e00\u4e2atabitem\u7684\u64cd\u4f5c.<\/p>\n<p>\u518d\u8bb2\u8bb2ImageAdapter:<br \/>\npublic class ImageAdapter implements ListAdapter<br \/>\n\u662f\u4e00\u4e2aListAdapter,\u5728getView\u65b9\u6cd5\u91cc\u5c31\u6709\u521b\u5efa\u4e00\u4e2atabitem\u7684\u8fc7\u7a0b:<br \/>\n LayoutInflater factory = LayoutInflater.from(mContext);<br \/>\n            v = factory.inflate(R.layout.tabitem, null);<br \/>\n\u5728\u8fd9\u91cc\u4e5f\u8bbe\u7f6e\u4e86\u90a3\u4e2a\u5173\u95ed\u6309\u952e\u7684listener:<br \/>\n      close.setOnClickListener(new View.OnClickListener() {<br \/>\n                        public void onClick(View v) {<br \/>\n                            ImageAdapter.this.confirmClose(pos);<br \/>\n                        }<br \/>\n                    });<br \/>\n\u6700\u7ec8\u5728confirmClose\u91cc\u4e5f\u662f\u8c03\u7528\u4e86s ImageGrid.Listener\u91cc\u7684remove\u65b9\u6cd5\u6765\u5173\u95ed.<br \/>\n\u5728\u8fd9\u91cc\u5b83\u4e5f\u6709\u53e6\u5916\u521b\u5efa\u4e00\u4e2a&#8221;New window&#8221;\u7684tabitem:ImageGrid.NEW_TAB,<br \/>\n\u8fd9\u4e2a\u5730\u65b9\u5b83\u7528\u7684\u5f88\u5de7,\u5b83\u5c06\u8fd9\u4e2aposition\u8bbe\u7f6e\u4e3a-1,\u8fd9\u6837\u5c31\u597d\u533a\u522b\u4e8e\u5176\u5b83\u6b63\u5e38\u7684tabitem\u4e86.<\/p>\n<p>\u5173\u4e8eFakewebview\u7684\u6574\u4e2a\u8fc7\u7a0b\u5dee\u4e0d\u591a\u5c31\u662f\u8fd9\u4e9b\u4e86,\u5f53\u7136\u8fd9\u4e2a\u64cd\u4f5c\u8fc7\u7a0b\u4e2d\u7528\u5230\u7684animation\u5c31\u4e0d\u5728\u8fd9\u91cc\u4e86.<br \/>\n\u4ee5\u540e\u627e\u65f6\u95f4\u518d\u770b\u770btabitem\u5207\u6362\u7684animation\u662f\u600e\u6837\u5b9e\u73b0\u7684.<\/p>\n<div class=\"zemanta-pixie\"><img decoding=\"async\" class=\"zemanta-pixie-img\" alt=\"\" src=\"http:\/\/img.zemanta.com\/pixy.gif?x-id=7b1ad3d0-3486-81a3-a5dd-bfabb47bf66f\" \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7814\u7a76\u4e86\u4e0bAndroid Browser\u7684Fakewebview\u548ctabPicker,\u5728\u8fd9\u91cc\u505a\u4e2a\u7b14\u8bb0. Android Browser\u652f\u6301\u591a\u4e2atab,\u6700\u591a\u652f\u63018\u4e2a: \u5728TabControl\u91cc\u6709\u8bbe\u7f6e: class TabControl { \/\/ Log Tag private static final String LOGTAG = &#8220;TabControl&#8221;; \/\/ Maximum number of tabs. static final int MAX_TABS = 8;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-761","post","type-post","status-publish","format-standard","hentry","category-android"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Android Browser Fakewebview\u548ctabPicker\u5206\u6790 - Jianqing&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pjq.me\/?p=761\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android Browser Fakewebview\u548ctabPicker\u5206\u6790 - Jianqing&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u7814\u7a76\u4e86\u4e0bAndroid Browser\u7684Fakewebview\u548ctabPicker,\u5728\u8fd9\u91cc\u505a\u4e2a\u7b14\u8bb0. Android Browser\u652f\u6301\u591a\u4e2atab,\u6700\u591a\u652f\u63018\u4e2a: \u5728TabControl\u91cc\u6709\u8bbe\u7f6e: class TabControl { \/\/ Log Tag private static final String LOGTAG = &#8220;TabControl&#8221;; \/\/ Maximum number of tabs. static final int MAX_TABS = 8;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pjq.me\/?p=761\" \/>\n<meta property=\"og:site_name\" content=\"Jianqing&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2009-10-12T03:47:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-12-07T15:20:47+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/img.zemanta.com\/pixy.gif?x-id=7b1ad3d0-3486-81a3-a5dd-bfabb47bf66f\" \/>\n<meta name=\"author\" content=\"pengjianqing\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pengjianqing\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/pjq.me\/?p=761#article\",\"isPartOf\":{\"@id\":\"https:\/\/pjq.me\/?p=761\"},\"author\":{\"name\":\"pengjianqing\",\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"headline\":\"Android Browser Fakewebview\u548ctabPicker\u5206\u6790\",\"datePublished\":\"2009-10-12T03:47:31+00:00\",\"dateModified\":\"2018-12-07T15:20:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/pjq.me\/?p=761\"},\"wordCount\":372,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"image\":{\"@id\":\"https:\/\/pjq.me\/?p=761#primaryimage\"},\"thumbnailUrl\":\"http:\/\/img.zemanta.com\/pixy.gif?x-id=7b1ad3d0-3486-81a3-a5dd-bfabb47bf66f\",\"articleSection\":[\"Android\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/pjq.me\/?p=761#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/pjq.me\/?p=761\",\"url\":\"https:\/\/pjq.me\/?p=761\",\"name\":\"Android Browser Fakewebview\u548ctabPicker\u5206\u6790 - Jianqing&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/pjq.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/pjq.me\/?p=761#primaryimage\"},\"image\":{\"@id\":\"https:\/\/pjq.me\/?p=761#primaryimage\"},\"thumbnailUrl\":\"http:\/\/img.zemanta.com\/pixy.gif?x-id=7b1ad3d0-3486-81a3-a5dd-bfabb47bf66f\",\"datePublished\":\"2009-10-12T03:47:31+00:00\",\"dateModified\":\"2018-12-07T15:20:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/pjq.me\/?p=761#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/pjq.me\/?p=761\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pjq.me\/?p=761#primaryimage\",\"url\":\"http:\/\/img.zemanta.com\/pixy.gif?x-id=7b1ad3d0-3486-81a3-a5dd-bfabb47bf66f\",\"contentUrl\":\"http:\/\/img.zemanta.com\/pixy.gif?x-id=7b1ad3d0-3486-81a3-a5dd-bfabb47bf66f\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/pjq.me\/?p=761#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/pjq.me\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android Browser Fakewebview\u548ctabPicker\u5206\u6790\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/pjq.me\/#website\",\"url\":\"https:\/\/pjq.me\/\",\"name\":\"Jianqing&#039;s Blog\",\"description\":\"Thoughts and Future\",\"publisher\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/pjq.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\",\"name\":\"pengjianqing\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png\",\"contentUrl\":\"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png\",\"width\":460,\"height\":752,\"caption\":\"pengjianqing\"},\"logo\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/pjq.me\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android Browser Fakewebview\u548ctabPicker\u5206\u6790 - Jianqing&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pjq.me\/?p=761","og_locale":"en_US","og_type":"article","og_title":"Android Browser Fakewebview\u548ctabPicker\u5206\u6790 - Jianqing&#039;s Blog","og_description":"\u7814\u7a76\u4e86\u4e0bAndroid Browser\u7684Fakewebview\u548ctabPicker,\u5728\u8fd9\u91cc\u505a\u4e2a\u7b14\u8bb0. Android Browser\u652f\u6301\u591a\u4e2atab,\u6700\u591a\u652f\u63018\u4e2a: \u5728TabControl\u91cc\u6709\u8bbe\u7f6e: class TabControl { \/\/ Log Tag private static final String LOGTAG = &#8220;TabControl&#8221;; \/\/ Maximum number of tabs. static final int MAX_TABS = 8;","og_url":"https:\/\/pjq.me\/?p=761","og_site_name":"Jianqing&#039;s Blog","article_published_time":"2009-10-12T03:47:31+00:00","article_modified_time":"2018-12-07T15:20:47+00:00","og_image":[{"url":"http:\/\/img.zemanta.com\/pixy.gif?x-id=7b1ad3d0-3486-81a3-a5dd-bfabb47bf66f","type":"","width":"","height":""}],"author":"pengjianqing","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pengjianqing","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pjq.me\/?p=761#article","isPartOf":{"@id":"https:\/\/pjq.me\/?p=761"},"author":{"name":"pengjianqing","@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"headline":"Android Browser Fakewebview\u548ctabPicker\u5206\u6790","datePublished":"2009-10-12T03:47:31+00:00","dateModified":"2018-12-07T15:20:47+00:00","mainEntityOfPage":{"@id":"https:\/\/pjq.me\/?p=761"},"wordCount":372,"commentCount":1,"publisher":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"image":{"@id":"https:\/\/pjq.me\/?p=761#primaryimage"},"thumbnailUrl":"http:\/\/img.zemanta.com\/pixy.gif?x-id=7b1ad3d0-3486-81a3-a5dd-bfabb47bf66f","articleSection":["Android"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pjq.me\/?p=761#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pjq.me\/?p=761","url":"https:\/\/pjq.me\/?p=761","name":"Android Browser Fakewebview\u548ctabPicker\u5206\u6790 - Jianqing&#039;s Blog","isPartOf":{"@id":"https:\/\/pjq.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pjq.me\/?p=761#primaryimage"},"image":{"@id":"https:\/\/pjq.me\/?p=761#primaryimage"},"thumbnailUrl":"http:\/\/img.zemanta.com\/pixy.gif?x-id=7b1ad3d0-3486-81a3-a5dd-bfabb47bf66f","datePublished":"2009-10-12T03:47:31+00:00","dateModified":"2018-12-07T15:20:47+00:00","breadcrumb":{"@id":"https:\/\/pjq.me\/?p=761#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pjq.me\/?p=761"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pjq.me\/?p=761#primaryimage","url":"http:\/\/img.zemanta.com\/pixy.gif?x-id=7b1ad3d0-3486-81a3-a5dd-bfabb47bf66f","contentUrl":"http:\/\/img.zemanta.com\/pixy.gif?x-id=7b1ad3d0-3486-81a3-a5dd-bfabb47bf66f"},{"@type":"BreadcrumbList","@id":"https:\/\/pjq.me\/?p=761#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pjq.me\/"},{"@type":"ListItem","position":2,"name":"Android Browser Fakewebview\u548ctabPicker\u5206\u6790"}]},{"@type":"WebSite","@id":"https:\/\/pjq.me\/#website","url":"https:\/\/pjq.me\/","name":"Jianqing&#039;s Blog","description":"Thoughts and Future","publisher":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pjq.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60","name":"pengjianqing","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pjq.me\/#\/schema\/person\/image\/","url":"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png","contentUrl":"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png","width":460,"height":752,"caption":"pengjianqing"},"logo":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/image\/"},"url":"https:\/\/pjq.me\/?author=1"}]}},"views":30794,"_links":{"self":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts\/761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=761"}],"version-history":[{"count":0,"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts\/761\/revisions"}],"wp:attachment":[{"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}