[英]Scrolling after scrolling in recycler view
我想放置一個可滾動的Recycler View,但是在Recycler View的最后,我想在滾動條的底部顯示其他元素。
我怎樣才能做到這一點 ?
有我的代碼:
<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>
也許您需要這樣的東西:
<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.