{"id":51696,"date":"2025-08-11T03:59:52","date_gmt":"2025-08-10T19:59:52","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/51696.html"},"modified":"2025-08-11T03:59:52","modified_gmt":"2025-08-10T19:59:52","slug":"%e7%8e%b0%e4%bb%a3%e5%ae%89%e5%8d%93%e5%92%8c%e9%b8%bf%e8%92%99%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e6%98%af%e5%9f%ba%e4%ba%8e%e5%be%ae%e6%9c%8d%e5%8a%a1%e6%9e%b6%e6%9e%84%e5%90%97%e8%bf%98%e6%98%afmv","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/51696.html","title":{"rendered":"\u73b0\u4ee3\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u662f\u57fa\u4e8e\u5fae\u670d\u52a1\u67b6\u6784\u5417\u8fd8\u662fMVVM\u67b6\u6784\u8fd8\u662fMVP\u67b6\u6784\u8fd8\u662fMVC\u67b6\u6784"},"content":{"rendered":"<p>***\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u7684\u67b6\u6784\u9700\u8981\u5206\u5c42\u7406\u89e3&#xff1a;\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u4e0e\u670d\u52a1\u5c42\u91c7\u7528\u5fae\u670d\u52a1\u4f53\u7cfb&#xff0c;\u800c\u5e94\u7528\u5c42\u5f00\u53d1\u6846\u67b6\u652f\u6301MVC\/MVP\/MVVM\u7b49\u6a21\u5f0f\u3002***\u4ee5\u4e0b\u662f\u5177\u4f53\u89e3\u6790&#xff1a;<\/p>\n<hr \/>\n<p>\u4e00\u3001\u64cd\u4f5c\u7cfb\u7edf\u5e95\u5c42\u67b6\u6784&#xff1a;\u5fae\u670d\u52a1\u5316\u8bbe\u8ba1<\/p>\n<li>\u5b89\u5353\u7cfb\u7edf\u670d\u52a1\u5c42<\/li>\n<li><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810195949-6898fa357b537.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\ngraph LR<br \/>\nA[Linux\u5185\u6838] &#8211;&gt; B[\u7cfb\u7edf\u670d\u52a1]<br \/>\nB &#8211;&gt; C[ActivityManager]<br \/>\nB &#8211;&gt; D[PackageManager]<br \/>\nB &#8211;&gt; E[LocationManager]<\/li>\n<p>\u2022*** \u5fae\u670d\u52a1\u7279\u5f81&#xff1a;<br \/>\n\u2022 \u7cfb\u7edf\u670d\u52a1&#xff08;\u5982\u7a97\u53e3\u7ba1\u7406\u3001\u4f20\u611f\u5668\u670d\u52a1&#xff09;\u4f5c\u4e3a\u72ec\u7acb\u8fdb\u7a0b\u8fd0\u884c<br \/>\n\u2022 \u901a\u8fc7Binder IPC\u901a\u4fe1&#xff08;\u7c7b\u4f3c\u670d\u52a1\u95f4API\u8c03\u7528&#xff09;<br \/>\n\u2022 \u5355\u670d\u52a1\u5d29\u6e83\u4e0d\u5f71\u54cd\u6574\u4f53\u7cfb\u7edf&#xff08;\u5982\u84dd\u7259\u670d\u52a1\u5b95\u673a\u540e\u81ea\u52a8\u91cd\u542f&#xff09;***<\/p>\n<li>\u9e3f\u8499\u7cfb\u7edf\u67b6\u6784<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810195950-6898fa36261be.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\ngraph TD<br \/>\nF[\u9e3f\u8499\u5fae\u5185\u6838] &#8211;&gt; G[\u5206\u5e03\u5f0f\u80fd\u529b]<br \/>\nG &#8211;&gt; H[\u8bbe\u5907\u865a\u62df\u5316\u670d\u52a1]<br \/>\nG &#8211;&gt; I[\u6570\u636e\u540c\u6b65\u670d\u52a1]<br \/>\nG &#8211;&gt; J[\u4efb\u52a1\u8c03\u5ea6\u670d\u52a1]<\/li>\n<p>\u2022 \u8fdb\u9636\u5fae\u670d\u52a1\u5316&#xff1a;<br \/>\n\u2022 \u6bcf\u4e2a\u786c\u4ef6\u80fd\u529b&#xff08;\u6444\u50cf\u5934\/GPU\u7b49&#xff09;\u5c01\u88c5\u4e3a\u72ec\u7acb\u670d\u52a1<br \/>\n\u2022 \u670d\u52a1\u53ef\u8de8\u8bbe\u5907\u8c03\u7528&#xff08;\u624b\u673a\u8c03\u7528\u7535\u89c6\u6444\u50cf\u5934&#xff09;<br \/>\n\u2022 \u670d\u52a1\u70ed\u63d2\u62d4&#xff08;\u5982\u8fde\u63a5\u8033\u673a\u65f6\u52a8\u6001\u52a0\u8f7d\u97f3\u9891\u670d\u52a1&#xff09;<\/p>\n<p>\u672c\u8d28\u5dee\u5f02&#xff1a;<br \/>\n\u2022 \u5b89\u5353&#xff1a;\u57fa\u4e8eLinux\u5b8f\u5185\u6838\u6539\u9020\u7684&#034;\u51c6\u5fae\u670d\u52a1&#034;&#xff08;\u6838\u5fc3\u670d\u52a1\u4ecd\u8026\u5408&#xff09;<br \/>\n\u2022 \u9e3f\u8499&#xff1a;\u5f7b\u5e95\u5fae\u5185\u6838&#043;\u5206\u5e03\u5f0f\u5fae\u670d\u52a1\u67b6\u6784&#xff08;\u901a\u8fc7Hiview\u5b9e\u73b0\u670d\u52a1\u6cbb\u7406&#xff09;<\/p>\n<hr \/>\n<p>\u4e8c\u3001\u5e94\u7528\u5f00\u53d1\u67b6\u6784&#xff1a;MV\/\u5206\u5c42\u6a21\u5f0f\u662f*<\/p>\n<li>\u539f\u751f\u5b89\u5353\u5f00\u53d1\u6846\u67b6<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810195950-6898fa3669630.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u3010\u8868\u683c\u3011<br \/>\n\u67b6\u6784\u6a21\u5f0f\u5b9e\u73b0\u673a\u5236\u5b98\u65b9\u63a8\u8350\u5ea6<br \/>\nMVCActivity\u4f5c\u4e3aController\u274c \u6dd8\u6c70<br \/>\nMVPPresenter\u9694\u79bbView\u4e0eModel\u2b50\ufe0f \u8fc7\u6e21\u65b9\u6848<br \/>\nMVVMJetpack ViewModel &#043; DataBinding\u2705 \u4e3b\u6d41<\/li>\n<p>\u4ee3\u7801\u793a\u4f8b&#xff08;MVVM&#xff09;&#xff1a;<\/p>\n<p> <span class=\"token comment\">\/\/ Model<\/span><br \/>\n<span class=\"token keyword\">data<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token function\">User<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">val<\/span> name<span class=\"token operator\">:<\/span> String<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\">\/\/ ViewModel<\/span><br \/>\n<span class=\"token keyword\">class<\/span> UserViewModel <span class=\"token operator\">:<\/span> <span class=\"token function\">ViewModel<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">val<\/span> userLiveData <span class=\"token operator\">&#061;<\/span> MutableLiveData<span class=\"token operator\">&lt;<\/span>User<span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token comment\">\/\/ View&#xff08;Activity&#xff09;<\/span><br \/>\nbinding<span class=\"token punctuation\">.<\/span>button<span class=\"token punctuation\">.<\/span><span class=\"token function\">setOnClickListener<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    viewModel<span class=\"token punctuation\">.<\/span>userLiveData<span class=\"token punctuation\">.<\/span>value <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">User<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string-literal singleline\"><span class=\"token string\">&#034;\u5f20\u4e09&#034;<\/span><\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<li>\u9e3f\u8499\u5e94\u7528\u5f00\u53d1\u6846\u67b6&#xff08;ArkUI&#xff09;<\/li>\n<p>\u2022 \u6838\u5fc3\u6a21\u5f0f&#xff1a;\u58f0\u660e\u5f0fUI &#043; \u72b6\u6001\u7ba1\u7406&#xff08;\u7c7bMVVM&#xff09;<\/p>\n<p>\u2022 \u5178\u578b\u5b9e\u73b0&#xff1a;<\/p>\n<p> <span class=\"token decorator\"><span class=\"token at operator\">&#064;<\/span><span class=\"token function\">Entry<\/span><\/span><br \/>\n  struct Page <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token decorator\"><span class=\"token at operator\">&#064;<\/span><span class=\"token function\">State<\/span><\/span> userName<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;\u674e\u56db&#034;<\/span> <span class=\"token comment\">\/\/ \u6570\u636e\u9a71\u52a8\u89c6\u56fe<\/span><\/p>\n<p>    <span class=\"token function\">build<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token function\">Column<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token function\">Text<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>userName<span class=\"token punctuation\">)<\/span> <span class=\"token comment\">\/\/ \u81ea\u52a8\u66f4\u65b0<\/span><br \/>\n        <span class=\"token function\">Button<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u6539\u540d&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">onClick<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n          <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>userName <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;\u738b\u4e94&#034;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5173\u952e\u7ed3\u8bba&#xff1a;<br \/>\n1. \u64cd\u4f5c\u7cfb\u7edf\u5e95\u5c42\u4f7f\u7528\u5fae\u670d\u52a1\u67b6\u6784\u5b9e\u73b0\u6a21\u5757\u5316\u89e3\u8026<br \/>\n2. \u5e94\u7528\u5c42\u5f00\u53d1\u91c7\u7528MVVM\u7c7b\u67b6\u6784\u7ba1\u7406UI\u903b\u8f91<\/p>\n<hr \/>\n<p>\u4e09\u3001\u67b6\u6784\u6f14\u8fdb\u5bf9\u6bd4\u8868<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810195950-6898fa36babc3.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u3010\u8868\u683c\u3011<br \/>\n\u5c42\u7ea7\u5b89\u5353\u6f14\u53d8\u9e3f\u8499\u521b\u65b0<br \/>\n\u5185\u6838Linux\u5b8f\u5185\u6838 \u2192 \u6a21\u5757\u5316\u5fae\u5185\u6838&#xff08;Zircon&#xff09;<br \/>\n\u670d\u52a1\u901a\u4fe1Binder IPC&#xff08;\u7c7bRPC&#xff09;\u8f6f\u603b\u7ebf&#xff08;\u8bbe\u5907\u7ea7\u670d\u52a1\u53d1\u73b0&#xff09;<br \/>\n\u5e94\u7528\u6846\u67b6MVC \u2192 MVP \u2192 MVVM&#xff08;Jetpack&#xff09;\u58f0\u660e\u5f0fUI &#043; \u72b6\u6001\u54cd\u5e94<br \/>\n\u8de8\u8bbe\u5907\u9700\u989d\u5916\u5f00\u53d1&#xff08;\u5982Wear OS SDK&#xff09;\u539f\u751f\u5206\u5e03\u5f0f\u670d\u52a1<\/p>\n<hr \/>\n<p>\u56db\u3001\u5f00\u53d1\u8005\u5b9e\u9645\u5f71\u54cd<\/p>\n<li>\n<p>\u7cfb\u7edf\u7ea7\u5f00\u53d1&#xff08;\u5982ROM\u5b9a\u5236&#xff09;&#xff1a;<br \/>\n\u2022 \u9700\u7406\u89e3\u7cfb\u7edf\u670d\u52a1\u4ea4\u4e92&#xff08;\u5982\u4fee\u6539\u7535\u6e90\u7ba1\u7406\u9700\u8c03\u7528PowerManagerService&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5e94\u7528\u5f00\u53d1&#xff1a;<br \/>\n\u2022 \u5b89\u5353&#xff1a;\u7528Jetpack Compose\u5b9e\u73b0MVVM<br \/>\n\u2022 \u9e3f\u8499&#xff1a;\u7528ArkTS\u7684&#064;State\/&#064;Prop\u7ba1\u7406\u6570\u636e\u6d41<br \/>\n\u2022 \u5171\u540c\u70b9&#xff1a;\u65e0\u9700\u5173\u6ce8\u5e95\u5c42\u5fae\u670d\u52a1&#xff0c;\u4e13\u6ce8\u4e1a\u52a1\u903b\u8f91\u5206\u5c42<\/p>\n<\/li>\n<p>\u6570\u636e\u4f50\u8bc1&#xff1a;<br \/>\n\u2022 \u5b89\u5353\u7cfb\u7edf\u670d\u52a1\u62c6\u5206\u4e3a80&#043;\u72ec\u7acb\u8fdb\u7a0b&#xff08;\u6765\u6e90&#xff1a;AOSP\u4ee3\u7801\u5206\u6790&#xff09;<br \/>\n\u2022 \u9e3f\u84993.0\u5b9e\u73b030ms\u5185\u8de8\u8bbe\u5907\u670d\u52a1\u8c03\u7528&#xff08;\u534e\u4e3a2023\u5f00\u53d1\u8005\u5927\u4f1a&#xff09;<\/p>\n<p>\u4e24\u79cd\u64cd\u4f5c\u7cfb\u7edf\u5747\u5728\u5e95\u5c42\u57fa\u7840\u8bbe\u65bd\u5c42\u91c7\u7528\u5fae\u670d\u52a1\u8bbe\u8ba1&#xff0c;\u4f46\u5e94\u7528\u5f00\u53d1\u5c42\u9075\u5faaUI\u67b6\u6784\u6a21\u5f0f&#xff08;MVVM\u4e3a\u4e3b&#xff09;&#xff0c;\u4e8c\u8005\u5c5e\u4e8e\u4e0d\u540c\u5c42\u7ea7\u7684\u6280\u672f\u65b9\u6848&#xff0c;\u4e0d\u5b58\u5728\u975e\u6b64\u5373\u5f7c\u7684\u51b2\u7a81\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb139\u6b21\uff0c\u70b9\u8d5e2\u6b21\uff0c\u6536\u85cf2\u6b21\u3002**\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u7684\u67b6\u6784\u9700\u8981\u5206\u5c42\u7406\u89e3\uff1a\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u4e0e\u670d\u52a1\u5c42\u91c7\u7528\u5fae\u670d\u52a1\u4f53\u7cfb\uff0c\u800c\u5e94\u7528\u5c42\u5f00\u53d1\u6846\u67b6\u652f\u6301MVC\/MVP\/MVVM\u7b49\u6a21\u5f0f\u3002\u4e24\u79cd\u64cd\u4f5c\u7cfb\u7edf\u5747\u5728\u5e95\u5c42\u57fa\u7840\u8bbe\u65bd\u5c42\u91c7\u7528\u5fae\u670d\u52a1\u8bbe\u8ba1\uff0c\u4f46\u5e94\u7528\u5f00\u53d1\u5c42\u9075\u5faaUI\u67b6\u6784\u6a21\u5f0f\uff08MVVM\u4e3a\u4e3b\uff09\uff0c\u4e8c\u8005\u5c5e\u4e8e\u4e0d\u540c\u5c42\u7ea7\u7684\u6280\u672f\u65b9\u6848\uff0c\u4e0d\u5b58\u5728\u975e\u6b64\u5373\u5f7c\u7684\u51b2\u7a81\u3002\u670d\u52a1\u901a\u4fe1\tBinder IPC\uff08\u7c7bRPC\uff09\t\u8f6f\u603b\u7ebf\uff08\u8bbe\u5907\u7ea7\u670d\u52a1\u53d1\u73b0\uff09\u2022 \u5355\u670d\u52a1\u5d29\u6e83\u4e0d\u5f71\u54cd\u6574\u4f53\u7cfb\u7edf\uff08\u5982\u84dd\u7259\u670d\u52a1\u5b95\u673a\u540e\u81ea\u52a8\u91cd\u542f\uff09***\u2022 \u7cfb\u7edf\u670d\u52a1\uff08\u5982\u7a97\u53e3\u7ba1\u7406\u3001\u4f20\u611f\u5668\u670d\u52a1\uff09\u4f5c\u4e3a\u72ec\u7acb\u8fdb\u7a0b\u8fd0\u884c\u3002\u2022 \u5171\u540c\u70b9\uff1a\u65e0\u9700\u5173\u6ce8\u5e95\u5c42\u5fae\u670d\u52a1\uff0c\u4e13\u6ce8\u4e1a\u52a1\u903b\u8f91\u5206\u5c42\u3002<\/p>\n","protected":false},"author":2,"featured_media":51692,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[84,188,442],"topic":[],"class_list":["post-51696","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-android","tag-188","tag-442"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u73b0\u4ee3\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u662f\u57fa\u4e8e\u5fae\u670d\u52a1\u67b6\u6784\u5417\u8fd8\u662fMVVM\u67b6\u6784\u8fd8\u662fMVP\u67b6\u6784\u8fd8\u662fMVC\u67b6\u6784 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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:\/\/www.wsisp.com\/helps\/51696.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u73b0\u4ee3\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u662f\u57fa\u4e8e\u5fae\u670d\u52a1\u67b6\u6784\u5417\u8fd8\u662fMVVM\u67b6\u6784\u8fd8\u662fMVP\u67b6\u6784\u8fd8\u662fMVC\u67b6\u6784 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb139\u6b21\uff0c\u70b9\u8d5e2\u6b21\uff0c\u6536\u85cf2\u6b21\u3002**\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u7684\u67b6\u6784\u9700\u8981\u5206\u5c42\u7406\u89e3\uff1a\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u4e0e\u670d\u52a1\u5c42\u91c7\u7528\u5fae\u670d\u52a1\u4f53\u7cfb\uff0c\u800c\u5e94\u7528\u5c42\u5f00\u53d1\u6846\u67b6\u652f\u6301MVC\/MVP\/MVVM\u7b49\u6a21\u5f0f\u3002\u4e24\u79cd\u64cd\u4f5c\u7cfb\u7edf\u5747\u5728\u5e95\u5c42\u57fa\u7840\u8bbe\u65bd\u5c42\u91c7\u7528\u5fae\u670d\u52a1\u8bbe\u8ba1\uff0c\u4f46\u5e94\u7528\u5f00\u53d1\u5c42\u9075\u5faaUI\u67b6\u6784\u6a21\u5f0f\uff08MVVM\u4e3a\u4e3b\uff09\uff0c\u4e8c\u8005\u5c5e\u4e8e\u4e0d\u540c\u5c42\u7ea7\u7684\u6280\u672f\u65b9\u6848\uff0c\u4e0d\u5b58\u5728\u975e\u6b64\u5373\u5f7c\u7684\u51b2\u7a81\u3002\u670d\u52a1\u901a\u4fe1 Binder IPC\uff08\u7c7bRPC\uff09 \u8f6f\u603b\u7ebf\uff08\u8bbe\u5907\u7ea7\u670d\u52a1\u53d1\u73b0\uff09\u2022 \u5355\u670d\u52a1\u5d29\u6e83\u4e0d\u5f71\u54cd\u6574\u4f53\u7cfb\u7edf\uff08\u5982\u84dd\u7259\u670d\u52a1\u5b95\u673a\u540e\u81ea\u52a8\u91cd\u542f\uff09***\u2022 \u7cfb\u7edf\u670d\u52a1\uff08\u5982\u7a97\u53e3\u7ba1\u7406\u3001\u4f20\u611f\u5668\u670d\u52a1\uff09\u4f5c\u4e3a\u72ec\u7acb\u8fdb\u7a0b\u8fd0\u884c\u3002\u2022 \u5171\u540c\u70b9\uff1a\u65e0\u9700\u5173\u6ce8\u5e95\u5c42\u5fae\u670d\u52a1\uff0c\u4e13\u6ce8\u4e1a\u52a1\u903b\u8f91\u5206\u5c42\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/51696.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-10T19:59:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810195949-6898fa357b537.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/51696.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/51696.html\",\"name\":\"\u73b0\u4ee3\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u662f\u57fa\u4e8e\u5fae\u670d\u52a1\u67b6\u6784\u5417\u8fd8\u662fMVVM\u67b6\u6784\u8fd8\u662fMVP\u67b6\u6784\u8fd8\u662fMVC\u67b6\u6784 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-10T19:59:52+00:00\",\"dateModified\":\"2025-08-10T19:59:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/51696.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/51696.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/51696.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u73b0\u4ee3\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u662f\u57fa\u4e8e\u5fae\u670d\u52a1\u67b6\u6784\u5417\u8fd8\u662fMVVM\u67b6\u6784\u8fd8\u662fMVP\u67b6\u6784\u8fd8\u662fMVC\u67b6\u6784\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u73b0\u4ee3\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u662f\u57fa\u4e8e\u5fae\u670d\u52a1\u67b6\u6784\u5417\u8fd8\u662fMVVM\u67b6\u6784\u8fd8\u662fMVP\u67b6\u6784\u8fd8\u662fMVC\u67b6\u6784 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/51696.html","og_locale":"zh_CN","og_type":"article","og_title":"\u73b0\u4ee3\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u662f\u57fa\u4e8e\u5fae\u670d\u52a1\u67b6\u6784\u5417\u8fd8\u662fMVVM\u67b6\u6784\u8fd8\u662fMVP\u67b6\u6784\u8fd8\u662fMVC\u67b6\u6784 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb139\u6b21\uff0c\u70b9\u8d5e2\u6b21\uff0c\u6536\u85cf2\u6b21\u3002**\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u7684\u67b6\u6784\u9700\u8981\u5206\u5c42\u7406\u89e3\uff1a\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u4e0e\u670d\u52a1\u5c42\u91c7\u7528\u5fae\u670d\u52a1\u4f53\u7cfb\uff0c\u800c\u5e94\u7528\u5c42\u5f00\u53d1\u6846\u67b6\u652f\u6301MVC\/MVP\/MVVM\u7b49\u6a21\u5f0f\u3002\u4e24\u79cd\u64cd\u4f5c\u7cfb\u7edf\u5747\u5728\u5e95\u5c42\u57fa\u7840\u8bbe\u65bd\u5c42\u91c7\u7528\u5fae\u670d\u52a1\u8bbe\u8ba1\uff0c\u4f46\u5e94\u7528\u5f00\u53d1\u5c42\u9075\u5faaUI\u67b6\u6784\u6a21\u5f0f\uff08MVVM\u4e3a\u4e3b\uff09\uff0c\u4e8c\u8005\u5c5e\u4e8e\u4e0d\u540c\u5c42\u7ea7\u7684\u6280\u672f\u65b9\u6848\uff0c\u4e0d\u5b58\u5728\u975e\u6b64\u5373\u5f7c\u7684\u51b2\u7a81\u3002\u670d\u52a1\u901a\u4fe1 Binder IPC\uff08\u7c7bRPC\uff09 \u8f6f\u603b\u7ebf\uff08\u8bbe\u5907\u7ea7\u670d\u52a1\u53d1\u73b0\uff09\u2022 \u5355\u670d\u52a1\u5d29\u6e83\u4e0d\u5f71\u54cd\u6574\u4f53\u7cfb\u7edf\uff08\u5982\u84dd\u7259\u670d\u52a1\u5b95\u673a\u540e\u81ea\u52a8\u91cd\u542f\uff09***\u2022 \u7cfb\u7edf\u670d\u52a1\uff08\u5982\u7a97\u53e3\u7ba1\u7406\u3001\u4f20\u611f\u5668\u670d\u52a1\uff09\u4f5c\u4e3a\u72ec\u7acb\u8fdb\u7a0b\u8fd0\u884c\u3002\u2022 \u5171\u540c\u70b9\uff1a\u65e0\u9700\u5173\u6ce8\u5e95\u5c42\u5fae\u670d\u52a1\uff0c\u4e13\u6ce8\u4e1a\u52a1\u903b\u8f91\u5206\u5c42\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/51696.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-10T19:59:52+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810195949-6898fa357b537.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/51696.html","url":"https:\/\/www.wsisp.com\/helps\/51696.html","name":"\u73b0\u4ee3\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u662f\u57fa\u4e8e\u5fae\u670d\u52a1\u67b6\u6784\u5417\u8fd8\u662fMVVM\u67b6\u6784\u8fd8\u662fMVP\u67b6\u6784\u8fd8\u662fMVC\u67b6\u6784 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-10T19:59:52+00:00","dateModified":"2025-08-10T19:59:52+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/51696.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/51696.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/51696.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u73b0\u4ee3\u5b89\u5353\u548c\u9e3f\u8499\u64cd\u4f5c\u7cfb\u7edf\u662f\u57fa\u4e8e\u5fae\u670d\u52a1\u67b6\u6784\u5417\u8fd8\u662fMVVM\u67b6\u6784\u8fd8\u662fMVP\u67b6\u6784\u8fd8\u662fMVC\u67b6\u6784"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/51696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=51696"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/51696\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/51692"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=51696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=51696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=51696"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=51696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}