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 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 linux驱动,linux应用,多线程