|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + xmlns:tools="http://schemas.android.com/tools" |
4 | 5 | android:layout_width="match_parent" |
5 | 6 | android:layout_height="match_parent"> |
6 | 7 |
|
7 | | - <androidx.core.widget.NestedScrollView |
8 | | - android:id="@+id/nestedScrollView" |
9 | | - android:layout_width="match_parent" |
10 | | - android:layout_height="match_parent" |
| 8 | + <androidx.recyclerview.widget.RecyclerView |
| 9 | + android:id="@+id/recycler_view" |
| 10 | + android:layout_width="0dp" |
| 11 | + android:layout_height="0dp" |
| 12 | + android:layout_marginStart="16dp" |
| 13 | + android:layout_marginEnd="8dp" |
| 14 | + android:clipToPadding="false" |
| 15 | + android:focusableInTouchMode="true" |
| 16 | + android:overScrollMode="never" |
| 17 | + android:paddingTop="@dimen/spacing_small" |
| 18 | + android:paddingBottom="@dimen/spacing_small" |
| 19 | + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" |
| 20 | + app:layout_behavior="@string/appbar_scrolling_view_behavior" |
11 | 21 | app:layout_constraintBottom_toBottomOf="parent" |
12 | 22 | app:layout_constraintEnd_toEndOf="parent" |
| 23 | + app:layout_constraintHorizontal_bias="0.0" |
13 | 24 | app:layout_constraintStart_toStartOf="parent" |
14 | | - app:layout_constraintTop_toTopOf="parent"> |
15 | | - |
16 | | - <LinearLayout |
17 | | - android:layout_width="match_parent" |
18 | | - android:layout_height="wrap_content" |
19 | | - android:orientation="vertical"> |
20 | | - |
21 | | - <androidx.constraintlayout.widget.ConstraintLayout |
22 | | - android:layout_width="match_parent" |
23 | | - android:layout_height="wrap_content"> |
24 | | - |
25 | | - <TextView |
26 | | - android:id="@+id/titleInstalled" |
27 | | - android:layout_width="wrap_content" |
28 | | - android:layout_height="wrap_content" |
29 | | - android:layout_marginStart="16dp" |
30 | | - android:layout_marginTop="16dp" |
31 | | - android:layout_marginBottom="16dp" |
32 | | - android:fontFamily="sans-serif-medium" |
33 | | - android:text="Installed" |
34 | | - android:textColor="@color/accent" |
35 | | - app:layout_constraintBottom_toBottomOf="parent" |
36 | | - app:layout_constraintEnd_toEndOf="parent" |
37 | | - app:layout_constraintHorizontal_bias="0.0" |
38 | | - app:layout_constraintStart_toStartOf="parent" |
39 | | - app:layout_constraintTop_toTopOf="parent" /> |
40 | | - |
41 | | - <ImageView |
42 | | - android:id="@+id/buttonDownload" |
43 | | - android:layout_width="42dp" |
44 | | - android:layout_height="42dp" |
45 | | - android:layout_marginEnd="8dp" |
46 | | - android:src="@drawable/delete_icon" |
47 | | - android:padding="8dp" |
48 | | - android:tint="@color/very_very_dark_gray" |
49 | | - android:visibility="visible" |
50 | | - app:layout_constraintBottom_toBottomOf="parent" |
51 | | - app:layout_constraintEnd_toEndOf="parent" |
52 | | - app:layout_constraintHorizontal_bias="1.0" |
53 | | - app:layout_constraintStart_toStartOf="parent" |
54 | | - app:layout_constraintTop_toTopOf="parent" /> |
55 | | - </androidx.constraintlayout.widget.ConstraintLayout> |
56 | | - |
57 | | - <ListView |
58 | | - android:id="@+id/listInstalled" |
59 | | - android:layout_width="match_parent" |
60 | | - android:layout_height="wrap_content" |
61 | | - android:animateLayoutChanges="false" |
62 | | - android:childDivider="#00000000" |
63 | | - android:divider="#00000000" |
64 | | - android:visibility="visible" /> |
65 | | - |
66 | | - <androidx.constraintlayout.widget.ConstraintLayout |
67 | | - android:layout_width="match_parent" |
68 | | - android:layout_height="wrap_content"> |
69 | | - |
70 | | - <TextView |
71 | | - android:id="@+id/titleAvailable" |
72 | | - android:layout_width="wrap_content" |
73 | | - android:layout_height="wrap_content" |
74 | | - android:layout_marginStart="16dp" |
75 | | - android:layout_marginTop="16dp" |
76 | | - android:layout_marginBottom="16dp" |
77 | | - android:fontFamily="sans-serif-medium" |
78 | | - android:text="Available" |
79 | | - android:textColor="@color/accent" |
80 | | - app:layout_constraintBottom_toBottomOf="parent" |
81 | | - app:layout_constraintEnd_toEndOf="parent" |
82 | | - app:layout_constraintHorizontal_bias="0.0" |
83 | | - app:layout_constraintStart_toStartOf="parent" |
84 | | - app:layout_constraintTop_toTopOf="parent" |
85 | | - app:layout_constraintVertical_bias="0.0" /> |
86 | | - |
87 | | - <ImageView |
88 | | - android:id="@+id/buttonDownloadAll" |
89 | | - android:layout_width="42dp" |
90 | | - android:layout_height="42dp" |
91 | | - android:layout_marginEnd="8dp" |
92 | | - android:padding="2dp" |
93 | | - android:src="@drawable/download_icon" |
94 | | - android:tint="@color/very_very_dark_gray" |
95 | | - android:visibility="visible" |
96 | | - app:layout_constraintBottom_toBottomOf="@+id/titleAvailable" |
97 | | - app:layout_constraintEnd_toEndOf="parent" |
98 | | - app:layout_constraintHorizontal_bias="1.0" |
99 | | - app:layout_constraintStart_toStartOf="parent" |
100 | | - app:layout_constraintTop_toTopOf="@+id/titleAvailable" /> |
101 | | - |
102 | | - <ListView |
103 | | - android:id="@+id/list_view" |
104 | | - android:layout_width="match_parent" |
105 | | - android:layout_height="wrap_content" |
106 | | - android:animateLayoutChanges="false" |
107 | | - android:childDivider="#00000000" |
108 | | - android:divider="#00000000" |
109 | | - android:visibility="visible" |
110 | | - app:layout_constraintEnd_toEndOf="parent" |
111 | | - app:layout_constraintStart_toStartOf="parent" |
112 | | - app:layout_constraintTop_toBottomOf="@+id/buttonDownloadAll" |
113 | | - app:layout_constraintBottom_toBottomOf="parent"/> |
114 | | - </androidx.constraintlayout.widget.ConstraintLayout> |
115 | | - |
116 | | - |
117 | | - |
118 | | - </LinearLayout> |
119 | | - </androidx.core.widget.NestedScrollView> |
| 25 | + app:layout_constraintTop_toTopOf="parent" |
| 26 | + app:layout_constraintVertical_bias="0.0" |
| 27 | + tools:listitem="@layout/preview_mozilla_models" |
| 28 | + tools:visibility="visible" /> |
120 | 29 |
|
121 | 30 | </androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments