{"id":1982,"date":"2022-11-25T18:00:47","date_gmt":"2022-11-25T10:00:47","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/appshangjia\/1982.html"},"modified":"2022-11-25T18:00:47","modified_gmt":"2022-11-25T10:00:47","slug":"miui-10-%e9%80%9a%e7%9f%a5%e6%a0%8f%e5%bf%ab%e6%8d%b7%e5%bc%80%e5%85%b3-quick-settings-tile-%e9%80%82%e9%85%8d%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/appshangjia\/1982.html","title":{"rendered":"MIUI 10 \u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173 (Quick Settings Tile) \u9002\u914d\u8bf4\u660e"},"content":{"rendered":"<h2 id=\"_0\">1. \u4ec0\u4e48\u662f<span class=\"wpcom_tag_link\">\u901a\u77e5\u680f<\/span><span class=\"wpcom_tag_link\">\u5feb\u6377\u5f00\u5173<\/span> (Quick Settings Tile)<\/h2>\n<p>\u5feb\u6377\u5f00\u5173 (Quick Settings Tile) \u662f <span class=\"wpcom_tag_link\">Android 7.0<\/span> \u5f15\u5165\u7684\u65b0\u529f\u80fd\uff0c\u652f\u6301\u5f00\u53d1\u8005\u81ea\u5b9a\u4e49\u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173\u3002\u4efb\u4f55\u5f00\u53d1\u8005\u90fd\u53ef\u4ee5\u6ce8\u518c\u5feb\u6377\u5f00\u5173\uff0c\u7136\u540e\u4f1a\u51fa\u73b0\u5728\u5f00\u5173\u7f16\u8f91\u9762\u677f\u4e2d\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/11\/20221124114749742.png\" alt=\"MIUI 10 \u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173 (Quick Settings Tile) \u9002\u914d\u8bf4\u660e\" \/><img decoding=\"async\" class=\"j-lazy\" src=\"https:\/\/www.yimenapp.com\/kb-yimen\/wp-content\/themes\/justnews\/themer\/assets\/images\/lazy.png\" data-original=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/11\/20221124114749742.png\" alt=\"MIUI 10 \u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173 (Quick Settings Tile) \u9002\u914d\u8bf4\u660e\" \/><\/figure>\n<p>&nbsp;\u4e3a\u4e86\u653e\u4e0b\u66f4\u591a\u7684\u5feb\u6377\u5f00\u5173\uff0cMIUI 10 \u5f00\u5173\u9762\u677f\u652f\u6301\u5de6\u53f3\u6a2a\u6ed1\uff0c\u4e5f\u4e0d\u9650\u5236\u5feb\u6377\u5f00\u5173\u7684\u6570\u91cf\u3002\u7528\u6237\u4e5f\u53ef\u4ee5\u81ea\u7531\u6392\u5e8f\u8fd9\u4e9b\u5f00\u5173\uff0c\u6bd4\u5982\u653e\u5728\u6700\u540e\u6216\u653e\u5728\u6700\u524d\u9762\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/11\/20221124114750813.png\" alt=\"MIUI 10 \u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173 (Quick Settings Tile) \u9002\u914d\u8bf4\u660e\" \/><img decoding=\"async\" class=\"j-lazy\" src=\"https:\/\/www.yimenapp.com\/kb-yimen\/wp-content\/themes\/justnews\/themer\/assets\/images\/lazy.png\" data-original=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/11\/20221124114750813.png\" alt=\"MIUI 10 \u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173 (Quick Settings Tile) \u9002\u914d\u8bf4\u660e\" \/><\/figure>\n<p>\u70b9\u51fb\u5f00\u5173\u7684\u884c\u4e3a\uff0c\u7531\u5f00\u65b9\u8005\u81ea\u884c\u5b9a\u4e49\uff0c\u53ef\u4ee5\u76f4\u63a5\u5f00\u542f\u67d0\u529f\u80fd\uff0c\u6216\u8005\u76f4\u63a5\u8df3\u8f6c\u5230\u67d0\u4e00\u9875\u9762\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/11\/20221124114753430.png\" alt=\"MIUI 10 \u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173 (Quick Settings Tile) \u9002\u914d\u8bf4\u660e\" \/><img decoding=\"async\" class=\"j-lazy\" src=\"https:\/\/www.yimenapp.com\/kb-yimen\/wp-content\/themes\/justnews\/themer\/assets\/images\/lazy.png\" data-original=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/11\/20221124114753430.png\" alt=\"MIUI 10 \u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173 (Quick Settings Tile) \u9002\u914d\u8bf4\u660e\" \/><\/figure>\n<h2 id=\"_1\">2. \u5982\u4f55\u9002\u914d\u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173 (Quick Settin<a href=\"https:\/\/app.applebyme.cn\/shengcheng-38.html\">APP\u5c01\u88c5<\/a>gs Tile)<\/h2>\n<p>\u53ef\u4ee5\u53c2\u8003\u5b98\u65b9\u6587\u6863\u4e2d\u4ee5\u4e0b\u4e24\u7ae0\u7684\u5185\u5bb9\uff1a<\/p>\n<ol>\n<li>Tile:&nbsp;https:\/\/developer.android.com\/reference\/android\/service\/quicksettings\/Tile<\/li>\n<li>TileService:&nbsp;https:\/\/developer.android.com\/reference\/android\/service\/quicksettings\/TileService<\/li>\n<\/ol>\n<p>\u5982\u679c\u9700\u8981\u5b8c\u6574\u7684\u8bb2\u89e3\uff0c\u53ef\u4ee5\u53c2\u8003\u8fd9\u7bc7\u8c37\u6b4c Framework \u5de5\u7a0b\u5e08\u7684\u535a\u5ba2\uff1aQuick Settings Tiles on Android 7.0\uff08\u53ef\u80fd\u9700\u8981\u7ffb\u5899\uff09\uff0c\u73b0\u6458\u5f55\u91cd\u70b9\u5982\u4e0b\uff1a<\/p>\n<h3 id=\"_1_0\">2.1. \u5728&nbsp;manifest&nbsp;\u4e2d\u58f0\u660e&nbsp;TileService&nbsp;\uff0c\u793a\u4f8b\u5982\u4e0b<\/h3>\n<pre class=\"wp-block-code\"><code>&lt;service\n  android:name=\".AwesomeTileService\"\n \n  <em>\/\/\u5feb\u6377\u5f00\u5173\u7684\u56fe\u6807<\/em>\n  android:icon=\"@drawable\/ic_tile_default\"\n \n  <em>\/\/\u5feb\u6377\u5f00\u5173\u7684\u540d\u79f0<\/em>\n  android:label=\"@string\/<a href=\"https:\/\/app.applebyme.cn\/shengcheng-116.html\">pdf\u751f\u6210app<\/a>tile_name\"\n  android:permission=\"android.permission.BIND_QUICK_SETTINGS_TILE\"&gt;\n  &lt;intent-filter&gt;\n    &lt;action\n      android:name=\"android.service.quicksettings.action.QS_TILE\"\/&gt;\n  &lt;\/intent-filter&gt;\n&lt;\/service&gt;<\/code><\/pre>\n<h3 id=\"_1_1\">2.2. \u51c6\u5907\u89c4\u8303\u7684\u5feb\u6377\u5f00\u5173\u56fe\u6807<\/h3>\n<p>\u5982\u4e0a\u6240\u8ff0\uff0candroid:icon&nbsp;\u662f\u663e\u793a\u5728\u901a\u77e5\u680f\u7684\u56fe\u6807\uff0c\u6709\u4ee5\u4e0b\u8981\u6c42\uff1a<\/p>\n<ul>\n<li>\u8981\u6c42\u662f&nbsp;vector drawable \u77e2\u91cf\u683c\u5f0f\uff08\u6ce8\u610f\u662f\u77e2\u91cf\u683c\u5f0f\uff09\u3002<\/li>\n<li>\u56fe\u5f62\u5fc5\u987b\u662f\u7eaf\u767d\u8272\uff0c\u900f\u660e\u80cc\u666f\uff0c\u56fe\u5f62\u548c\u529f\u80fd\u6709\u660e\u663e\u8054\u7cfb\u3002<\/li>\n<li>\u5927\u5c0f\u4e3a 24 x 24 dp \uff08\u6ce8\u610f\u5355\u4f4d\u4e0d\u662f px\uff09\u3002<\/li>\n<\/ul>\n<p>\u5feb\u6377\u5f00\u5173\u793a\u4f8b\uff08\u77e2\u91cf + \u7eaf\u767d + \u900f\u660e\u80cc\u666f\uff09\uff1a<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/11\/20221124114754526.png\" alt=\"MIUI 10 \u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173 (Quick Settings Tile) \u9002\u914d\u8bf4\u660e\" \/><img decoding=\"async\" class=\"j-lazy\" src=\"https:\/\/www.yimenapp.com\/kb-yimen\/wp-content\/themes\/justnews\/themer\/assets\/images\/lazy.png\" data-original=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/11\/20221124114754526.png\" alt=\"MIUI 10 \u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173 (Quick Settings Tile) \u9002\u914d\u8bf4\u660e\" \/><\/figure>\n<h3 id=\"_1_2\">2.3. \u6ce8\u610f\u4ee5\u4e0b\u4ea4\u4e92\u7ec6\u8282<\/h3>\n<ul>\n<li>\u70b9\u51fb\uff1a\u5f00\u53d1\u8005\u9700\u8981\u786e\u8ba4\u70b9\u51fb\u884c\u4e3a\u662f\u4ec0\u4e48\uff0c\u540c\u65f6\u786e\u8ba4\u5f00\u5173\u662f\u5426\u6709\u4e8c\u6001\u53d8\u5316\uff0c\u5982\u679c\u6709\uff0c\u9700\u8981\u51c6\u5907\u65b0\u7684 vector drawable<\/li>\n<li>\u957f\u6309\uff1a\u957f\u6309\u5feb\u6377\u5f00\u5173\uff0c\u9ed8\u8ba4\u4f1a\u8df3\u8f6c\u5230\u5e94\u7528\u4fe1\u606f\u9875\u3002\u4f46\u5f00\u53d1\u8005\u53ef\u4ee5\u6307\u5b9a\u8df3\u8f6c\u7684\u843d\u5730\u9875\uff0c\u901a\u8fc7\u7ed9&nbsp;ACTION_QS_TILE_PREFERENCES&nbsp;\u589e\u52a0\u4e00\u4e2a &lt;intent-filter&gt;&nbsp;\u6765\u5b9e\u73b0\u3002<\/li>\n<li>\u81ea\u52a8\u66f4\u65b0\uff1a\u7cfb\u7edf\u652f\u6301\u5f00\u53d1\u8005\u66f4\u65b0\u5f00\u5173\u7684 UI\uff0c\u4e00\u4e2a\u5e94\u7528\u573a\u666f\u662f\u201c\u5929\u6c14\u5237\u65b0\u201d\u3002\u5f00\u53d1\u8005\u89c6\u4e1a\u52a1\u9700\u6c42\u914c\u60c5\u4f7f\u7528\u5427\u3002<\/li>\n<\/ul>\n<h2 id=\"_2\">3. FAQ<\/h2>\n<h3 id=\"_2_0\">3.1. \u7b2c\u4e09\u65b9\u5feb\u6377\u5f00\u5173\uff0c\u9ed8\u8ba4\u4f1a\u51fa\u73b0\u5728\u7b2c\u4e00\u5c4f\u5417<\/h3>\n<p>\u4e0d\u4f1a\u3002\u7b2c\u4e09\u65b9\u5feb\u6377\u5f00\u5173\uff0c\u9ed8\u8ba4\u90fd\u4f1a\u662f\u672a\u6dfb\u52a0\u7684\u72b6\u6001\uff0c\u53ea\u6709\u7528\u6237\u4e3b\u52a8\u6dfb\u52a0\uff0c\u624d\u4f1a\u51fa\u73b0\u5728\u5feb\u6377\u5f00\u5173\u9762\u677f\u4e2d\u3002<\/p>\n<h3 id=\"_2_1\">3.2. \u8fd9\u4e2a\u529f\u80fd\u5bf9 Android \u7248\u672c\u6709\u4f9d\u8d56\u5417<\/h3>\n<p>\u6709\uff0c\u5fc5\u987b\u662f Android 7.0 \u53ca\u4ee5\u4e0a\u7684\u8bbe\u5907\u3002<\/p>\n<h3 id=\"_2_2\">3.3. \u8fd9\u4e2a\u529f\u80fd MIUI 9 \u652f\u6301\u5417<\/h3>\n<p>\u4e0d\u652f\u6301\uff0c\u662f MIUI 10 \u65b0\u589e\u7684\u529f\u80fd\u3002<\/p>\n<h3 id=\"_2_3\">3.4. \u8fd9\u4e2a\u529f\u80fd\u533a\u5206\u56fd\u5185\u7248\u548c\u6d77\u5916\u7248\u5417<\/h3>\n<p>\u4e0d\u533a\u5206\uff0c\u53ea\u8981\u662f MIUI 10 \u5c31\u652f\u6301\u3002<\/p>\n<h3 id=\"_2_4\">3.5. \u5982\u4f55\u5224\u65ad MIUI \u7248\u672c<\/h3>\n<p>\u6709\u4ee5\u4e0b\u65b9\u6cd5\uff1a<\/p>\n<pre class=\"wp-block-code\"><code>android.os.SystemProperties.<strong>get<\/strong>(\"ro.miui.ui.version.code\",&nbsp;\"7\");<em>\/\/ \u5982\u679c\u8fd4\u56de\u503c\u662f\u300c8\u300d\uff0c\u5c31\u662f MIUI 10<\/em><\/code><\/pre>\n<p>\u6216<\/p>\n<pre class=\"wp-block-code\"><code>android.os.SystemProperties.<strong>get<\/strong>(\"ro.miui.ui.version.name\",&nbsp;\"\");<em>\/\/ \u5982\u679c\u8fd4\u56de\u503c\u662f\u300cV10\u300d\uff0c\u5c31\u662f MIUI 10<\/em><\/code><\/pre>\n<h3 id=\"_2_5\"><strong>3.6. \u5982\u4f55\u6d4b\u8bd5<\/strong><\/h3>\n<p>\u5347\u7ea7\u5230&nbsp; MIUI 10 \u6700\u65b0\u5f00\u53d1\u7248\u5373\u53ef\uff0c\u652f\u6301\u7684\u673a\u578b\u548c\u4e0b\u8f7d\u94fe\u63a5\u5982\u4e0b\uff08\u627e\u5230\u5bf9\u5e94\u673a\u578b\u7684\u6700\u65b0\u5f00\u53d1\u7248\uff09\uff1a<\/p>\n<ul>\n<li>\u56fd\u5185\u7248 ROM\uff1ahttps:\/\/www.miui.com\/download.html<\/li>\n<li>\u56fd\u9645\u7248 ROM\uff1ahttp:\/\/en.miui.com\/download.html<\/li>\n<\/ul>\n<p>\u7f16\u8f91\uff1ayimen\uff0c\u5982\u82e5\u8f6c\u8f7d\uff0c\u8bf7\u6ce8\u660e\u51fa\u5904\uff1ahttps:\/\/www.yimenapp.com\/kb-yimen\/12261\/<\/p>\n<p>\u90e8\u5206\u5185\u5bb9\u6765\u81ea\u7f51\u7edc\u6295\u7a3f\uff0c\u5982\u6709\u4fb5\u6743\u8054\u7cfb\u7acb\u5220<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u4ec0\u4e48\u662f\u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173 (Quick Settings Tile)\u5feb\u6377\u5f00\u5173 (Quick Settings Tile) \u662f Android 7.0 \u5f15\u5165\u7684\u65b0\u529f\u80fd\uff0c\u652f\u6301\u5f00\u53d1\u8005\u81ea\u5b9a\u4e49\u901a\u77e5\u680f\u5feb\u6377\u5f00\u5173\u3002\u4efb\u4f55\u5f00\u53d1\u8005\u90fd\u53ef\u4ee5\u6ce8\u518c\u5feb\u6377\u5f00\u5173\uff0c\u7136\u540e\u4f1a\u51fa\u73b0\u5728\u5f00\u5173\u7f16\u8f91\u9762\u677f\u4e2d\uff0c\u5982\u4e0b\u56fe\uff1a \u4e3a\u4e86\u653e\u4e0b\u66f4\u591a\u7684\u5feb\u6377\u5f00\u5173\uff0cMIUI <\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[1348,1347,922],"class_list":["post-1982","post","type-post","status-publish","format-standard","hentry","category-appshangjia","tag-settings","tag-tile","tag-922"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/1982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=1982"}],"version-history":[{"count":0,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/1982\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=1982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=1982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=1982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}