{"id":452,"date":"2015-04-19T20:00:25","date_gmt":"2015-04-19T12:00:25","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=452"},"modified":"2026-08-18T12:58:39","modified_gmt":"2026-08-18T04:58:39","slug":"android%e4%ba%94%e5%a4%a7%e5%b8%83%e5%b1%80","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=452","title":{"rendered":"Android\u4e94\u5927\u5e03\u5c40"},"content":{"rendered":"<section id=\"wenyan\" style=\"font-family: system-ui, 'Apple Color Emoji', 'Segoe UI', 'Segoe UI Symbol', 'Noto Sans', Roboto, sans-serif; line-height: 1.75; font-size: 16px; color: #000000; caret-color: #000000;\" data-provider=\"WenYan\">\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\">Android \u754c\u9762\u7531\u5e03\u5c40\u548c\u7ec4\u4ef6\u534f\u540c\u5b8c\u6210\uff1a\u5e03\u5c40\u597d\u6bd4\u5efa\u7b51\u6846\u67b6\uff0c\u7ec4\u4ef6\u597d\u6bd4\u7816\u74e6\u3002\u7ec4\u4ef6\u6309\u5e03\u5c40\u8981\u6c42\u6392\u5217\uff0c\u5c31\u7ec4\u6210\u7528\u6237\u770b\u89c1\u7684\u754c\u9762\u3002\u4e94\u5927\u5e03\u5c40\u5206\u522b\u662f <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">LinearLayout<\/code>\uff08\u7ebf\u6027\uff09\u3001<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">FrameLayout<\/code>\uff08\u5355\u5e27\uff09\u3001<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">RelativeLayout<\/code>\uff08\u76f8\u5bf9\uff09\u3001<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">AbsoluteLayout<\/code>\uff08\u7edd\u5bf9\uff09\u548c <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">TableLayout<\/code>\uff08\u8868\u683c\uff09\u3002<\/p>\n<\/blockquote>\n<p><!--more--><\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/04\/13.jpeg\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-457\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/04\/13-300x191.jpeg\" alt=\"13\" width=\"300\" height=\"191\" srcset=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/04\/13-300x191.jpeg 300w, https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/04\/13-528x337.jpeg 528w, https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/04\/13.jpeg 555w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e00\u3001LinearLayout<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">LinearLayout \u6309\u5782\u76f4\u6216\u6c34\u5e73\u987a\u5e8f\u4f9d\u6b21\u6392\u5217\u5b50\u5143\u7d20\uff0c\u6bcf\u4e2a\u5b50\u5143\u7d20\u90fd\u4f4d\u4e8e\u524d\u4e00\u4e2a\u4e4b\u540e\u3002\u5782\u76f4\u6392\u5217\u662f N \u884c\u5355\u5217\uff0c\u6bcf\u4e00\u884c\u53ea\u6709\u4e00\u4e2a\u5143\u7d20\uff0c\u4e0d\u8bba\u5bbd\u5ea6\u591a\u5c11\uff1b\u6c34\u5e73\u6392\u5217\u662f\u5355\u884c N \u5217\u3002\u82e5\u8981\u4e24\u884c\u4e24\u5217\uff0c\u901a\u5e38\u5148\u5782\u76f4\u653e\u4e24\u4e2a\u5143\u7d20\uff0c\u6bcf\u4e2a\u5143\u7d20\u91cc\u518d\u5957\u4e00\u4e2a\u6c34\u5e73 LinearLayout\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u5b50\u5143\u7d20\u7684 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:layout_weight<\/code> \u4f1a\u751f\u6548\uff0c\u63cf\u8ff0\u8be5\u5b50\u5143\u7d20\u5728\u5269\u4f59\u7a7a\u95f4\u4e2d\u5360\u7684\u6bd4\u4f8b\u3002\u4e00\u884c\u53ea\u6709\u4e00\u4e2a\u6587\u672c\u6846\u65f6\u9ed8\u8ba4\u503c\u4e3a 0\uff1b\u4e24\u4e2a\u7b49\u957f\u6587\u672c\u6846\u53ef\u4ee5\u540c\u4e3a 1\uff1b\u4e24\u4e2a\u4e0d\u7b49\u957f\u6587\u672c\u6846\u5206\u522b\u4e3a 1 \u548c 2 \u65f6\uff0c\u7b2c\u4e00\u4e2a\u5360\u5269\u4f59\u7a7a\u95f4\u7684\u4e09\u5206\u4e4b\u4e00\u3001\u7b2c\u4e8c\u4e2a\u5360\u4e09\u5206\u4e4b\u4e8c\u3002\u539f\u6587\u539f\u5219\uff1a\u6570\u503c\u8d8a\u5c0f\uff0c\u91cd\u8981\u5ea6\u8d8a\u9ad8\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u7ebf\u6027\u5e03\u5c40\u7684\u4ee3\u7801\u5b9e\u73b0\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/\/\u7ebf\u6027\u5e03\u5c40(LinearLayout)\u4ee3\u7801\u5b9e\u73b0:\n\nLinearLayout llayout = new LinearLayout(this);\n\nllayout.setOrientation(LinearLayout.VERTICAL); \/\/ \u8bbe\u7f6e\u7ebf\u6027\u5e03\u5c40\u7684\u6392\u5217\u65b9\u5f0f\n\nTextView textView = new TextView(this);\n\ntextView.setText(&quot;\u4ee3\u7801\u5b9e\u73b0\u7684\u7ebf\u6027\u5e03\u5c40&quot;);\n\ntextView.setTextColor(Color.RED);\n\ntextView.setGravity(Gravity.CENTER); \/\/ \u8bbe\u7f6e\u6587\u672c\u5185\u5bb9\u7684\u5bf9\u9f50\u65b9\u5f0f\n\nLinearLayout.LayoutParams ll_lpara = new      LinearLayout.LayoutParams(MP,WC);\n\n\/\/ll_lpara.gravity = Gravity.CENTER_HORIZONTAL; \/\/ \u8bbe\u7f6e\u63a7\u4ef6\u5728\u5e03\u5c40\u4e2d\u7684\u5bf9\u9f50\u65b9\u5f0f\n\nllayout.addView(textView,ll_lpara);\n\nButton btn = new Button(this);\n\nbtn.setText(&quot;\u6309\u94ae&quot;);\n\nllayout.addView(btn,ll_lpara); \/\/ \u6309\u6307\u5b9a\u5c5e\u6027\u6dfb\u52a0\u63a7\u4ef6\n\nsetContentView(llayout);<\/code><\/pre>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e8c\u3001RelativeLayout<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">RelativeLayout \u6309\u5b50\u5143\u7d20\u4e4b\u95f4\u7684\u4f4d\u7f6e\u5173\u7cfb\u5b8c\u6210\u5e03\u5c40\u3002<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:layout_below<\/code>\u3001<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:layout_above<\/code> \u7b49\u4e0e\u4f4d\u7f6e\u76f8\u5173\u7684\u5c5e\u6027\u4f1a\u751f\u6548\u3002\u5b50\u5143\u7d20\u901a\u8fc7\u8fd9\u4e9b\u5c5e\u6027\u548c\u5404\u81ea ID \u6307\u5b9a\u4f4d\u7f6e\u3002\u5f15\u7528\u7684 ID \u5fc5\u987b\u5148\u5b9a\u4e49\uff0c\u5426\u5219\u4f1a\u5f02\u5e38\u3002\u8fd9\u662f\u4e94\u5927\u5e03\u5c40\u91cc\u6700\u7075\u6d3b\u7684\u4e00\u79cd\uff0c\u9002\u5408\u590d\u6742\u754c\u9762\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u5e38\u7528\u4f4d\u7f6e\u5c5e\u6027\uff1a<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:layout_toLeftOf<\/code> \/ <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">layout_toRightOf<\/code>\uff1a\u4f4d\u4e8e\u5f15\u7528\u7ec4\u4ef6\u5de6\/\u53f3\u65b9<\/section>\n<\/li>\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:layout_above<\/code> \/ <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">layout_below<\/code>\uff1a\u4f4d\u4e8e\u5f15\u7528\u7ec4\u4ef6\u4e0a\/\u4e0b\u65b9<\/section>\n<\/li>\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:layout_alignParentLeft\/Right\/Top\/Bottom<\/code>\uff1a\u662f\u5426\u5bf9\u9f50\u7236\u7ec4\u4ef6\u56db\u8fb9<\/section>\n<\/li>\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:layout_centerInParent<\/code>\u3001<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">centerHorizontal<\/code>\u3001<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">centerVertical<\/code>\uff1a\u76f8\u5bf9\u7236\u7ec4\u4ef6\u5c45\u4e2d<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u793a\u4f8b\uff1a\u7b2c\u4e00\u4e2a\u6587\u672c\u6846\u4e0e\u7236\u7ec4\u4ef6\u5e95\u90e8\u5bf9\u9f50\uff0c\u7b2c\u4e8c\u4e2a\u5728\u7b2c\u4e00\u4e2a\u4e0a\u65b9\uff0c\u7b2c\u4e09\u4e2a\u5728\u7b2c\u4e8c\u4e2a\u5de6\u65b9\u3002\u4e0b\u9762\u4ee3\u7801\u7528\u56db\u4e2a Button \u6f14\u793a\u76f8\u5bf9\u89c4\u5219\uff08btn1 \u9876\u5bf9\u9f50\u4e14\u6c34\u5e73\u5c45\u4e2d\uff0cbtn2 \u5728\u5176\u4e0b\u65b9\u5de6\u5bf9\u9f50\uff0cbtn3 \u5728 btn1 \u4e0b\u65b9\u3001btn2 \u53f3\u65b9\u4e14\u53f3\u5bf9\u9f50 btn1\uff0cbtn4 \u5728 btn2 \u4e0b\u65b9\u6c34\u5e73\u5c45\u4e2d\uff09\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/\/\u4ee3\u7801\u5b9e\u73b0:\n\n        RelativeLayout rl = new RelativeLayout(this);\n\n        Button btn1 = new Button(this);\n\n        btn1.setText(&quot;----------------------&quot;);\n\n        btn1.setId(1);\n\n        RelativeLayout.LayoutParams lp1 = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\n        lp1.addRule(RelativeLayout.ALIGN_PARENT_TOP);\n\n        lp1.addRule(RelativeLayout.CENTER_HORIZONTAL, RelativeLayout.TRUE);\n\n        \/\/ btn1 \u4f4d\u4e8e\u7236 View \u7684\u9876\u90e8\uff0c\u5728\u7236 View \u4e2d\u6c34\u5e73\u5c45\u4e2d\n\n        rl.addView(btn1, lp1 );\n\n        Button btn2 = new Button(this);\n\n        btn2.setText(&quot;|\\n|\\n|\\n|\\n|\\n|&quot;);\n\n        btn2.setId(2);\n\n        RelativeLayout.LayoutParams lp2 = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\n        lp2.addRule(RelativeLayout.BELOW, 1);\n\n        lp2.addRule(RelativeLayout.ALIGN_LEFT, 1);\n\n        \/\/ btn2 \u4f4d\u4e8e btn1 \u7684\u4e0b\u65b9\u3001\u5176\u5de6\u8fb9\u548c btn1 \u7684\u5de6\u8fb9\u5bf9\u9f50\n\n        rl.addView(btn2, lp2);\n\n        Button btn3 = new Button(this);\n\n        btn3.setText(&quot;|\\n|\\n|\\n|\\n|\\n|&quot;);\n\n        btn3.setId(3);\n\n        RelativeLayout.LayoutParams lp3 = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\n       lp3.addRule(RelativeLayout.BELOW, 1);\n\n        lp3.addRule(RelativeLayout.RIGHT_OF, 2);\n\n        lp3.addRule(RelativeLayout.ALIGN_RIGHT, 1);\n\n        \/\/ btn3 \u4f4d\u4e8e btn1 \u7684\u4e0b\u65b9\u3001btn2 \u7684\u53f3\u65b9\u4e14\u5176\u53f3\u8fb9\u548c btn1 \u7684\u53f3\u8fb9\u5bf9\u9f50\uff08\u8981\u6269\u5145\uff09\n\n        rl.addView(btn3,lp3);\n\n        Button btn4 = new Button(this);\n\n        btn4.setText(&quot;--------------------------------------------&quot;);\n\n        btn4.setId(4);\n\n        RelativeLayout.LayoutParams lp4 = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\n        lp4.addRule(RelativeLayout.BELOW, 2);\n\n        lp4.addRule(RelativeLayout.CENTER_HORIZONTAL, RelativeLayout.TRUE);\n\n        \/\/ btn4 \u4f4d\u4e8e btn2 \u7684\u4e0b\u65b9\uff0c\u5728\u7236 Veiw \u4e2d\u6c34\u5e73\u5c45\u4e2d\n\n        rl.addView(btn4,lp4);\n\n        setContentView(rl);<\/code><\/pre>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e09\u3001FrameLayout<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">FrameLayout \u662f\u4e94\u5927\u5e03\u5c40\u91cc\u6700\u7b80\u5355\u7684\u4e00\u4e2a\u3002\u6574\u4e2a\u754c\u9762\u88ab\u5f53\u6210\u4e00\u5757\u7a7a\u767d\u5907\u7528\u533a\u57df\uff0c\u6240\u6709\u5b50\u5143\u7d20\u90fd\u4e0d\u80fd\u6307\u5b9a\u653e\u7f6e\u4f4d\u7f6e\uff0c\u7edf\u7edf\u653e\u5728\u533a\u57df\u5de6\u4e0a\u89d2\uff1b\u540e\u9762\u7684\u5b50\u5143\u7d20\u76f4\u63a5\u8986\u76d6\u5728\u524d\u9762\u4e4b\u4e0a\uff0c\u628a\u524d\u9762\u7684\u5b50\u5143\u7d20\u90e8\u5206\u6216\u5168\u90e8\u906e\u6321\u3002\u663e\u793a\u6548\u679c\u4e0a\uff0c\u7b2c\u4e00\u4e2a TextView \u4f1a\u88ab\u7b2c\u4e8c\u4e2a\u5b8c\u5168\u906e\u6321\uff0c\u7b2c\u4e09\u4e2a\u4f1a\u906e\u6321\u7b2c\u4e8c\u4e2a\u7684\u90e8\u5206\u4f4d\u7f6e\u3002<\/p>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u56db\u3001AbsoluteLayout<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u7edd\u5bf9\u4f4d\u7f6e\u5e03\u5c40\u3002\u5b50\u5143\u7d20\u7684 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:layout_x<\/code> \u548c <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:layout_y<\/code> \u751f\u6548\uff0c\u63cf\u8ff0\u5750\u6807\u3002\u5c4f\u5e55\u5de6\u4e0a\u89d2\u4e3a\u539f\u70b9 (0,0)\uff0c\u7b2c\u4e00\u4e2a 0 \u662f\u6a2a\u5750\u6807\uff08\u5411\u53f3\u589e\u5927\uff09\uff0c\u7b2c\u4e8c\u4e2a 0 \u662f\u7eb5\u5750\u6807\uff08\u5411\u4e0b\u589e\u5927\uff09\u3002\u5b50\u5143\u7d20\u53ef\u4ee5\u76f8\u4e92\u91cd\u53e0\u3002\u5b9e\u9645\u5f00\u53d1\u901a\u5e38\u4e0d\u91c7\u7528\uff0c\u56e0\u4e3a\u754c\u9762\u4ee3\u7801\u8fc7\u4e8e\u521a\u6027\uff0c\u5f88\u96be\u9002\u914d\u5404\u79cd\u7ec8\u7aef\u3002<\/p>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e94\u3001TableLayout<\/span><\/h2>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">\u7b80\u4ecb\u4e0e\u884c\u5217<\/h3>\n<p style=\"margin: 1em 0px;\">TableLayout \u4ee5\u884c\u548c\u5217\u7ba1\u7406\u63a7\u4ef6\u3002\u6bcf\u4e00\u884c\u662f\u4e00\u4e2a TableRow\uff0c\u6216\u4e00\u4e2a View\u3002\u4e3a TableRow \u65f6\u53ef\u5728\u5176\u4e0b\u6dfb\u52a0\u5b50\u63a7\u4ef6\uff0c\u9ed8\u8ba4\u6bcf\u4e2a\u5b50\u63a7\u4ef6\u5360\u4e00\u5217\uff1b\u4e3a View \u65f6\u8be5 View \u72ec\u5360\u4e00\u884c\u3002\u884c\u6570\u7531\u5f00\u53d1\u8005\u6307\u5b9a\uff08\u6709\u591a\u5c11 TableRow \u6216 View \u5c31\u6709\u591a\u5c11\u884c\uff09\uff1b\u5217\u6570\u7b49\u4e8e\u542b\u6700\u591a\u5b50\u63a7\u4ef6\u7684 TableRow \u7684\u5217\u6570\u3002\u4f8b\u5982\u4e09\u884c\u5206\u522b\u542b 2\u30013\u30014 \u4e2a\u5b50\u63a7\u4ef6\uff0c\u5219\u5217\u6570\u4e3a 4\u3002<\/p>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">\u5168\u5c40\u5217\u5c5e\u6027\u4e0e\u5355\u5143\u683c\u5c5e\u6027<\/h3>\n<p style=\"margin: 1em 0px;\">\u5168\u5c40\uff08\u5217\uff09\u5c5e\u6027\u6709\u4e09\u4e2a\uff1a<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:stretchColumns<\/code>\uff1a\u53ef\u4f38\u5c55\u7684\u5217\uff0c\u53ef\u5411\u884c\u65b9\u5411\u4f38\u5c55\uff0c\u6700\u591a\u5360\u4e00\u6574\u884c\u3002\u4f8b\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">stretchColumns=&quot;0&quot;<\/code> \u7b2c 0 \u5217\u53ef\u4f38\u5c55\u3002<\/section>\n<\/li>\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:shrinkColumns<\/code>\uff1a\u53ef\u6536\u7f29\u7684\u5217\u3002\u5185\u5bb9\u6324\u6ee1\u6240\u5728\u884c\u65f6\uff0c\u5b50\u63a7\u4ef6\u5185\u5bb9\u5f80\u5217\u65b9\u5411\u663e\u793a\u3002\u4f8b\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">shrinkColumns=&quot;1,2&quot;<\/code>\u3002<\/section>\n<\/li>\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:collapseColumns<\/code>\uff1a\u8981\u9690\u85cf\u7684\u5217\u3002\u4f8b\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">collapseColumns=&quot;*&quot;<\/code> \u9690\u85cf\u6240\u6709\u5217\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u5217\u53ef\u4ee5\u540c\u65f6\u5177\u5907 stretchColumns \u4e0e shrinkColumns\u3002\u5185\u5bb9\u5f88\u591a\u65f6\u4f1a\u6309\u9700\u8981\u8c03\u8282\u8be5\u884c\u7684 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">layout_height<\/code>\uff08\u4e0d\u662f\u771f\u6b63\u7684\u591a\u884c\uff09\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u5355\u5143\u683c\u5c5e\u6027\uff1a<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:layout_column<\/code>\uff1a\u6307\u5b9a\u5355\u5143\u683c\u5728\u7b2c\u51e0\u5217\u663e\u793a\u3002\u4f8b\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">layout_column=&quot;1&quot;<\/code>\u3002<\/section>\n<\/li>\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android:layout_span<\/code>\uff1a\u5360\u636e\u7684\u5217\u6570\uff08\u672a\u6307\u5b9a\u4e3a 1\uff09\u3002\u4f8b\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">layout_span=&quot;2&quot;<\/code>\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u4e00\u4e2a\u63a7\u4ef6\u4e5f\u53ef\u4ee5\u540c\u65f6\u5177\u5907\u8fd9\u4e24\u4e2a\u7279\u6027\u3002XML \u4e0e\u4ee3\u7801\u5b9e\u73b0\u5982\u4e0b\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/\/xml\u6587\u4ef6\n\n&lt;TableLayout\n\n  android:id=&quot;@+id\/table1&quot;\n\n  android:layout_width=&quot;fill_parent&quot;\n\n  android:layout_height=&quot;wrap_content&quot;\n\n  android:stretchColumns=&quot;0&quot;\n\n  android:shrinkColumns=&quot;1&quot;\n\n  android:collapseColumns=&quot;2&quot;\n\n  android:padding=&quot;3dip&quot;&gt;\n\n  &lt;TableRow&gt;\n\n   &lt;Button android:text=&quot;\u8be5\u5217\u53ef\u4f38\u5c55&quot;\/&gt;\n\n   &lt;Button android:text=&quot;\u8be5\u5217\u53ef\u6536\u7f29&quot;\/&gt;\n\n   &lt;Button android:text=&quot;\u6211\u88ab\u9690\u85cf\u4e86&quot;\/&gt;\n\n  &lt;\/TableRow&gt;\n\n  &lt;TableRow&gt;\n\n   &lt;TextView android:text=&quot;\u6211\u5411\u884c\u65b9\u5411\u4f38\u5c55\uff0c\u6211\u53ef\u4ee5\u5f88\u957f    &quot;\/&gt;\n\n   &lt;TextView android:text=&quot;\u6211\u5411\u5217\u65b9\u5411\u6536\u7f29\uff0c\u6211\u53ef\u4ee5\u5f88\u6df1&quot;\/&gt;\n\n  &lt;\/TableRow&gt;\n\n &lt;\/TableLayout&gt;\n\n\/\/\u4ee3\u7801\u5b9e\u73b0:\n\n       TableLayout tableLayout = new TableLayout(this);\n\n        setContentView(tableLayout);\n\n        TableRow row1 = new TableRow(this);\n\n        tableLayout.addView(row1);\n\n        TextView view1 = new TextView(this);\n\n        view1.setText(&quot;\u8d26\u53f7\u540d\u79f0:&quot;);\n\n        view1.setWidth(100);\n\n        EditText text1 = new EditText(this);\n\n        text1.setWidth(150);\n\n        text1.setSingleLine();\n\n        text1.setFilters(new InputFilter[] { new InputFilter.LengthFilter(15) });\n\n        text1.setId(TEXT_ID_ONE);\n\n        row1.addView(view1);\n\n        row1.addView(text1);\n\n        TableRow row2 = new TableRow(this);\n\n        tableLayout.addView(row2);\n\n        TextView view2 = new TextView(this);\n\n        view2.setWidth(100);\n\n        view2.setText(&quot;\u8d26\u53f7\u5bc6\u7801:&quot;);\n\n        EditText text2 = new EditText(this);\n\n        text2.setSingleLine();\n\n        text2.setWidth(150);\n\n        \/\/ \u8bbe\u7f6e\u4e3a\u5bc6\u7801\u6a21\u5f0f\n\n        text2.setTransformationMethod(newPasswordTransformationMethod());\n\n        \/\/ \u8bbe\u7f6e\u6700\u5927\u957f\u5ea6,\u4e3a15\n\n        text2.setFilters(new InputFilter[] { new InputFilter.LengthFilter(15) });\n\n        text2.setId(TEXT_PASSWD);\n\n        row2.addView(view2);\n\n        row2.addView(text2);\n\n        TableRow row3 = new TableRow(this);\n\n        tableLayout.addView(row3);\n\n        Button b1 = new Button(this);\n\n        b1.setText(&quot;\u786e\u5b9a&quot;);\n\n        b1.setId(BUTTON_ID_OK);\n\n        b1.setOnClickListener(this);\n\n        Button b2 = new Button(this);\n\n        b2.setText(&quot;\u53d6\u6d88&quot;);\n\n        b2.setId(BUTTON_ID_CANCEL);\n\n        b2.setOnClickListener(this);\n\n        row3.addView(b1);\n\n        row3.addView(b2);<\/code><\/pre>\n<table style=\"border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; text-align: left; overflow: auto; display: table; overflow-wrap: break-word; word-break: break-all;\" width=\"817\">\n<thead>\n<tr>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u5e03\u5c40<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u6392\u5217\u65b9\u5f0f<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u5178\u578b\u7528\u9014<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">LinearLayout<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u6c34\u5e73\u6216\u5782\u76f4\u4f9d\u6b21\u6392\u5217\uff0c\u53ef\u7528 weight<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u8868\u5355\u3001\u5de5\u5177\u680f<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">RelativeLayout<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u76f8\u5bf9\u5144\u5f1f\/\u7236\u5bb9\u5668\u5b9a\u4f4d<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u590d\u6742\u754c\u9762<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">FrameLayout<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u5168\u90e8\u53e0\u5728\u5de6\u4e0a\u89d2\uff0c\u540e\u8005\u8986\u76d6\u524d\u8005<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u53e0\u5c42\u3001\u5360\u4f4d<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">AbsoluteLayout<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">layout_x \/ layout_y \u7edd\u5bf9\u5750\u6807<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u5b9e\u9645\u5f88\u5c11\u7528<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">TableLayout<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u884c\uff08TableRow\uff09x \u5217\uff0c\u53ef\u4f38\u5c55\/\u6536\u7f29\/\u9690\u85cf<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u8868\u683c\u578b\u754c\u9762<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\"><strong>\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1a\u5148\u7528 LinearLayout \u548c RelativeLayout \u89e3\u51b3\u5927\u591a\u6570\u754c\u9762\uff0cFrameLayout \u505a\u53e0\u5c42\uff0cTableLayout \u505a\u8868\u683c\uff1bAbsoluteLayout \u5c3d\u91cf\u907f\u5f00\u3002<\/strong><\/p>\n<\/blockquote>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Android \u754c\u9762\u7531\u5e03\u5c40\u548c\u7ec4\u4ef6\u534f\u540c\u5b8c\u6210\uff1a\u5e03\u5c40\u597d\u6bd4\u5efa\u7b51\u6846\u67b6\uff0c\u7ec4\u4ef6\u597d\u6bd4\u7816\u74e6\u3002\u7ec4\u4ef6\u6309\u5e03\u5c40\u8981\u6c42\u6392\u5217\uff0c\u5c31\u7ec4\u6210\u7528\u6237\u770b\u89c1\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[195],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/452"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=452"}],"version-history":[{"count":3,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/452\/revisions"}],"predecessor-version":[{"id":460,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/452\/revisions\/460"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}