Java 实现谷歌Play Store';s";“列表中的列表”;

Java 实现谷歌Play Store';s";“列表中的列表”;,java,android,list,android-recyclerview,Java,Android,List,Android Recyclerview,我希望能够在play store应用程序中实现与Google相同的结果 我能想到的唯一方法是在如下所示的Recyclerview适配器中添加Recyclerview <android.support.v4.widget.SwipeRefreshLayout android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.RecyclerVi

我希望能够在play store应用程序中实现与Google相同的结果

我能想到的唯一方法是在如下所示的Recyclerview适配器中添加Recyclerview

<android.support.v4.widget.SwipeRefreshLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
    android:id="@+id/recyclerView"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

你知道如何让它展示它的内容吗?或者你知道如何以另一种方式实现它吗


谢谢

我不认为谷歌在另一个列表中使用列表:内部列表不可滚动,所以。。。如果需要(即,如果数据包含多种支付方式),他们只需在recycler适配器中构建一个包含多行的单元格


实际上,您可以看到“更多付款设置”,因此我猜这张卡有固定的最大显示付款方式数。

似乎有。我刚刚在屏幕截图上删除了我的信用卡号码,但他们在顶部的“添加付款方式”元素上方一个接一个地添加了所有付款方式。这并不意味着他们使用listview。再一次,我明白没有滚动,但他们怎么能做到呢?是否在线性布局中手动添加视图?在我看来,这个动画真的很像一个recyclerview动画。如果你想看的话,你可以自己看。我就是这样做的。请参阅此布局:它是将列表转换为视图页面,再转换为listview。无论存在多少需求,我将只显示前四个需求
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:elevation="100dp"
card_view:cardCornerRadius="8dp">

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:padding="8dp"
    android:orientation="vertical">

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginBottom="8dp"/>

        <android.support.v7.widget.RecyclerView
            android:id="@+id/recyclerView"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
    </android.support.v7.widget.RecyclerView>
</LinearLayout>