Browse Source

1.默认隐藏列表布局防止用户误触。

20241218TB223FC(测试jar包)
wangwanlei 8 months ago
parent
commit
d4cfc20701

+ 1
- 0
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt View File

283
         viewModel.schoolSetData.observe(this) {
283
         viewModel.schoolSetData.observe(this) {
284
             spUtils.saveJson(Const.SCHOOLSETDEVICE, it)
284
             spUtils.saveJson(Const.SCHOOLSETDEVICE, it)
285
             initSchoolSet(it)
285
             initSchoolSet(it)
286
+            mBinding.rv.visibility=View.VISIBLE
286
             updateAppRv()
287
             updateAppRv()
287
         }
288
         }
288
         viewModel.wallpaperData.observe(this) {
289
         viewModel.wallpaperData.observe(this) {

+ 1
- 0
app/src/main/res/layout/activity_main.xml View File

78
 
78
 
79
             <androidx.recyclerview.widget.RecyclerView
79
             <androidx.recyclerview.widget.RecyclerView
80
                 android:id="@+id/rv"
80
                 android:id="@+id/rv"
81
+                android:visibility="invisible"
81
                 android:layout_width="match_parent"
82
                 android:layout_width="match_parent"
82
                 android:layout_height="match_parent"
83
                 android:layout_height="match_parent"
83
                 android:layout_marginTop="24dp"
84
                 android:layout_marginTop="24dp"

Loading…
Cancel
Save