取消最左侧固定列
Closed this issue · 4 comments
mxdlsm commented
大佬如何取消最左侧固定咧和隐藏的红色的那一列,我只想要既能左右滑又能上下滑。求助
Loren-Moon commented
取消最左侧的固定列不写最左侧的布局就行了,即横向只用写com.loren.component.view.widget.SwipeHorizontalScrollView
不用写其他布局。
隐藏红色那一列可以不写红色列的布局并且设置app:needHideLeft="false"
<!-- 取消下面布局 -->
<TextView
android:layout_width="200dp"
android:layout_height="match_parent"
android:background="@android:color/holo_red_light"
android:gravity="center"
android:text="彩蛋"
android:textColor="@android:color/white"
android:textSize="36sp" />
<com.loren.component.view.widget.HorizontalRecyclerView
android:id="@+id/rvStock"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:needHideLeft="false"
app:needShadow="true"
tools:listitem="@layout/item_stock" />
mxdlsm commented
谢谢您,分页加载的话就跟正常recycleview使用一样吧?
Loren-Moon commented
是的
mxdlsm commented
谢谢