[英]Scrolling after scrolling in recycler view
I would like to put a scrollable Recycler View, but at the end of the Recycler View, I would like to show other elements in the bottom of the scroll. 我想放置一个可滚动的Recycler View,但是在Recycler View的最后,我想在滚动条的底部显示其他元素。
How can I do that ? 我怎样才能做到这一点 ?
There is my code : 有我的代码:
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView_card_elements"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LOG OUT"
android:layout_margin="10dp"
android:textStyle="bold"
android:textSize="18sp"/>
</RelativeLayout>
maybe you need something like this: 也许您需要这样的东西:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView_card_elements"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LOG OUT"
android:layout_margin="10dp"
android:textStyle="bold"
android:textSize="18sp"/>
</RelativeLayout>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.