我是用的Android框架XUI,软件Android studio
具体想要的效果如图:
我的小单据用LinkageRecyclerView控件显示的,该怎么通过查出的托盘进行嵌套分类呢,求指导!!
现在做出的效果以及布局代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.core.widget.NestedScrollView
style="@style/ScrollViewStyle"
android:layout_marginBottom="50dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
style="@style/TabLayoutStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:orientation="horizontal">
<TextView
style="@style/TextStyle.Explain"
android:layout_width="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginLeft="4dp"
android:text="xxx:"
android:textSize="15dp" />
<com.xuexiang.xui.widget.spinner.materialspinner.MaterialSpinner
android:id="@+id/spinner"
style="@style/Material.SpinnerStyle"
android:layout_width="270dp"
android:layout_height="wrap_content"
android:layout_marginTop="4dp" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#e6e6e6"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:background="@color/xui_config_color_white">
<com.xuexiang.xui.widget.textview.supertextview.SuperTextView
android:id="@+id/stv_saomiao"
style="@style/addPropertySupertTextViewStyle"
app:sEditTextButtonType="clear"
app:sLeftTextString="扫描"
app:sRightTextColor="#cdcdcd"/>
</LinearLayout>
<LinearLayout
android:id="@+id/ly_zichan"
style="@style/TabLayoutStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.xuexiang.xui.widget.layout.linkage.view.LinkageRecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never" />
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginTop="0dp"
android:orientation="horizontal">
<Button
android:id="@+id/btn_submit"
android:layout_width="match_parent"
android:layout_height="50dp"
android:focusable="false"
android:text="提交"
android:textSize="20dp" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>