{"id":169,"date":"2016-08-17T10:46:50","date_gmt":"2016-08-17T10:46:50","guid":{"rendered":"https:\/\/boochlin.com\/?p=169"},"modified":"2026-09-16T09:54:07","modified_gmt":"2026-09-16T09:54:07","slug":"how-to-use-recyclerview-inside-nestedscrollview","status":"publish","type":"post","link":"https:\/\/boochlin.com\/?p=169","title":{"rendered":"How to use RecyclerView inside NestedScrollView?"},"content":{"rendered":"<pre><code class=\"hljs language-java\"><span class=\"hljs-comment\">\/\/ \u95dc\u9375\u4fee\u6b63\uff1a\u95dc\u9589 RecyclerView \u81ea\u8eab\u5d4c\u5957\u6efe\u52d5\uff0c\u907f\u514d\u8207 NestedScrollView \u6436\u596a\u89f8\u63a7\u624b\u52e2<\/span>\nrecyclerView.setNestedScrollingEnabled(<span class=\"hljs-literal\">false<\/span>);\n<span class=\"hljs-comment\">\/\/ \u4e26\u4e14\u5207\u8a18\uff1a\u4f48\u5c40\u9ad8\u5ea6\u5fc5\u9808\u8a2d\u7f6e\u70ba wrap_content\uff0c\u800c\u975e match_parent<\/span><\/code><\/pre>\n<h3>\u5982\u4f55\u5728 NestedScrollView \u5167\u9077\u5165\u00a0RecyclerView \uff1f<\/h3>\n<p>\u4e0a\u9762\u7684\u5716\uff0c\u662f\u6700\u7d42\u5b8c\u6210\u7684\u756b\u9762\u3002<\/p>\n<p>\u81f3\u65bc\u9019\u500b\u554f\u984c\u5c31\u662f\u6c92\u8fa6\u6cd5\u76f4\u63a5\u96a8\u4fbf\u5728 xml \u6a94\u6848\u88e1\u96a8\u4fbf\u5beb\u5beb\u5c31\u53ef\u4ee5\u641e\u5b9a\uff0c\u5982\u4e0b\u3002\u4e3b\u8981\u5c31\u662f RecycleView \u548c NestedScrollView \u7684\u6ed1\u52d5\u6703\u7522\u751f\u885d\u7a81\u3002\u4e26\u975e spec \u6240\u8981\u6c42\u3002<\/p>\n<p>\u4ee5\u4e0b\u9762\u7684 code \u4f86\u8dd1\u3002<\/p>\n<pre><code class=\"hljs language-java\"><span class=\"hljs-comment\">\/\/ \u95dc\u9375\u4fee\u6b63\uff1a\u95dc\u9589 RecyclerView \u81ea\u8eab\u5d4c\u5957\u6efe\u52d5\uff0c\u907f\u514d\u8207 NestedScrollView \u6436\u596a\u89f8\u63a7\u624b\u52e2<\/span>\nrecyclerView.setNestedScrollingEnabled(<span class=\"hljs-literal\">false<\/span>);\n<span class=\"hljs-comment\">\/\/ \u4e26\u4e14\u5207\u8a18\uff1a\u4f48\u5c40\u9ad8\u5ea6\u5fc5\u9808\u8a2d\u7f6e\u70ba wrap_content\uff0c\u800c\u975e match_parent<\/span><\/code><\/pre>\n<p>\u5c31\u6703\u8b8a\u6210\u5e95\u4e0b\u9019\u6a23\uff0c<\/p>\n<pre><code class=\"hljs language-java\"><span class=\"hljs-comment\">\/\/ \u95dc\u9375\u4fee\u6b63\uff1a\u95dc\u9589 RecyclerView \u81ea\u8eab\u5d4c\u5957\u6efe\u52d5\uff0c\u907f\u514d\u8207 NestedScrollView \u6436\u596a\u89f8\u63a7\u624b\u52e2<\/span>\nrecyclerView.setNestedScrollingEnabled(<span class=\"hljs-literal\">false<\/span>);\n<span class=\"hljs-comment\">\/\/ \u4e26\u4e14\u5207\u8a18\uff1a\u4f48\u5c40\u9ad8\u5ea6\u5fc5\u9808\u8a2d\u7f6e\u70ba wrap_content\uff0c\u800c\u975e match_parent<\/span><\/code><\/pre>\n<p>\u4e3b\u8981\u5c31\u662f\u9ad8\u5ea6\u7684\u5224\u5b9a\u6703\u91cd\u758a\u5230\uff0c\u5e95\u4e0b\u7684 RecycleView \u88ab AppBarLayout \u84cb\u4f4f\uff0c\u5728 AppBarLayout \u5c55\u958b\u60c5\u6cc1\u4e0b \uff0c RecycleView \u4e0d\u7ba1\u600e\u9ebc\u6ed1\u52d5\uff0cAppBarLayout \u90fd\u4e0d\u70ba\u6240\u52d5\uff0c\u53ea\u6709\u7576 AppBarLayout \u64c7\u758a\u8d77\u4f86\uff0cRecycleView \u5f80\u4e0b\u62c9\u5230\u5e95\uff0c\u624d\u6703\u5224\u5b9a AppBarLayout \u9023\u52d5\u5230\u3002<\/p>\n<p>\u56e0\u6b64\u9019\u88e1\u53ef\u4ee5\u5408\u7406\u63a8\u65b7 RecycleView \u7684\u9ad8\u5ea6\u5224\u5b9a\u662f\u6709\u554f\u984c\u7684\u3002\u5f9e\u756b\u9762\u4e0a\u4f86\u770b\u767c\u73fe RecycleView \u7684\u986f\u793a\u7bc4\u570d\u662f\u5728\u5f9e AppBarLayout \u5e95\u90e8\u958b\u59cb\u7b97\uff0c\u7136\u5f8c\u52a0\u4e0a RecycleView \u7684\u9ad8\u5ea6\uff0c\u800c RecycleView \u7684\u9ad8\u5ea6\u5247\u662f match_parent \uff0c\u9019\u88e1\u770b\u8d77\u4f86\u662f\u6574\u500b\u87a2\u5e55\u9ad8\u5ea6\uff0c\u90a3\u5c31\u6703\u8b8a\u6210 RecycleView \u7684\u5e95\u90e8\u6703\u8d85\u51fa\u624b\u6a5f\u87a2\u5e55\uff0c\u9019\u4e5f\u53ef\u4ee5\u5f9e\u756b\u9762\u9a57\u8b49\uff0cAppBarLayout \u5c55\u958b\u6642\uff0c RecycleView \u7121\u8ad6\u5982\u4f55\u6ed1\u52d5\u90fd\u7121\u6cd5\u770b\u5230 item 9 , 10 \uff0c\u4f46\u662f\u7576 AppBarLayout \u64c7\u758a\u6642\uff0cRecycleView \u7684\u7bc4\u570d\u5224\u5b9a\u5c31\u662f\u6b63\u5e38\u7684\u3002<\/p>\n<p>\u56e0\u6b64\u8981\u4fee\u6b63\u7684\u9ede\u5c31\u662f\u91cd\u65b0 measure RecycleView \u7684\u7bc4\u570d\uff0c\u9032\u800c\u4fee\u6b63 NestedScrollView \u7684\u884c\u70ba\u3002(\u6709\u95dc <a href=\"https:\/\/segmentfault.com\/a\/1190000002873657\">NestedScrollView<\/a>\u00a0\u9019\u7bc7\u5beb\u5f97\u4e0d\u932f\uff0cNestedScrollView \u51fa\u73fe\u4e3b\u8981\u662f\u60f3\u8981\u89e3\u6c7a\u4f55\u7a2e\u554f\u984c\uff0c\u4e3b\u8981\u662f\u7368\u7acb\u51fa class to handle parent and child touch event \uff0c\u5e38\u642d\u914d CoordinatorLayout \u7684 Behavior \u5b8c\u6210\u9177\u70ab\u529f\u80fd)<\/p>\n<p>\u6709\u95dc RecycleView \u7684 wrap_content \uff0c\u5728 measure child \u6642\uff0c\u6703\u51fa\u73fe size = 0 \u7684\u60c5\u6cc1\u3002\u9019\u5c31\u7167\u6210\u5f8c\u7e8c\u7684\u554f\u984c\uff08[\u5927\u795e\u539f\u59cb\u554f\u984c](<a href=\"http:\/\/RecyclerView\">http:\/\/RecyclerView<\/a> cannot size itself based on the measured dimensions of its children)\uff0c\u5df2\u7d93\u56de\u5831\u7d66 google\uff09\uff0c\u56e0\u6b64\u9019\u88e1\u63d0\u51fa\u91cd\u5beb onMeasure \u7684\u65b9\u6cd5\uff0c\u4e3b\u8981\u6539\u6210\u7528\u00a0View.MeasureSpec.UNSPECIFIED \u53bb\u8b93 child \u81ea\u5df1\u6c7a\u5b9a\u9ad8\u5ea6\uff0c\u6700\u5f8c\u52a0\u7e3d\u5f97\u5230 RecycleView \u7684\u9ad8\u5ea6\u3002<\/p>\n<p>ps. \u4e0a\u8ff0\u554f\u984c\u6703\u767c\u751f\u5728 android support library 23.2 \u4e4b\u524d\u3002\u5982\u679c\u662f\u4f7f\u7528 23.2 (\u5305\u542b\uff09\u4e4b\u5f8c\u7684 RecycleView \u4e4b\u5f8c\uff0c\u5c31\u53ef\u4ee5\u7528\u53e6\u5916\u4e00\u5957\u4fee\u6b63\u65b9\u6cd5(\u8df3\u904e\u4e0b\u9762\u9019\u6bb5\u7a0b\u5f0f\u78bc)<\/p>\n<p>ref\uff1a<\/p>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/31000081\/how-to-use-recyclerview-inside-nestedscrollview\">http:\/\/stackoverflow.com\/questions\/31000081\/how-to-use-recyclerview-inside-nestedscrollview<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/emanuelet\/LayoutManagers\/blob\/master\/ExpansiveLayoutManager.java\">https:\/\/github.com\/emanuelet\/LayoutManagers\/blob\/master\/ExpansiveLayoutManager.java<\/a><\/p>\n<p><a href=\"http:\/\/blog.csdn.net\/yaochangliang159\/article\/details\/50540276\">http:\/\/blog.csdn.net\/yaochangliang159\/article\/details\/50540276<\/a><\/p>\n<pre><code class=\"hljs language-java\"><span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">ExpandBarLinearLayoutManager<\/span> <span class=\"hljs-keyword\">extends<\/span> <span class=\"hljs-title class_\">LinearLayoutManager<\/span> {\n\n    <span class=\"hljs-type\">public<\/span> <span class=\"hljs-title function_\">ExpandBarLinearLayoutManager<\/span><span class=\"hljs-params\">(Context context, <span class=\"hljs-type\">int<\/span> orientation, <span class=\"hljs-type\">boolean<\/span> reverseLayout)<\/span> {\n        <span class=\"hljs-built_in\">super<\/span>(context, orientation, reverseLayout);\n    }\n\n    <span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-type\">int<\/span>[] <span class=\"hljs-variable\">mMeasuredDimension<\/span> <span class=\"hljs-operator\">=<\/span> <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">int<\/span>[<span class=\"hljs-number\">2<\/span>];\n\n    <span class=\"hljs-meta\">@Override<\/span>\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-type\">void<\/span> <span class=\"hljs-title function_\">onMeasure<\/span><span class=\"hljs-params\">(RecyclerView.Recycler recycler, RecyclerView.State state,\n                          <span class=\"hljs-type\">int<\/span> widthSpec, <span class=\"hljs-type\">int<\/span> heightSpec)<\/span> {\n        <span class=\"hljs-keyword\">final<\/span> <span class=\"hljs-type\">int<\/span> <span class=\"hljs-variable\">widthMode<\/span> <span class=\"hljs-operator\">=<\/span> View.MeasureSpec.getMode(widthSpec);\n        <span class=\"hljs-keyword\">final<\/span> <span class=\"hljs-type\">int<\/span> <span class=\"hljs-variable\">heightMode<\/span> <span class=\"hljs-operator\">=<\/span> View.MeasureSpec.getMode(heightSpec);\n        <span class=\"hljs-keyword\">final<\/span> <span class=\"hljs-type\">int<\/span> <span class=\"hljs-variable\">widthSize<\/span> <span class=\"hljs-operator\">=<\/span> View.MeasureSpec.getSize(widthSpec);\n        <span class=\"hljs-keyword\">final<\/span> <span class=\"hljs-type\">int<\/span> <span class=\"hljs-variable\">heightSize<\/span> <span class=\"hljs-operator\">=<\/span> View.MeasureSpec.getSize(heightSpec);\n        <span class=\"hljs-type\">int<\/span> <span class=\"hljs-variable\">width<\/span> <span class=\"hljs-operator\">=<\/span> <span class=\"hljs-number\">0<\/span>;\n        <span class=\"hljs-type\">int<\/span> <span class=\"hljs-variable\">height<\/span> <span class=\"hljs-operator\">=<\/span> <span class=\"hljs-number\">0<\/span>;\n        <span class=\"hljs-keyword\">for<\/span> (<span class=\"hljs-type\">int<\/span> <span class=\"hljs-variable\">i<\/span> <span class=\"hljs-operator\">=<\/span> <span class=\"hljs-number\">0<\/span>; i &lt; getItemCount(); i++) {\n\n            <span class=\"hljs-keyword\">if<\/span> (getOrientation() == HORIZONTAL) {\n\n                measureScrapChild(recycler, i,\n                        View.MeasureSpec.makeMeasureSpec(i, View.MeasureSpec.UNSPECIFIED),\n                        heightSpec,\n                        mMeasuredDimension);\n\n                width = width + mMeasuredDimension[<span class=\"hljs-number\">0<\/span>];\n                <span class=\"hljs-keyword\">if<\/span> (i == <span class=\"hljs-number\">0<\/span>) {\n                    height = mMeasuredDimension[<span class=\"hljs-number\">1<\/span>];\n                }\n            } <span class=\"hljs-keyword\">else<\/span> {\n                measureScrapChild(recycler, i,\n                        widthSpec,\n                        View.MeasureSpec.makeMeasureSpec(i, View.MeasureSpec.UNSPECIFIED),\n                        mMeasuredDimension);\n                height = height + mMeasuredDimension[<span class=\"hljs-number\">1<\/span>];\n                <span class=\"hljs-keyword\">if<\/span> (i == <span class=\"hljs-number\">0<\/span>) {\n                    width = mMeasuredDimension[<span class=\"hljs-number\">0<\/span>];\n                }\n            }\n        }\n        <span class=\"hljs-keyword\">switch<\/span> (widthMode) {\n            <span class=\"hljs-keyword\">case<\/span> View.MeasureSpec.EXACTLY:\n                width = widthSize;\n            <span class=\"hljs-keyword\">case<\/span> View.MeasureSpec.AT_MOST:\n            <span class=\"hljs-keyword\">case<\/span> View.MeasureSpec.UNSPECIFIED:\n        }\n\n        <span class=\"hljs-keyword\">switch<\/span> (heightMode) {\n            <span class=\"hljs-keyword\">case<\/span> View.MeasureSpec.EXACTLY:\n                height = heightSize;\n            <span class=\"hljs-keyword\">case<\/span> View.MeasureSpec.AT_MOST:\n            <span class=\"hljs-keyword\">case<\/span> View.MeasureSpec.UNSPECIFIED:\n        }\n\n        setMeasuredDimension(width, height);\n    }\n\n    <span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-type\">void<\/span> <span class=\"hljs-title function_\">measureScrapChild<\/span><span class=\"hljs-params\">(RecyclerView.Recycler recycler, <span class=\"hljs-type\">int<\/span> position, <span class=\"hljs-type\">int<\/span> widthSpec,\n                                   <span class=\"hljs-type\">int<\/span> heightSpec, <span class=\"hljs-type\">int<\/span>[] measuredDimension)<\/span> {\n        <span class=\"hljs-type\">View<\/span> <span class=\"hljs-variable\">view<\/span> <span class=\"hljs-operator\">=<\/span> recycler.getViewForPosition(position);\n        recycler.bindViewToPosition(view, position);\n        <span class=\"hljs-keyword\">if<\/span> (view != <span class=\"hljs-literal\">null<\/span>) {\n            RecyclerView.<span class=\"hljs-type\">LayoutParams<\/span> <span class=\"hljs-variable\">p<\/span> <span class=\"hljs-operator\">=<\/span> (RecyclerView.LayoutParams) view.getLayoutParams();\n            <span class=\"hljs-type\">int<\/span> <span class=\"hljs-variable\">childWidthSpec<\/span> <span class=\"hljs-operator\">=<\/span> ViewGroup.getChildMeasureSpec(widthSpec,\n                    getPaddingLeft() + getPaddingRight(), p.width);\n            <span class=\"hljs-type\">int<\/span> <span class=\"hljs-variable\">childHeightSpec<\/span> <span class=\"hljs-operator\">=<\/span> ViewGroup.getChildMeasureSpec(heightSpec,\n                    getPaddingTop() + getPaddingBottom(), p.height);\n            view.measure(childWidthSpec, childHeightSpec);\n            measuredDimension[<span class=\"hljs-number\">0<\/span>] = view.getMeasuredWidth() + p.leftMargin + p.rightMargin;\n            measuredDimension[<span class=\"hljs-number\">1<\/span>] = view.getMeasuredHeight() + p.bottomMargin + p.topMargin;\n            recycler.recycleView(view);\n        }\n    }\n}<\/code><\/pre>\n<p>\u7136\u5f8c\u4e00\u5b9a\u8981\u5e6b RecycleView \u8a2d\u5b9a setNestedScrollingEnabled(false)<\/p>\n<pre><code class=\"hljs language-java\">recycleView.setLayoutManager(<span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">ExpandBarLinearLayoutManager<\/span>(getActivity(), LinearLayoutManager.VERTICAL, <span class=\"hljs-literal\">false<\/span>));\nrecycleView.setNestedScrollingEnabled(<span class=\"hljs-literal\">false<\/span>);<\/code><\/pre>\n<p>\u7136\u5f8c\u5982\u679c\u76f4\u63a5\u4f7f\u7528 23.2 \u4e4b\u5f8c\u7684 RecycleView \u7684\u4eba\uff0c google \u5df2\u7d93\u4fee\u6b63\u4e86\uff0c\u53ea\u9700\u8981<\/p>\n<pre><code class=\"hljs language-java\"><span class=\"hljs-type\">LinearLayoutManager<\/span> <span class=\"hljs-variable\">linearLayoutManager<\/span> <span class=\"hljs-operator\">=<\/span> <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">LinearLayoutManager<\/span>(getActivity());\n<span class=\"hljs-comment\">\/\/ \u5176\u5be6\u9ed8\u8a8d auto measure is true.<\/span>\nlinearLayoutManager.setAutoMeasureEnabled(<span class=\"hljs-literal\">true<\/span>);\nrecycleView.setLayoutManager(linearLayoutManager);\n<span class=\"hljs-comment\">\/\/ \u9019\u884c\u4e0d\u80fd\u5c11<\/span>\nrecycleView.setNestedScrollingEnabled(<span class=\"hljs-literal\">false<\/span>);<\/code><\/pre>\n<p>\u9019\u88e1\u6211\u770b\u539f\u59cb\u78bc\uff0c\u9019\u4e00\u6bb5\u5c31\u662f\u4fee\u6b63 code \uff0c\u9084\u883b\u76f4\u89ba\uff0c\u4e26\u975e\u76f4\u63a5\u5f37\u5236\u4f7f\u7528 View.MeasureSpec.UNSPECIFIED\uff08\u9019\u554f\u984c\u9084\u883b\u660e\u986f\u7684\uff0c\u9019\u6703\u4f7f\u5f97 child view measure \u98a8\u96aa\u8b8a\u5f88\u5927\uff0c\u56e0\u70ba\u7121\u6cd5\u63a7\u5236 child view \u662f\u9069\u5408\u54ea\u4e00\u7a2e\uff09\uff0c\u800c\u662f\u63a1\u7528\u5169\u968e\u6bb5 layout \uff0c\u85c9\u6b64\u5f97\u5230\u6b63\u78ba\u7684 child size.<\/p>\n<pre><code class=\"hljs language-java\"><span class=\"hljs-keyword\">if<\/span> (mLayout.mAutoMeasure) {\n            <span class=\"hljs-keyword\">final<\/span> <span class=\"hljs-type\">int<\/span> <span class=\"hljs-variable\">widthMode<\/span> <span class=\"hljs-operator\">=<\/span> MeasureSpec.getMode(widthSpec);\n            <span class=\"hljs-keyword\">final<\/span> <span class=\"hljs-type\">int<\/span> <span class=\"hljs-variable\">heightMode<\/span> <span class=\"hljs-operator\">=<\/span> MeasureSpec.getMode(heightSpec);\n            <span class=\"hljs-keyword\">final<\/span> <span class=\"hljs-type\">boolean<\/span> <span class=\"hljs-variable\">skipMeasure<\/span> <span class=\"hljs-operator\">=<\/span> widthMode == MeasureSpec.EXACTLY\n                    &amp;&amp; heightMode == MeasureSpec.EXACTLY;\n            mLayout.onMeasure(mRecycler, mState, widthSpec, heightSpec);\n            <span class=\"hljs-keyword\">if<\/span> (skipMeasure || mAdapter == <span class=\"hljs-literal\">null<\/span>) {\n                <span class=\"hljs-keyword\">return<\/span>;\n            }\n            <span class=\"hljs-keyword\">if<\/span> (mState.mLayoutStep == State.STEP_START) {\n                dispatchLayoutStep1();\n            }\n            <span class=\"hljs-comment\">\/\/ set dimensions in 2nd step. Pre-layout should happen with old dimensions for<\/span>\n            <span class=\"hljs-comment\">\/\/ consistency<\/span>\n            mLayout.setMeasureSpecs(widthSpec, heightSpec);\n            mState.mIsMeasuring = <span class=\"hljs-literal\">true<\/span>;\n            dispatchLayoutStep2();\n\n            <span class=\"hljs-comment\">\/\/ now we can get the width and height from the children.<\/span>\n            mLayout.setMeasuredDimensionFromChildren(widthSpec, heightSpec);\n\n            <span class=\"hljs-comment\">\/\/ if RecyclerView has non-exact width and height and if there is at least one child<\/span>\n            <span class=\"hljs-comment\">\/\/ which also has non-exact width &amp; height, we have to re-measure.<\/span>\n            <span class=\"hljs-keyword\">if<\/span> (mLayout.shouldMeasureTwice()) {\n                mLayout.setMeasureSpecs(\n                        MeasureSpec.makeMeasureSpec(getMeasuredWidth(), MeasureSpec.EXACTLY),\n                        MeasureSpec.makeMeasureSpec(getMeasuredHeight(), MeasureSpec.EXACTLY));\n                mState.mIsMeasuring = <span class=\"hljs-literal\">true<\/span>;\n                dispatchLayoutStep2();\n                <span class=\"hljs-comment\">\/\/ now we can get the width and height from the children.<\/span>\n                mLayout.setMeasuredDimensionFromChildren(widthSpec, heightSpec);\n            }\n        }<\/code><\/pre>\n<p>\u6709\u8208\u8da3\u7684\u4eba\uff0c\u53ef\u4ee5\u7e7c\u7e8c trace code \uff0c\u4f46\u6211\u5c31\u5230\u6b64\u4e00\u97a0\u8eac\u5566\u3002<\/p>\n<p>other reference:<\/p>\n<p><a href=\"http:\/\/www.jianshu.com\/p\/4535442d568f\">http:\/\/www.jianshu.com\/p\/4535442d568f<\/a><\/p>\n<p><a href=\"http:\/\/www.jianshu.com\/p\/06c0ae8d9a96\">http:\/\/www.jianshu.com\/p\/06c0ae8d9a96<\/a><\/p>\n<p><a href=\"http:\/\/blog.csdn.net\/feiduclear_up\/article\/details\/46514791\">http:\/\/blog.csdn.net\/feiduclear_up\/article\/details\/46514791<\/a><\/p>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/25702884\/add-viewpagerindicator-to-android-studio\">http:\/\/stackoverflow.com\/questions\/25702884\/add-viewpagerindicator-to-android-studio<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/\/ \u95dc\u9375\u4fee\u6b63\uff1a\u95dc\u9589 RecyclerView \u81ea\u8eab\u5d4c\u5957\u6efe\u52d5\uff0c\u907f\u514d\u8207 NestedScrollView \u6436\u596a\u89f8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[168],"tags":[262,279,303],"_links":{"self":[{"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/posts\/169"}],"collection":[{"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/boochlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169"}],"version-history":[{"count":4,"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":1406,"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions\/1406"}],"wp:attachment":[{"href":"https:\/\/boochlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/boochlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/boochlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}