Wu_Naiandn1 2021-06-29 14:46 采纳率: 44.4%
浏览 66
已采纳

Android可以根据查询的数据进行LinkageRecyclerView嵌套吗?

我是用的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>
  • 写回答

2条回答 默认 最新

  • zhang106209 2021-06-29 15:30
    关注

    recyclerView嵌套或者多个布局都可以实现

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)