{"id":354,"date":"2022-09-23T10:44:08","date_gmt":"2022-09-23T02:44:08","guid":{"rendered":"https:\/\/blog.iichen.cn\/?p=354"},"modified":"2022-09-23T10:44:08","modified_gmt":"2022-09-23T02:44:08","slug":"android-%e8%87%aa%e5%ae%9a%e4%b9%89%e5%ae%bf%e4%b8%bb%e7%ae%a1%e7%90%86%e7%8a%b6%e6%80%81%e6%a0%8f","status":"publish","type":"post","link":"https:\/\/iichen.cn\/?p=354","title":{"rendered":"Android-\u81ea\u5b9a\u4e49\u5bbf\u4e3b\u7ba1\u7406\u72b6\u6001\u680f"},"content":{"rendered":"<h3>\u81ea\u5b9a\u4e49\u72b6\u6001\u680fView\u5bf9\u8c61<\/h3>\n<pre><code class=\"language-java line-numbers\">\/**\n * \u81ea\u5b9a\u4e49\u72b6\u6001\u680f\u7684View\uff0c\u7528\u4e8eStatusBarHostLayout\u4e2d\u4f7f\u7528\n *\/\nclass StatusView extends View {\n\n    private int mBarSize;\n\n    public StatusView(Context context) {\n        this(context, null, 0);\n    }\n\n    public StatusView(Context context, AttributeSet attrs) {\n        this(context, attrs, 0);\n    }\n\n    public StatusView(Context context, AttributeSet attrs, int defStyleAttr) {\n        super(context, attrs, defStyleAttr);\n\n        mBarSize = StatusBarHostUtils.getStatusBarHeight(context);\n    }\n\n    @Override\n    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n        setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec), mBarSize);\n    }\n\n    \/\/\u83b7\u53d6\u5230\u5f53\u524d\u7684\u72b6\u6001\u680f\u9ad8\u5ea6\n    public int getStatusBarHeight() {\n        return mBarSize;\n    }\n}\n<\/code><\/pre>\n<h3>\u6838\u5fc3\u7684\u5bbf\u4e3b\u4ee3\u66ff\u7c7b<\/h3>\n<pre><code class=\"language-java line-numbers\">\/**\n * \u5bbf\u4e3b\u7684\u5e03\u5c40\n *\/\n@SuppressLint(\"ViewConstructor\")\npublic class StatusBarHostLayout extends LinearLayout {\n\n    private Activity mActivity;\n    private StatusView mStatusView;\n    private FrameLayout mContentLayout;\n\n    StatusBarHostLayout(Activity activity) {\n        super(activity);\n\n        this.mActivity = activity;\n\n        \/\/\u52a0\u8f7d\u81ea\u5b9a\u4e49\u7684\u5bbf\u4e3b\u5e03\u5c40\n        if (mStatusView == null &amp;&amp; mContentLayout == null) {\n            setOrientation(LinearLayout.VERTICAL);\n\n            mStatusView = new StatusView(mActivity);\n            mStatusView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n            addView(mStatusView);\n\n            mContentLayout = new FrameLayout(mActivity);\n            mContentLayout.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 0, 1.0f));\n            addView(mContentLayout);\n        }\n\n        \/\/\u66ff\u6362\u5bbf\u4e3b\u7684contentView\u4e3a\u5916\u754c\u8bbe\u7f6e\u7684View\n        replaceContentView();\n\n        \/\/\u8bbe\u7f6e\u539f\u751f\u7684\u72b6\u6001\u680f\u6c89\u6d78\u5f0f\uff0c\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u72b6\u6001\u680f\u5e03\u5c40\n        StatusBarHostUtils.immersiveStatusBar(mActivity);\n        StatusBarHostUtils.setStatusBarColor(mActivity, Color.TRANSPARENT);\n    }\n\n    private void replaceContentView() {\n        Window window = mActivity.getWindow();\n        ViewGroup contentLayout = window.getDecorView().findViewById(Window.ID_ANDROID_CONTENT);\n        if (contentLayout.getChildCount() &gt; 0) {\n            \/\/\u5148\u627e\u5230DecorView\u7684\u5bb9\u5668\u79fb\u9664\u6389\u5df2\u7ecf\u8bbe\u7f6e\u7684ContentView\n            View contentView = contentLayout.getChildAt(0);\n            contentLayout.removeView(contentView);\n            ViewGroup.LayoutParams contentParams = contentView.getLayoutParams();\n\n            \/\/\u5916\u90e8\u8bbe\u7f6e\u7684ContentView\u6dfb\u52a0\u5230\u5bbf\u4e3b\u4e2d\u6765\n            mContentLayout.addView(contentView, contentParams.width, contentParams.height);\n        }\n        \/\/\u518d\u628a\u6574\u4e2a\u5bbf\u4e3b\u6dfb\u52a0\u5230Activity\u5bf9\u5e94\u7684DecorView\u4e2d\u53bb\n        contentLayout.addView(this, -1, -1);\n    }\n\n\n    \/**\n     * \u8bbe\u7f6e\u72b6\u6001\u680f\u6587\u672c\u989c\u8272\u4e3a\u9ed1\u8272\n     *\/\n    public StatusBarHostLayout setStatusBarBlackText() {\n        StatusBarHostUtils.setStatusBarDarkFont(mActivity, true);\n        return this;\n    }\n\n    \/**\n     * \u8bbe\u7f6e\u72b6\u6001\u680f\u6587\u672c\u989c\u8272\u4e3a\u767d\u8272\n     *\/\n    public StatusBarHostLayout setStatusBarWhiteText() {\n        StatusBarHostUtils.setStatusBarDarkFont(mActivity, false);\n        return this;\n    }\n\n    \/**\n     * \u8bbe\u7f6e\u81ea\u5b9a\u4e49\u72b6\u6001\u680f\u5e03\u5c40\u7684\u80cc\u666f\u989c\u8272\n     *\/\n    public StatusBarHostLayout setStatusBarBackground(int color) {\n        if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {\n            mStatusView.setBackgroundColor(color);\n        } else {\n            \/\/6.0\u4ee5\u4e0b\u4e0d\u80fd\u767d\u8272\u72b6\u6001\u680f\n            YYLogUtils.w(\"\u5f53\u524d\u7684\u72b6\u6001\u989c\u82721\uff1a\" + color);\n            if (color == Color.WHITE) {\n                color = Color.parseColor(\"#B0B0B0\");\n            }\n\n            mStatusView.setBackgroundColor(color);\n        }\n\n        return this;\n    }\n\n    \/**\n     * \u8bbe\u7f6e\u81ea\u5b9a\u4e49\u72b6\u6001\u680f\u5e03\u5c40\u7684\u80cc\u666f\u56fe\u7247\n     *\/\n    public StatusBarHostLayout setStatusBarBackground(Drawable drawable) {\n\n        if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.JELLY_BEAN) {\n            mStatusView.setBackground(drawable);\n        } else {\n            mStatusView.setBackgroundDrawable(drawable);\n        }\n        return this;\n    }\n\n    \/**\n     * \u8bbe\u7f6e\u81ea\u5b9a\u4e49\u72b6\u6001\u680f\u5e03\u5c40\u7684\u900f\u660e\u5ea6\n     *\/\n    public StatusBarHostLayout setStatusBarBackgroundAlpha(int alpha) {\n        Drawable background = mStatusView.getBackground();\n        if (background != null) {\n            background.mutate().setAlpha(alpha);\n        }\n        return this;\n    }\n\n    \/**\n     * \u7ed9\u6307\u5b9a\u7684\u5e03\u5c40\u9002\u914d\u72b6\u6001\u680f\u9ad8\u5ea6\uff0c\u8bbe\u7f6epaddingTop\n     *\/\n    public StatusBarHostLayout setViewFitsStatusBarView(View view) {\n\n        \/\/\u8bbe\u7f6eMaginTop\u7684\u65b9\u5f0f\n        if (view.getLayoutParams() instanceof ViewGroup.MarginLayoutParams) {\n\n            \/\/\u5df2\u7ecf\u6dfb\u52a0\u8fc7\u4e86\u4e0d\u8981\u518d\u6b21\u8bbe\u7f6e\n            if (view.getTag() != null &amp;&amp; view.getTag().equals(\"fitStatusBar\")) {\n                return this;\n            }\n\n            ViewGroup.MarginLayoutParams layoutParams = (MarginLayoutParams) view.getLayoutParams();\n            int marginTop = layoutParams.topMargin;\n            int setMarginTop = marginTop + mStatusView.getStatusBarHeight();\n            view.setTag(\"fitStatusBar\");\n            layoutParams.topMargin = setMarginTop;\n            view.requestLayout();\n        }\n\n        return this;\n    }\n\n\n    \/**\n     * \u8bbe\u7f6e\u81ea\u5b9a\u4e49\u72b6\u6001\u680f\u7684\u6c89\u6d78\u5f0f\n     *\/\n    public StatusBarHostLayout setStatusBarImmersive(boolean needImmersive) {\n        layoutimmersive(needImmersive);\n        return this;\n    }\n\n    \/\/\u5177\u4f53\u7684\u6c89\u6d78\u5f0f\u903b\u8f91\n    private void layoutimmersive(boolean needImmersive) {\n\n        if (needImmersive) {\n            mStatusView.setVisibility(GONE);\n        } else {\n            mStatusView.setVisibility(VISIBLE);\n            mStatusView.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorPrimary));\n        }\n\n    }\n\n}\n<\/code><\/pre>\n<h3>\u72b6\u6001\u680f\u8bbe\u7f6e\u5165\u53e3<\/h3>\n<pre><code class=\"language-java line-numbers\">\/**\n * \u5bbf\u4e3b\u66ff\u6362\u5e03\u5c40\u7684\u65b9\u5f0f\u7ba1\u7406\u72b6\u6001\u680f\u4e0e\u5185\u5bb9\u7684\u5e03\u5c40\n *\/\npublic class StatusBarHost {\n\n    private StatusBarHost() {\n    }\n\n    public static StatusBarHostLayout inject(Activity activity) {\n        Window window = activity.getWindow();\n        ViewGroup contentLayout = window.getDecorView().findViewById(Window.ID_ANDROID_CONTENT);\n        if (contentLayout.getChildCount() &gt; 0) {\n            View contentView = contentLayout.getChildAt(0);\n            \/\/\u5982\u679c\u5f53\u524d\u662f\u5bbf\u4e3b\u7684\u5305\u88c5\u7c7b\uff0c\u76f4\u63a5\u5f3a\u8f6c\n            if (contentView instanceof StatusBarHostLayout) {\n                return (StatusBarHostLayout) contentView;\n            }\n        }\n        \/\/\u5982\u679c\u4e0d\u662f\u6211\u4eec\u5c01\u88c5\u4e00\u4e2a\u5bbf\u4e3b\u5305\u88c5\u7c7b\n        return new StatusBarHostLayout(activity);\n    }\n}\n<\/code><\/pre>\n<h3>\u4f7f\u7528<\/h3>\n<pre><code class=\"language-java line-numbers\"> val hostLayout = StatusBarHost.inject(this)\n            .setStatusBarBackground(color(R.color.white))\n            .setStatusBarBlackText()\n\n hostLayout.setStatusBarBackground(Color.RED)\n\n hostLayout.setStatusBarBackground(getDrawable(R.drawable.statusbar_image_1))\n\n hostLayout.setStatusBarImmersive(true)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u5b9a\u4e49\u72b6\u6001\u680fView\u5bf9\u8c61 \/** * \u81ea\u5b9a\u4e49\u72b6\u6001\u680f\u7684View\uff0c\u7528\u4e8eStatusBarHostLayout\u4e2d\u4f7f\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,8],"tags":[],"class_list":["post-354","post","type-post","status-publish","format-standard","hentry","category-android","category-8"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Android-\u81ea\u5b9a\u4e49\u5bbf\u4e3b\u7ba1\u7406\u72b6\u6001\u680f - IIchen<\/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:\/\/iichen.cn\/?p=354\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android-\u81ea\u5b9a\u4e49\u5bbf\u4e3b\u7ba1\u7406\u72b6\u6001\u680f - IIchen\" \/>\n<meta property=\"og:description\" content=\"\u81ea\u5b9a\u4e49\u72b6\u6001\u680fView\u5bf9\u8c61 \/** * \u81ea\u5b9a\u4e49\u72b6\u6001\u680f\u7684View\uff0c\u7528\u4e8eStatusBarHostLayout\u4e2d\u4f7f\u7528 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iichen.cn\/?p=354\" \/>\n<meta property=\"og:site_name\" content=\"IIchen\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-23T02:44:08+00:00\" \/>\n<meta name=\"author\" content=\"iichen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"iichen\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/iichen.cn\/?p=354#article\",\"isPartOf\":{\"@id\":\"https:\/\/iichen.cn\/?p=354\"},\"author\":{\"name\":\"iichen\",\"@id\":\"https:\/\/iichen.cn\/#\/schema\/person\/4a47edf85ab49841df9e8f6aee40b77c\"},\"headline\":\"Android-\u81ea\u5b9a\u4e49\u5bbf\u4e3b\u7ba1\u7406\u72b6\u6001\u680f\",\"datePublished\":\"2022-09-23T02:44:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/iichen.cn\/?p=354\"},\"wordCount\":2,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/iichen.cn\/#\/schema\/person\/4a47edf85ab49841df9e8f6aee40b77c\"},\"articleSection\":[\"Android\",\"\u7b14\u8bb0\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/iichen.cn\/?p=354#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iichen.cn\/?p=354\",\"url\":\"https:\/\/iichen.cn\/?p=354\",\"name\":\"Android-\u81ea\u5b9a\u4e49\u5bbf\u4e3b\u7ba1\u7406\u72b6\u6001\u680f - IIchen\",\"isPartOf\":{\"@id\":\"https:\/\/iichen.cn\/#website\"},\"datePublished\":\"2022-09-23T02:44:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/iichen.cn\/?p=354#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iichen.cn\/?p=354\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iichen.cn\/?p=354#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/iichen.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android-\u81ea\u5b9a\u4e49\u5bbf\u4e3b\u7ba1\u7406\u72b6\u6001\u680f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/iichen.cn\/#website\",\"url\":\"https:\/\/iichen.cn\/\",\"name\":\"IIchen\",\"description\":\"Just do it!\",\"publisher\":{\"@id\":\"https:\/\/iichen.cn\/#\/schema\/person\/4a47edf85ab49841df9e8f6aee40b77c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/iichen.cn\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/iichen.cn\/#\/schema\/person\/4a47edf85ab49841df9e8f6aee40b77c\",\"name\":\"iichen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/iichen.cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/iichen.cn\/wp-content\/uploads\/2025\/01\/avatar.jpg\",\"contentUrl\":\"https:\/\/iichen.cn\/wp-content\/uploads\/2025\/01\/avatar.jpg\",\"width\":940,\"height\":940,\"caption\":\"iichen\"},\"logo\":{\"@id\":\"https:\/\/iichen.cn\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/www.iichen.cn\"],\"url\":\"https:\/\/iichen.cn\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android-\u81ea\u5b9a\u4e49\u5bbf\u4e3b\u7ba1\u7406\u72b6\u6001\u680f - IIchen","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:\/\/iichen.cn\/?p=354","og_locale":"zh_CN","og_type":"article","og_title":"Android-\u81ea\u5b9a\u4e49\u5bbf\u4e3b\u7ba1\u7406\u72b6\u6001\u680f - IIchen","og_description":"\u81ea\u5b9a\u4e49\u72b6\u6001\u680fView\u5bf9\u8c61 \/** * \u81ea\u5b9a\u4e49\u72b6\u6001\u680f\u7684View\uff0c\u7528\u4e8eStatusBarHostLayout\u4e2d\u4f7f\u7528 [&hellip;]","og_url":"https:\/\/iichen.cn\/?p=354","og_site_name":"IIchen","article_published_time":"2022-09-23T02:44:08+00:00","author":"iichen","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"iichen","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/iichen.cn\/?p=354#article","isPartOf":{"@id":"https:\/\/iichen.cn\/?p=354"},"author":{"name":"iichen","@id":"https:\/\/iichen.cn\/#\/schema\/person\/4a47edf85ab49841df9e8f6aee40b77c"},"headline":"Android-\u81ea\u5b9a\u4e49\u5bbf\u4e3b\u7ba1\u7406\u72b6\u6001\u680f","datePublished":"2022-09-23T02:44:08+00:00","mainEntityOfPage":{"@id":"https:\/\/iichen.cn\/?p=354"},"wordCount":2,"commentCount":0,"publisher":{"@id":"https:\/\/iichen.cn\/#\/schema\/person\/4a47edf85ab49841df9e8f6aee40b77c"},"articleSection":["Android","\u7b14\u8bb0"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/iichen.cn\/?p=354#respond"]}]},{"@type":"WebPage","@id":"https:\/\/iichen.cn\/?p=354","url":"https:\/\/iichen.cn\/?p=354","name":"Android-\u81ea\u5b9a\u4e49\u5bbf\u4e3b\u7ba1\u7406\u72b6\u6001\u680f - IIchen","isPartOf":{"@id":"https:\/\/iichen.cn\/#website"},"datePublished":"2022-09-23T02:44:08+00:00","breadcrumb":{"@id":"https:\/\/iichen.cn\/?p=354#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iichen.cn\/?p=354"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iichen.cn\/?p=354#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/iichen.cn\/"},{"@type":"ListItem","position":2,"name":"Android-\u81ea\u5b9a\u4e49\u5bbf\u4e3b\u7ba1\u7406\u72b6\u6001\u680f"}]},{"@type":"WebSite","@id":"https:\/\/iichen.cn\/#website","url":"https:\/\/iichen.cn\/","name":"IIchen","description":"Just do it!","publisher":{"@id":"https:\/\/iichen.cn\/#\/schema\/person\/4a47edf85ab49841df9e8f6aee40b77c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/iichen.cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/iichen.cn\/#\/schema\/person\/4a47edf85ab49841df9e8f6aee40b77c","name":"iichen","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/iichen.cn\/#\/schema\/person\/image\/","url":"https:\/\/iichen.cn\/wp-content\/uploads\/2025\/01\/avatar.jpg","contentUrl":"https:\/\/iichen.cn\/wp-content\/uploads\/2025\/01\/avatar.jpg","width":940,"height":940,"caption":"iichen"},"logo":{"@id":"https:\/\/iichen.cn\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/www.iichen.cn"],"url":"https:\/\/iichen.cn\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/iichen.cn\/index.php?rest_route=\/wp\/v2\/posts\/354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iichen.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iichen.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iichen.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iichen.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=354"}],"version-history":[{"count":0,"href":"https:\/\/iichen.cn\/index.php?rest_route=\/wp\/v2\/posts\/354\/revisions"}],"wp:attachment":[{"href":"https:\/\/iichen.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iichen.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iichen.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}