如何降低导航抽屉在Android导航抽屉中打开时的高度?
答
变化layout_width要求尺寸
<android.support.v7.widget.RecyclerView
android:id="@+id/RecyclerView"
android:layout_width="320dp"
android:layout_height="match_parent"
android:layout_gravity="left"
android:background="#ffffff"
android:scrollbars="vertical">
</android.support.v7.widget.RecyclerView>
你可以试试这个:'drawer_list.setLayoutParams(新的LayoutParams(LayoutParams.FILL_PARENT,yourHeight));' –