{"id":1984,"date":"2022-11-25T18:00:47","date_gmt":"2022-11-25T10:00:47","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/appshangjia\/1984.html"},"modified":"2022-11-25T18:00:47","modified_gmt":"2022-11-25T10:00:47","slug":"%e5%b0%8f%e7%b1%b3%e6%89%8b%e6%9c%bamiui-10-%e5%aa%92%e4%bd%93%e9%80%9a%e7%9f%a5%e9%80%82%e9%85%8d%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/appshangjia\/1984.html","title":{"rendered":"\u5c0f\u7c73\u624b\u673aMIUI 10 \u5a92\u4f53\u901a\u77e5\u9002\u914d\u8bf4\u660e"},"content":{"rendered":"<p><span class=\"wpcom_tag_link\">\u5c0f\u7c73<\/span>\u624b\u673a<span class=\"wpcom_tag_link\">MIUI 10<\/span> \u5a92\u4f53\u901a\u77e5\u9002\u914d\u8bf4\u660e<\/p>\n<h2 id=\"_0\">1.\u5a92\u4f53\u901a\u77e5\u662f\u4ec0\u4e48<\/h2>\n<p>\u5a92\u4f53\u901a\u77e5\uff08\u6216\u79f0 <span class=\"wpcom_tag_link\">Media<\/span> <span class=\"wpcom_tag_link\">template<\/span> \/ <span class=\"wpcom_tag_link\">Media style<\/span>\uff09\u662f <span class=\"wpcom_tag_link\">Android<\/span> \u6807\u51c6\u901a\u77e5\u6837\u5f0f\u7684\u4e00\u79cd\uff0c\u81ea API 21\uff08<span class=\"wpcom_tag_link\">Android 5.0<\/span>\uff09 \u5f15\u5165\uff0c\u65b9\u4fbf\u7528\u6237\u76f4\u63a5\u63a7\u5236\u5a92\u4f53\u5185\u5bb9\uff0c\u5e38\u89c1\u4e8e<span class=\"wpcom_tag_link\">\u97f3\u4e50<\/span>\u7c7b\u3001<span class=\"wpcom_tag_link\">\u5e7f\u64ad<\/span>\u7c7b\u5e94\u7528\u3002<\/p>\n<p>MIUI 10 \u5b8c\u5168\u517c\u5bb9\u8be5\u901a\u77e5\u6837\u5f0f\uff0c\u5e76\u8c03\u6574\u4e86\u89c6\u89c9\u98ce\u683c\uff0c\u4ee5\u7b26\u5408\u7cfb\u7edf\u98ce\u683c\uff0c\u5982\u4e0b\u56fe\uff08\u7b2c\u4e00\u6761\u901a\u77e5\uff09\u3002<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/11\/20221124114439972.png\" alt=\"\u5c0f\u7c73\u624b\u673aMIUI 10 \u5a92\u4f53\u901a\u77e5\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\/20221124114439972.png\" alt=\"\u5c0f\u7c73\u624b\u673aMIUI 10 \u5a92\u4f53\u901a\u77e5\u9002\u914d\u8bf4\u660e\" \/><\/figure>\n<h2 id=\"_1\">2. \u4e3a\u4ec0\u4e48\u8981\u7528\u7cfb\u7edf\u7684\u5a92\u4f53\u901a\u77e5\uff1f<\/h2>\n<p>\u97f3\u4e50\u7c7b\u5e94\u7528\u5df2\u7ecf\u90fd\u6709\u81ea\u5df1\u7684\u300c\u81ea\u5b9a\u4e49\u901a\u77e5\u300d\u53ef\u4ee5\u63a7\u5236\u97f3\u4e50\uff0c\u90a3\u4e3a\u4ec0\u4e48\u8fd8\u8981\u7528\u7cfb\u7edf\u7684\u5a92\u4f53\u901a\u77e5\uff1f<\/p>\n<p>\u8c03\u7528\u7cfb\u7edf\u7684\u5a92\u4f53\u901a\u77e5\uff0c\u7cfb\u7edf\u5c31\u80fd\u505a\u9488\u5bf9\u6027\u7684\u4f18\u5316\uff0c\u5982\uff1a<\/p>\n<ul>\n<li>\u6b63\u5728\u64ad\u653e\u7684\u5a92\u4f53\u901a\u77e5\u9ed8\u8ba4\u7f6e\u9876 + \u9ed8\u8ba4\u5c55\u5f00\u4e3a\u5927\u89c6\u56fe\u3002<\/li>\n<li>\u6b63\u5728\u64ad\u653e\u7684\u5a92\u4f53\u901a\u77e5\u9ed8\u8ba4\u4f1a\u51fa\u73b0\u5728\u9501\u5c4f\u4e0a\uff08\u7f6e\u9876+\u5927\u89c6\u56fe\uff09\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u90fd\u80fd\u8ba9\u5185\u5bb9\u66f4\u5145\u5206\u5730\u66dd\u5149\uff0c\u4e5f\u6709\u5229\u4e8e\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/11\/20221124114440350.png\" alt=\"\u5c0f\u7c73\u624b\u673aMIUI 10 \u5a92\u4f53\u901a\u77e5\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\/20221124114440350.png\" alt=\"\u5c0f\u7c73\u624b\u673aMIUI 10 \u5a92\u4f53\u901a\u77e5\u9002\u914d\u8bf4\u660e\" \/><\/figure>\n<p>\u6ce8\uff1a\u4e0d\u540c\u4e8e\u539f\u751f Android O \u5141\u8bb8\u6240\u6709\u901a\u77e5\u51fa\u73b0\u5728\u9501\u5c4f\u4e0a\uff0cMIUI \u9650\u5236\u4e86\u51fa\u73b0\u5728\u9501\u5c4f\u7684\u901a\u77e5\u7c7b\u578b\uff0c\u4ee5\u51cf\u5c11\u7528\u6237\u6253\u6270\u3002\u5982\u679c\u9700\u8981\u51fa\u73b0\u5728\u9501\u5c4f\u4e0a\uff0c\u9700\u8981\u524d\u5f80\u8bbe\u7f6e &#8211; \u901a\u77e5\u548c\u72b6\u6001\u680f &#8211; \u901a\u77e5\u7ba1\u7406\uff0c\u627e\u5230\u5bf9\u5e94\u5e94\u7528\uff0c\u5f00\u542f\u2018\u2019\u9501\u5c4f\u901a\u77e5\u2018\u2019\u3002<\/p>\n<h2 id=\"_2\">3. \u5982\u4f55\u9002\u914d\u7cfb\u7edf\u5a92\u4f53\u901a\u77e5<\/h2>\n<h3 id=\"_2_0\">3.1 \u5a92\u4f53\u901a\u77e5\u7684\u4e24\u79cd\u89c6\u56fe<\/h3>\n<p>\u5a92\u4f53\u901a\u77e5\u6709\u4e24\u79cd\u89c6\u56fe\uff0c\u5206\u522b\u79f0\u4e3a\uff1a<\/p>\n<ul>\n<li>\u6807\u51c6\u89c6\u56fe \/ compact view\uff1a\u6807\u51c6\u7684\u901a\u77e5\u9ad8\u5ea6\uff0c\u6700\u591a\u663e\u793a3\u4e2a\u6309\u94ae\uff08actions\uff09\u3002<\/li>\n<li>\u5927\u89c6\u56fe \/ expanded view\uff1a\u9762\u79ef\u66f4\u5927\uff0c\u6700\u591a\u663e\u793a5\u4e2a\u6309\u94ae\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/11\/20221124114445297.png\" alt=\"\u5c0f\u7c73\u624b\u673aMIUI 10 \u5a92\u4f53\u901a\u77e5\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\/20221124114445297.png\" alt=\"\u5c0f\u7c73\u624b\u673aMIUI 10 \u5a92\u4f53\u901a\u77e5\u9002\u914d\u8bf4\u660e\" \/><\/figure>\n<h3 id=\"_2_1\">3.2 \u9002\u914d\u5a92\u4f53\u901a\u77e5<\/h3>\n<p>MIUI 10\u7684\u5a92\u4f53\u901a\u77e5\uff0c\u57fa\u4e8e Android O\uff0c\u4ee5\u4e0b\u662f\u51e0\u4e2a\u91cd\u8981\u7684\u63a5\u53e3\uff1a<\/p>\n<ul>\n<li>setLargeIcon()\uff1a\u8bbe\u7f6e\u5927\u56fe\uff0c\u4e00\u822c\u4e3a\u5c01\u9762\u56fe\u3002<\/li>\n<li>addAction\uff1a\u6dfb\u52a0\u63a7\u4ef6\uff0c\u6700\u591a5\u4e2a\u3002<\/li>\n<li>setShowActionsInCompactView(int)\uff1a\u63a7\u5236\u5728 compact view \u663e\u793a\u54ea\u4e9b\u63a7\u4ef6\u3002<\/li>\n<li>setMediaSession(MediaSession.Token)\uff1a\u544a\u77e5\u7cfb\u7edf\u6b63\u5728\u64ad\u653e\u4e2d\uff0c\u7cfb\u7edf\u4f1a\u5c06\u5176\u7f6e\u9876\uff08\u82e5\u6709\u591a\u6761\u5a92\u4f53\u901a\u77e5\u7684\u8bdd\uff09<\/li>\n<\/ul>\n<p>\u5a92\u4f53\u901a\u77e5\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre class=\"wp-block-code\"><code>Notification = <strong>new<\/strong> Notification.Builder()\n    .setContentTitle(\"Havana(feat.Young Thug\")\n    .setContentText(\"Camila Cabello - Havana\")\n    .setSmallIcon(mySmallIcon)\n    .setLargeIcon(album)\n    .addAction(previousAction)\n    .addAction(playAction<a href=\"https:\/\/app.applebyme.cn\/shengcheng-83.html\">\u53ef\u4ee5\u751f\u6210app\u7684\u7f51\u9875<\/a>)\n    .addAction(nextAction)\n    .addAction(playlistAction)\n    .addAction(favoriteAction)\n    .setOngoing(<strong>true<\/strong>)\n    .setStyle(newNotification.MediaStyle()\n        .setShowActionsInCompactView(1,2,3)\n        .setMediaSession(mySession)))\n    .build();<\/code><\/pre>\n<p>\u8be6\u7ec6\u63a5\u53e3\u8bf4\u660e\u89c1\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/developer.android.com\/reference\/android\/app\/Notification.MediaStyle\u3002<\/p>\n<p>\u4e0d\u8fc7\uff0c\u4ee5\u4e0b\u63a5\u53e3\u5728 MIUI 10 \u65e0\u6cd5\u751f\u6548\uff1a<\/p>\n<ul>\n<li>setColorized(boolean)<\/li>\n<li>setColor<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u63a5\u53e3\u90fd\u53ef\u80fd\u4f1a\u4ea7\u751f\u4e0d\u534f\u8c03\u7684\u989c\u8272\uff0c\u6545\u6682\u65f6\u5c4f\u853d\u3002<\/p>\n<h2 id=\"_3\">4. FAQ<\/h2>\n<h3 id=\"_3_0\">4.1. \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.get(\"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.get(\"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=\"_3_1\">4.2. \u53ea\u6709 MIUI 10 \u652f\u6301\u5a92\u4f53\u901a\u77e5\u5417<\/h3>\n<p>\u5176\u5b9e MIUI 9 \u4e5f\u652f\u6301\u5a92\u4f53\u901a\u77e5\uff0c\u4f46\u56e0\u4e3a\u6ca1\u6709\u505a\u597d\u4f18\u5316\u3002\u6240\u4ee5\uff0c\u53ef\u4ee5\u5927\u4f53\u8ba4\u4e3a\u300c\u53ea\u6709 MIUI 10 \u652f\u6301\u5a92\u4f53\u901a\u77e5\u300d\uff0c\u542b\u56fd\u5185\u7248\u548c\u56fd\u9645\u7248\uff0c\u4e14\u6837\u5f0f\u548c\u903b\u8f91\u7edf\u4e00\u3002<\/p>\n<h3 id=\"_3_2\">4.3. \u53ea\u8981\u662f MIUI 10 \u5c31\u652f\u6301\u5a92\u4f53\u901a\u77e5\u5417\uff1f<\/h3>\n<p>\u662f\u7684\u3002\u56e0\u4e3a Android \u539f\u751f\u4ece API 21 \uff08android 5.0\uff09\u5c31\u652f\u6301\u5a92\u4f53\u901a\u77e5\u4e86\uff0c\u8be6\u89c1&nbsp;https:\/\/developer.android.com\/reference\/android\/app\/Notification.MediaStyle\u3002\u800c MIUI 10 \u6700\u4f4e\u662f\u517c\u5bb9\u5230 Android 6.0\uff0c\u6240\u4ee5\u53ea\u8981\u662f MIUI 10\u5c31\u652f\u6301\u5a92\u4f53\u901a\u77e5\u3002<\/p>\n<h3 id=\"_3_3\">4.4. MIUI 10 \u4f1a\u7981\u7528\u81ea\u5b9a\u4e49\u901a\u77e5\u5417<\/h3>\n<p>\u4e0d\u4f1a\u3002\u4f46\u7cfb\u7edf\u65e0\u6cd5\u8bc6\u522b\u81ea\u5b9a\u4e49\u901a\u77e5\u7684\u5177\u4f53\u5185\u5bb9\uff0c\u53ea\u4f1a\u5f53\u6210\u666e\u901a\u901a\u77e5\u5904\u7406\u3002<\/p>\n<h3 id=\"_3_4\">4.5. MIUI 10 \u5a92\u4f53\u901a\u77e5\u7684\u6837\u5f0f\u4ee5\u540e\u4f1a\u53d8\u5316\u5417<\/h3>\n<p>\u6709\u53ef<a href=\"https:\/\/app.applebyme.cn\/shengcheng-94.html\">\u7f51\u7ad9\u751f\u6210app\u8f6f\u4ef6<\/a>\u80fd\u3002\u4e3b\u8981\u53d6\u51b3\u4e8e\uff1a<\/p>\n<ul>\n<li>Android \u589e\u52a0\u65b0\u7684\u63a5\u53e3\uff1a\u6211\u4eec\u540e\u7eed\u4f1a\u5c3d\u529b\u517c\u5bb9\u65b0\u7684\u63a5\u53e3\uff0c\u5e76\u4ee5\u6b64\u8c03\u6574\u6837\u5f0f\u3002<\/li>\n<li>\u4e1a\u52a1\u9700\u6c42\u548c\u7528\u6237\u53cd\u9988\u3002<\/li>\n<\/ul>\n<h3 id=\"_3_5\">4.6. MIUI \u4ee5\u524d\u81ea\u5df1\u505a\u7684\u9501\u5c4f\u97f3\u4e50\u754c\u9762\u8fd8\u6709\u7528\u5417<\/h3>\n<p>\u5728 MIUI 10 \u4e0a\u6ca1\u6709\u7528\u4e86\u3002\u7531\u4e8e\u90a3\u4e2a\u9875\u9762\u7684\u5b9e\u73b0\u65b9\u5f0f\u6709\u8f83\u591a\u95ee\u9898\uff0c\u56e0\u6b64\u6211\u4eec\u5728 MIUI 10 \u4e0a\u5f03\u7528\u4e86\uff0c\u6539\u7531\u5728\u9501\u5c4f\u4e0a\u663e\u793a\u5a92\u4f53\u901a\u77e5\uff0c\u6765\u5b9e\u73b0\u9501\u5c4f\u97f3\u4e50\u63a7\u5236\u7684\u9700\u6c42\u3002<\/p>\n<h3 id=\"_3_6\"><strong>4.7. \u7b2c\u4e09\u65b9\u5e94\u7528\u81ea\u5df1\u505a\u7684\u9501\u5c4f\u9875\u9762\uff08\u5982\u97f3\u4e50\u7c7b\u6216\u8fd0\u52a8\u7c7b\u7684\u8986\u76d6\u5f0f\uff09\u8fd8\u80fd\u7528\u5417\uff1f<\/strong><\/h3>\n<p>\u53ef\u4ee5\u7ee7\u7eed\u4f7f\u7528\uff0cMIUI 10 \u6ca1\u6709\u9650\u5236\u8fd9\u4e2a\u80fd\u529b\uff08\u4e0d\u8fc7\u524d\u63d0\u662f\u5f00\u542f\u4e86\u300c\u9501\u5c4f\u663e\u793a\u300d\u7684\u6743\u9650\uff09\u3002\u4f46\u6211\u4eec\u4e0d\u5efa\u8bae\u5f00\u53d1\u8005\u505a\u8fd9\u4e48\u4e00\u4e2a\u8986\u76d6\u5f0f\u7684\u9875\u9762\uff0c\u56e0\u4e3a\u7528\u6237\u4f53\u9a8c\u5f88\u5dee\uff0c\u8fd8\u662f\u5e0c\u671b\u80fd\u591f\u7528\u5a92\u4f53\u901a\u77e5\u66ff\u4ee3\u3002<\/p>\n<h3 id=\"_3_7\">4.8. \u5982\u4f55\u6d4b\u8bd5<\/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\/12250\/<\/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>\u5c0f\u7c73\u624b\u673aMIUI 10 \u5a92\u4f53\u901a\u77e5\u9002\u914d\u8bf4\u660e1.\u5a92\u4f53\u901a\u77e5\u662f\u4ec0\u4e48\u5a92\u4f53\u901a\u77e5\uff08\u6216\u79f0 Media template \/ Media style\uff09\u662f Android \u6807\u51c6\u901a\u77e5\u6837\u5f0f\u7684\u4e00\u79cd\uff0c\u81ea API 21\uff08Android 5.0\uff09 \u5f15\u5165\uff0c\u65b9\u4fbf\u7528\u6237\u76f4\u63a5\u63a7\u5236\u5a92\u4f53\u5185\u5bb9\uff0c\u5e38\u89c1\u4e8e\u97f3\u4e50\u7c7b\u3001\u5e7f\u64ad\u7c7b\u5e94\u7528\u3002MIUI 10 \u5b8c\u5168\u517c\u5bb9\u8be5<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[1241,548,922],"class_list":["post-1984","post","type-post","status-publish","format-standard","hentry","category-appshangjia","tag-1241","tag-548","tag-922"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/1984","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=1984"}],"version-history":[{"count":0,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/1984\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=1984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=1984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=1984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}