{"id":312,"date":"2023-09-05T11:35:16","date_gmt":"2022-08-14T00:39:11","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/index.php\/2023\/11\/30\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/"},"modified":"2025-08-01T21:21:57","modified_gmt":"2025-08-01T13:21:57","slug":"%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/","title":{"rendered":"Android Material Design\u6587\u672c\u6846\u8bbe\u8ba1\u6307\u5357"},"content":{"rendered":"<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u65b0\u7684\u6750\u6599\u8bbe\u8ba1\u7ec4\u4ef6\u5e93\u6765\u5b9e\u73b0\u6587\u672c\u5b57\u6bb5\u3002\u6211\u4eec\u5df2\u7ecf\u5728\u8fd9\u91cc\u5b9e\u73b0\u4e86TextInputLayout\u3002<\/p>\n<h2>\u6750\u6599\u8bbe\u8ba1\u6587\u672c\u5b57\u6bb5<\/h2>\n<p>TextInputLayout\u63d0\u4f9b\u4e86Material\u8bbe\u8ba1\u6587\u672c\u5b57\u6bb5\u7684\u5b9e\u73b0\u3002\u6211\u4eec\u53ea\u9700\u8981\u4f7f\u7528TextInputEditText\uff01\u9996\u5148\uff0c\u5bfc\u5165\u65b0\u7684\u6750\u6599\u7ec4\u4ef6\u4f9d\u8d56\u9879\u3002\u540c\u65f6\uff0c\u5728\u60a8\u7684Activity\u4e2d\u8bbe\u7f6eMaterialComponent\u4e3b\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code>implementation 'com.google.android.material:material:1.1.0-alpha09'\r\n<\/code><\/pre>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8f93\u5165\u6587\u672c\u6846\u5177\u6709\u586b\u5145\u7684\u80cc\u666f\u4ee5\u5438\u5f15\u7528\u6237\u7684\u6ce8\u610f\u3002\u73b0\u5728\u8ba9\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u9ed8\u8ba4\u7684\u6587\u672c\u6846\uff1a<\/p>\n<pre class=\"post-pre\"><code> &lt;com.google.android.material.textfield.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_marginBottom=\"12dp\"\r\n            android:hint=\"\u586b\u5145\u6846\uff08\u9ed8\u8ba4\uff09\"&gt;\r\n\r\n            &lt;com.google.android.material.textfield.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n&lt;\/com.google.android.material.textfield.TextInputLayout&gt;\r\n<\/code><\/pre>\n<p>\u5728\u63a5\u4e0b\u6765\u7684\u51e0\u4e2a\u90e8\u5206\u4e2d\uff0c\u6211\u4eec\u5c06\u4ee5\u4e0d\u540c\u7684\u65b9\u5f0f\u81ea\u5b9a\u4e49\u6587\u672c\u5b57\u6bb5\u3002<\/p>\n<h3>\u6807\u51c6\u548c\u5bc6\u96c6\u7684\u6587\u672c\u5b57\u6bb5<\/h3>\n<p>\u6587\u672c\u5b57\u6bb5\u6709\u4e24\u79cd\u9ad8\u5ea6\u53d8\u4f53\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>\u6807\u51c6 &#8211; \u5982\u679c\u6ca1\u6709\u7279\u522b\u8bbe\u7f6e\uff0c\u8fd9\u662f\u9ed8\u8ba4\u4f7f\u7528\u7684\u6837\u5f0f\u3002<\/li>\n<li>\u5bc6\u96c6 &#8211; @style\/Widget.MaterialComponents.TextInputLayout.FilledBox.Dense<\/li>\n<\/ul>\n<p>\u5bc6\u96c6\u578b\u6587\u672c\u5b57\u6bb5\u7684\u9ad8\u5ea6\u7a0d\u5fae\u77ee\u4e00\u70b9\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;com.google.android.material.textfield.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_marginBottom=\"12dp\"\r\n            android:hint=\"\u586b\u5145\u6846\uff08\u9ed8\u8ba4\uff09\"&gt;\r\n\r\n            &lt;com.google.android.material.textfield.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n        &lt;\/com.google.android.material.textfield.TextInputLayout&gt;\r\n\r\n        &lt;com.google.android.material.textfield.TextInputLayout\r\n            style=\"@style\/Widget.MaterialComponents.TextInputLayout.FilledBox.Dense\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_marginBottom=\"12dp\"\r\n            android:hint=\"\u5bc6\u96c6\u586b\u5145\u6846\"\r\n            app:boxBackgroundColor=\"#20D81B60\"&gt;\r\n\r\n            &lt;com.google.android.material.textfield.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n        &lt;\/com.google.android.material.textfield.TextInputLayout&gt;\r\n<\/code><\/pre>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528FilledBox.Standard\u6837\u5f0f\uff0capp:boxBackgroundColor\u7528\u4e8e\u8bbe\u7f6e\u586b\u5145\u6846\u7684\u989c\u8272\u3002\u4ee5\u4e0b\u662f\u5728\u5c4f\u5e55\u4e0a\u7684\u663e\u793a\u6548\u679c\uff1a<\/p>\n<div>\n                            <img decoding=\"async\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647f77a4b2f92e6c72dd7c\/13-0.png\" class='post-images' alt=\"Android Material Text Field Dense Standard Filled Box\" title=\"\">\n                        <\/div>\n<h3>\u6587\u672c\u5b57\u6bb5\u7684\u5916\u6846\u6837\u5f0f<\/h3>\n<p>\u5728TextInputLayout\u4e0a\u5e94\u7528\u4ee5\u4e0b\u6837\u5f0f\u4ee5\u83b7\u5f97\u5e26\u6709\u8f6e\u5ed3\u5916\u89c2\u7684\u6587\u672c\u5b57\u6bb5\uff1a<\/p>\n<pre class=\"post-pre\"><code>style=\"@style\/Widget.MaterialComponents.TextInputLayout.OutlinedBox\"\r\n<\/code><\/pre>\n<p>\u7c7b\u4f3c\u4e8eFilledBox\uff0c\u8fd9\u4e2a\u4e5f\u6709\u4e24\u79cd\u9ad8\u5ea6\u53d8\u4f53 &#8211; \u6807\u51c6\u548c\u5bc6\u96c6\u3002\u4e3a\u4e86\u8bbe\u7f6e\u89d2\u534a\u5f84\uff0c\u4f7f\u7528\u4ee5\u4e0b\u5c5e\u6027\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>boxCornerRadiusTopStart &#8211; \u5de6\u4e0a\u89d2\u5706\u89d2\u534a\u5f84<\/li>\n<li>boxCornerRadiusTopEnd &#8211; \u53f3\u4e0a\u89d2\u5706\u89d2\u534a\u5f84<\/li>\n<li>boxCornerRadiusBottomStart &#8211; \u5de6\u4e0b\u89d2\u5706\u89d2\u534a\u5f84<\/li>\n<li>boxCornerRadiusBottomEnd &#8211; \u53f3\u4e0b\u89d2\u5706\u89d2\u534a\u5f84<\/li>\n<\/ul>\n<p>boxStrokeColor \u7528\u4e8e\u8bbe\u7f6e\u8fb9\u6846\u7684\u63cf\u8fb9\u989c\u8272\u3002\u8fd9\u662f\u5b83\u7684\u6548\u679c\uff1a<\/p>\n<div>\n                            <img decoding=\"async\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647f77a4b2f92e6c72dd7c\/20-0.png\" class='post-images' alt=\"Android Material Text Field Outlined Box\" title=\"\">\n                        <\/div>\n<h3>\u672b\u7aef\u56fe\u6807\u6a21\u5f0f<\/h3>\n<p>\u7ee7\u7eed\u524d\u8fdb\uff0c\u73b0\u5728\u8ba9\u6211\u4eec\u8bbe\u7f6e\u672b\u7aef\u56fe\u6807\u6a21\u5f0f\u3002\u8fd9\u4e9b\u57fa\u672c\u4e0a\u662f\u8bbe\u7f6e\u5728\u6587\u672c\u5b57\u6bb5\u53f3\u4fa7\u7684\u56fe\u6807\u3002\u76ee\u524d\uff0c\u5185\u5efa\u63d0\u4f9b\u7684\u4e09\u79cd\u7c7b\u578b\u7684\u56fe\u6807\u6709\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>password_toggle &#8211; \u5bc6\u7801\u5207\u6362\u56fe\u6807<\/li>\n<li>clear_text &#8211; \u6e05\u9664\u6587\u672c\u56fe\u6807<\/li>\n<li>custom &#8211; \u81ea\u5b9a\u4e49\u56fe\u6807<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c5e\u6027\u662f\u4e0d\u8a00\u81ea\u660e\u7684\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528endIconTint\u5c5e\u6027\u4e3a\u8fd9\u4e9b\u56fe\u6807\u8bbe\u7f6e\u6211\u4eec\u81ea\u5df1\u7684\u56fe\u6807\u8272\u8c03\u3002\u5bf9\u4e8e\u81ea\u5b9a\u4e49\u56fe\u6807\uff0c\u6211\u4eec\u4f7f\u7528endIconDrawable\u5c5e\u6027\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;com.google.android.material.textfield.TextInputLayout\r\n            style=\"@style\/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_marginBottom=\"12dp\"\r\n            android:hint=\"\u8f93\u5165\u5bc6\u7801\"\r\n            app:endIconMode=\"password_toggle\"&gt;\r\n\r\n            &lt;com.google.android.material.textfield.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n        &lt;\/com.google.android.material.textfield.TextInputLayout&gt;\r\n\r\n        &lt;com.google.android.material.textfield.TextInputLayout\r\n            style=\"@style\/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_marginBottom=\"12dp\"\r\n            android:hint=\"\u8f93\u5165\u5bc6\u7801\"\r\n            app:endIconMode=\"password_toggle\"\r\n            app:endIconTint=\"@color\/colorAccent\"&gt;\r\n\r\n            &lt;com.google.android.material.textfield.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n        &lt;\/com.google.android.material.textfield.TextInputLayout&gt;\r\n\r\n        &lt;com.google.android.material.textfield.TextInputLayout\r\n            style=\"@style\/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_marginBottom=\"12dp\"\r\n            android:hint=\"\u6e05\u9664\u6587\u672c\"\r\n            app:endIconMode=\"clear_text\"\r\n            app:endIconTint=\"@color\/colorPrimaryDark\"&gt;\r\n\r\n            &lt;com.google.android.material.textfield.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n        &lt;\/com.google.android.material.textfield.TextInputLayout&gt;\r\n\r\n\r\n        &lt;com.google.android.material.textfield.TextInputLayout\r\n            style=\"@style\/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_marginBottom=\"12dp\"\r\n            android:hint=\"\u81ea\u5b9a\u4e49\u672b\u7aef\u56fe\u6807\"\r\n            app:endIconCheckable=\"true\"\r\n            android:id=\"@+id\/custom_end_icon\"\r\n            app:endIconDrawable=\"@android:drawable\/ic_input_add\"\r\n            app:endIconMode=\"custom\"\r\n            app:endIconTint=\"@color\/colorPrimaryDark\"&gt;\r\n\r\n            &lt;com.google.android.material.textfield.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n        &lt;\/com.google.android.material.textfield.TextInputLayout&gt;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u662f\u5c4f\u5e55\u4e0a\u7684\u663e\u793a\u6548\u679c\uff1a<\/p>\n<div>\n                            <img decoding=\"async\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647f77a4b2f92e6c72dd7c\/27-0.png\" class='post-images' alt=\"Android Material Text Field End Icons\" title=\"\">\n                        <\/div>\n<p>\u5bf9\u4e8e\u81ea\u5b9a\u4e49\u56fe\u6807\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528setEndIconOnClickListener\u56de\u8c03\u6765\u76d1\u542c\u70b9\u51fb\u4e8b\u4ef6\u5e76\u6267\u884c\u76f8\u5e94\u64cd\u4f5c\u3002<\/p>\n<h3>\u6587\u672c\u5b57\u6bb5\u7684\u5f62\u72b6<\/h3>\n<p>ShapeAppearance\u8fd9\u4e00\u6837\u5f0f\u529f\u80fd\u5f3a\u5927\uff0c\u5b83\u53ef\u4ee5\u8ba9\u6211\u4eec\u81ea\u5b9a\u4e49\u6587\u672c\u6846\u7684\u5f62\u72b6\u3002\u6211\u4eec\u6709\u4e24\u79cd\u5185\u7f6e\u7684\u5f62\u72b6-\u5207\u5272\u5f62\u548c\u5706\u5f62\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;style name=\"Cut\" parent=\"ShapeAppearance.MaterialComponents.MediumComponent\"&gt;\r\n        &lt;item name=\"cornerFamily\"&gt;cut&lt;\/item&gt;\r\n        &lt;item name=\"cornerSize\"&gt;12dp&lt;\/item&gt;\r\n    &lt;\/style&gt;\r\n\r\n    &lt;style name=\"Rounded\" parent=\"ShapeAppearance.MaterialComponents.SmallComponent\"&gt;\r\n        &lt;item name=\"cornerFamily\"&gt;rounded&lt;\/item&gt;\r\n        &lt;item name=\"cornerSize\"&gt;16dp&lt;\/item&gt;\r\n    &lt;\/style&gt;\r\n<\/code><\/pre>\n<p>\u5728shapeAppearance\u5c5e\u6027\u4e2d\u8bbe\u7f6e\u4e0a\u8ff0\u6837\u5f0f\u4f1a\u5f97\u5230\u4ee5\u4e0b\u7ed3\u679c<\/p>\n<div>\n                            <img decoding=\"async\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647f77a4b2f92e6c72dd7c\/33-0.png\" class='post-images' alt=\"Android Material Text Field Shapes\" title=\"\">\n                        <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u65b0\u7684\u6750\u6599\u8bbe\u8ba1\u7ec4\u4ef6\u5e93\u6765\u5b9e\u73b0\u6587\u672c\u5b57\u6bb5\u3002\u6211\u4eec\u5df2\u7ecf\u5728\u8fd9\u91cc\u5b9e\u73b0\u4e86TextInputLayout\u3002  [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[900,1085,1029,902,1084],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-android","tag-edittext","tag-material-design","tag-ui","tag-1084"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Android Material Design\u6587\u672c\u6846\u8bbe\u8ba1\u6307\u5357 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Android\u5e94\u7528\u4e2d\u5b9e\u73b0Material Design\u98ce\u683c\u7684\u6587\u672c\u6846\u8bbe\u8ba1\uff0c\u5305\u62ecTextInputLayout\u548cEditText\u7684\u4f7f\u7528\u6280\u5de7\u3001\u81ea\u5b9a\u4e49\u6837\u5f0f\u65b9\u6cd5\u4ee5\u53ca\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848\u3002\u9002\u5408Android\u5f00\u53d1\u8005\u5b66\u4e60\u6700\u65b0\u7684UI\u8bbe\u8ba1\u8d8b\u52bf\uff0c\u63d0\u5347\u5e94\u7528\u7528\u6237\u4f53\u9a8c\u3002\" \/>\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.silicloud.com\/zh\/blog\/\u5b89\u5353\u6750\u6599\u8bbe\u8ba1\u7684\u6587\u672c\u6846\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android Material Design\u6587\u672c\u6846\u8bbe\u8ba1\u6307\u5357\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Android\u5e94\u7528\u4e2d\u5b9e\u73b0Material Design\u98ce\u683c\u7684\u6587\u672c\u6846\u8bbe\u8ba1\uff0c\u5305\u62ecTextInputLayout\u548cEditText\u7684\u4f7f\u7528\u6280\u5de7\u3001\u81ea\u5b9a\u4e49\u6837\u5f0f\u65b9\u6cd5\u4ee5\u53ca\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848\u3002\u9002\u5408Android\u5f00\u53d1\u8005\u5b66\u4e60\u6700\u65b0\u7684UI\u8bbe\u8ba1\u8d8b\u52bf\uff0c\u63d0\u5347\u5e94\u7528\u7528\u6237\u4f53\u9a8c\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5b89\u5353\u6750\u6599\u8bbe\u8ba1\u7684\u6587\u672c\u6846\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-14T00:39:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-01T13:21:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647f77a4b2f92e6c72dd7c\/13-0.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\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.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/\",\"name\":\"Android Material Design\u6587\u672c\u6846\u8bbe\u8ba1\u6307\u5357 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-08-14T00:39:11+00:00\",\"dateModified\":\"2025-08-01T13:21:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"description\":\"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Android\u5e94\u7528\u4e2d\u5b9e\u73b0Material Design\u98ce\u683c\u7684\u6587\u672c\u6846\u8bbe\u8ba1\uff0c\u5305\u62ecTextInputLayout\u548cEditText\u7684\u4f7f\u7528\u6280\u5de7\u3001\u81ea\u5b9a\u4e49\u6837\u5f0f\u65b9\u6cd5\u4ee5\u53ca\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848\u3002\u9002\u5408Android\u5f00\u53d1\u8005\u5b66\u4e60\u6700\u65b0\u7684UI\u8bbe\u8ba1\u8d8b\u52bf\uff0c\u63d0\u5347\u5e94\u7528\u7528\u6237\u4f53\u9a8c\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android Material Design\u6587\u672c\u6846\u8bbe\u8ba1\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Android Material Design\u6587\u672c\u6846\u8bbe\u8ba1\u6307\u5357 - Blog - Silicon Cloud","description":"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Android\u5e94\u7528\u4e2d\u5b9e\u73b0Material Design\u98ce\u683c\u7684\u6587\u672c\u6846\u8bbe\u8ba1\uff0c\u5305\u62ecTextInputLayout\u548cEditText\u7684\u4f7f\u7528\u6280\u5de7\u3001\u81ea\u5b9a\u4e49\u6837\u5f0f\u65b9\u6cd5\u4ee5\u53ca\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848\u3002\u9002\u5408Android\u5f00\u53d1\u8005\u5b66\u4e60\u6700\u65b0\u7684UI\u8bbe\u8ba1\u8d8b\u52bf\uff0c\u63d0\u5347\u5e94\u7528\u7528\u6237\u4f53\u9a8c\u3002","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.silicloud.com\/zh\/blog\/\u5b89\u5353\u6750\u6599\u8bbe\u8ba1\u7684\u6587\u672c\u6846\/","og_locale":"zh_CN","og_type":"article","og_title":"Android Material Design\u6587\u672c\u6846\u8bbe\u8ba1\u6307\u5357","og_description":"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Android\u5e94\u7528\u4e2d\u5b9e\u73b0Material Design\u98ce\u683c\u7684\u6587\u672c\u6846\u8bbe\u8ba1\uff0c\u5305\u62ecTextInputLayout\u548cEditText\u7684\u4f7f\u7528\u6280\u5de7\u3001\u81ea\u5b9a\u4e49\u6837\u5f0f\u65b9\u6cd5\u4ee5\u53ca\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848\u3002\u9002\u5408Android\u5f00\u53d1\u8005\u5b66\u4e60\u6700\u65b0\u7684UI\u8bbe\u8ba1\u8d8b\u52bf\uff0c\u63d0\u5347\u5e94\u7528\u7528\u6237\u4f53\u9a8c\u3002","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5b89\u5353\u6750\u6599\u8bbe\u8ba1\u7684\u6587\u672c\u6846\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-08-14T00:39:11+00:00","article_modified_time":"2025-08-01T13:21:57+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647f77a4b2f92e6c72dd7c\/13-0.png"}],"author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/","name":"Android Material Design\u6587\u672c\u6846\u8bbe\u8ba1\u6307\u5357 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-08-14T00:39:11+00:00","dateModified":"2025-08-01T13:21:57+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"description":"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Android\u5e94\u7528\u4e2d\u5b9e\u73b0Material Design\u98ce\u683c\u7684\u6587\u672c\u6846\u8bbe\u8ba1\uff0c\u5305\u62ecTextInputLayout\u548cEditText\u7684\u4f7f\u7528\u6280\u5de7\u3001\u81ea\u5b9a\u4e49\u6837\u5f0f\u65b9\u6cd5\u4ee5\u53ca\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848\u3002\u9002\u5408Android\u5f00\u53d1\u8005\u5b66\u4e60\u6700\u65b0\u7684UI\u8bbe\u8ba1\u8d8b\u52bf\uff0c\u63d0\u5347\u5e94\u7528\u7528\u6237\u4f53\u9a8c\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Android Material Design\u6587\u672c\u6846\u8bbe\u8ba1\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%89%e5%8d%93%e6%9d%90%e6%96%99%e8%ae%be%e8%ae%a1%e7%9a%84%e6%96%87%e6%9c%ac%e6%a1%86\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=312"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/312\/revisions"}],"predecessor-version":[{"id":109807,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/312\/revisions\/109807"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}