Android recyclerview底部的空白区域
我有一个带有底部工作表容器和底部导航栏的活动。底部图纸包含一个线性布局的recyclerview。我想知道如何在recyclerview上的最后一个项目末尾添加空间,以防止底部导航栏隐藏最后一个项目 我已尝试将Android recyclerview底部的空白区域,android,xml,android-recyclerview,bottom-sheet,Android,Xml,Android Recyclerview,Bottom Sheet,我有一个带有底部工作表容器和底部导航栏的活动。底部图纸包含一个线性布局的recyclerview。我想知道如何在recyclerview上的最后一个项目末尾添加空间,以防止底部导航栏隐藏最后一个项目 我已尝试将cliptopladding设置为false,但无效: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xm
cliptopladding
设置为false,但无效:
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/coordinator"
tools:context="com.jaribio.jaribio.MainFragments.HomeFragment">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.ybq.android.spinkit.SpinKitView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:id="@+id/spin_kit"
style="@style/SpinKitView.Large.CubeGrid"
android:layout_centerHorizontal="true"
android:layout_alignParentTop="true"
android:layout_marginTop="50dp"
app:SpinKit_Color="@color/colorPrimary"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="800dp"
android:visibility="gone"
android:src="@drawable/waiting"
android:id="@+id/question_image"
android:scaleType="centerCrop"
/>
<com.jaribio.jaribio.Utilities.CustomTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="25sp"
android:visibility="gone"
android:textColor="@android:color/white"
android:padding="10dp"
android:layout_marginTop="10dp"
android:layout_centerHorizontal="true"
android:textAlignment="center"
android:gravity="center"
android:id="@+id/textView_header"/>
<com.jaribio.jaribio.Utilities.CustomTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView_header"
android:padding="10dp"
android:visibility="gone"
android:layout_margin="8dp"
android:textColor="@android:color/white"
android:textAlignment="center"
android:gravity="center"
android:textSize="16sp"
android:id="@+id/textView_sub_header"/>
</RelativeLayout>
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
app:layout_behavior="@string/bottom_sheet_behavior"
android:id="@+id/home_recyclerview_bottom_sheet"
app:behavior_peekHeight = "312dp"
android:clipToPadding="false"
android:paddingBottom="10dp"
xmlns:app="http://schemas.android.com/apk/res-auto"/>
</android.support.design.widget.CoordinatorLayout>
有什么解决办法吗?你能发布完整的xml吗?@SomeshKumar刚刚发布:)那么你的底页在另一个布局中了吗?@SomeshKumar根本没有,我只是把我的RecyclerViewItems布局分开了。这已经在这里解决了:你能发布完整的xml吗?@SomeshKumar刚刚做了:)那么你的底页在另一个布局中了吗?@SomeshKumar根本没有,我只是把我的RecyclerViewItems布局分开了。这已经在这里解决了: