|
85 | 85 | android:layout_marginTop="8dp" |
86 | 86 | android:orientation="horizontal"> |
87 | 87 |
|
88 | | - <com.github.libretube.ui.views.ExpandableTextView |
89 | | - android:id="@+id/playlist_name" |
| 88 | + <LinearLayout |
90 | 89 | android:layout_width="0dp" |
91 | | - android:layout_height="wrap_content" |
92 | | - android:layout_marginStart="10dp" |
93 | 90 | android:layout_weight="1" |
94 | | - android:paddingHorizontal="5dp" |
95 | | - android:paddingVertical="2dp" |
96 | | - android:textSize="20sp" |
97 | | - android:textStyle="bold" /> |
| 91 | + android:layout_height="wrap_content" |
| 92 | + android:orientation="vertical" |
| 93 | + android:layout_marginHorizontal="10dp"> |
98 | 94 |
|
99 | | - <LinearLayout |
100 | | - android:id="@+id/sortContainer" |
| 95 | + <com.github.libretube.ui.views.ExpandableTextView |
| 96 | + android:id="@+id/playlist_name" |
| 97 | + android:layout_width="match_parent" |
| 98 | + android:layout_height="wrap_content" |
| 99 | + android:paddingHorizontal="5dp" |
| 100 | + android:paddingVertical="2dp" |
| 101 | + android:textSize="20sp" |
| 102 | + android:textStyle="bold" /> |
| 103 | + |
| 104 | + <TextView |
| 105 | + android:id="@+id/playlistInfo" |
| 106 | + android:layout_width="match_parent" |
| 107 | + android:layout_height="wrap_content" |
| 108 | + android:paddingHorizontal="5dp" |
| 109 | + android:textStyle="bold" /> |
| 110 | + |
| 111 | + </LinearLayout> |
| 112 | + |
| 113 | + <com.google.android.material.button.MaterialButtonGroup |
| 114 | + style="@style/Widget.Material3.MaterialSplitButton" |
101 | 115 | android:layout_width="wrap_content" |
102 | 116 | android:layout_height="wrap_content" |
103 | | - android:layout_gravity="center" |
104 | | - android:layout_marginEnd="8dp" |
105 | | - android:background="@drawable/rounded_ripple" |
106 | | - android:padding="5dp" |
107 | | - android:visibility="gone" |
108 | | - tools:visibility="visible"> |
| 117 | + android:paddingTop="0dp" |
| 118 | + android:paddingBottom="0dp" |
| 119 | + android:gravity="center"> |
109 | 120 |
|
110 | | - <TextView |
111 | | - android:id="@+id/sortTV" |
| 121 | + <com.google.android.material.button.MaterialButton |
| 122 | + style="?materialButtonTonalStyle" |
| 123 | + android:id="@+id/sortBTN" |
| 124 | + android:layout_width="wrap_content" |
| 125 | + android:layout_height="wrap_content" |
| 126 | + app:icon="@drawable/ic_sort" |
| 127 | + app:iconGravity="textEnd" |
| 128 | + android:visibility="gone" |
| 129 | + tools:text="@string/most_recent" |
| 130 | + tools:visibility="visible" /> |
| 131 | + |
| 132 | + <com.google.android.material.button.MaterialButton |
| 133 | + style="?materialIconButtonFilledTonalStyle" |
| 134 | + android:id="@+id/optionsMenu" |
112 | 135 | android:layout_width="wrap_content" |
113 | 136 | android:layout_height="wrap_content" |
114 | | - android:layout_marginEnd="5dp" |
115 | | - tools:text="@string/most_recent" /> |
116 | | - |
117 | | - <ImageView |
118 | | - android:layout_width="20dp" |
119 | | - android:layout_height="20dp" |
120 | 137 | android:layout_gravity="center" |
121 | | - android:src="@drawable/ic_sort" /> |
| 138 | + app:icon="@drawable/ic_three_dots" /> |
122 | 139 |
|
123 | | - </LinearLayout> |
124 | | - |
125 | | - <ImageView |
126 | | - android:id="@+id/optionsMenu" |
127 | | - android:layout_width="20dp" |
128 | | - android:layout_height="20dp" |
129 | | - android:layout_gravity="center" |
130 | | - android:layout_marginEnd="20dp" |
131 | | - android:background="?selectableItemBackgroundBorderless" |
132 | | - android:src="@drawable/ic_three_dots" /> |
| 140 | + </com.google.android.material.button.MaterialButtonGroup> |
133 | 141 |
|
134 | 142 | </LinearLayout> |
135 | 143 |
|
136 | | - <TextView |
137 | | - android:id="@+id/playlistInfo" |
138 | | - android:layout_width="match_parent" |
139 | | - android:layout_height="wrap_content" |
140 | | - android:paddingHorizontal="15dp" |
141 | | - android:paddingBottom="5dp" |
142 | | - android:textStyle="bold" /> |
143 | | - |
144 | 144 | <com.github.libretube.ui.views.ExpandableTextView |
145 | 145 | android:id="@+id/playlistDescription" |
146 | 146 | android:layout_width="match_parent" |
|
150 | 150 | android:paddingTop="5dp" |
151 | 151 | android:paddingBottom="10dp" /> |
152 | 152 |
|
153 | | - <LinearLayout |
| 153 | + <com.google.android.material.button.MaterialButtonGroup |
154 | 154 | android:layout_width="match_parent" |
155 | 155 | android:layout_height="wrap_content" |
156 | | - android:layout_marginVertical="10dp" |
157 | | - android:orientation="horizontal"> |
| 156 | + android:layout_margin="10dp" |
| 157 | + android:orientation="horizontal" |
| 158 | + app:buttonSizeChange="@null"> |
158 | 159 |
|
159 | 160 | <com.google.android.material.button.MaterialButton |
160 | 161 | android:id="@+id/play_all" |
161 | 162 | style="@style/Widget.Material3.Button.OutlinedButton" |
162 | 163 | android:layout_width="0dp" |
163 | 164 | android:layout_height="wrap_content" |
164 | | - android:layout_marginHorizontal="10dp" |
165 | 165 | android:layout_weight="1" |
166 | 166 | android:maxLines="1" |
167 | 167 | android:text="@string/play_all" |
|
172 | 172 | style="@style/Widget.Material3.Button" |
173 | 173 | android:layout_width="0dp" |
174 | 174 | android:layout_height="wrap_content" |
175 | | - android:layout_marginHorizontal="10dp" |
176 | 175 | android:layout_weight="1" |
177 | 176 | android:maxLines="1" |
178 | 177 | android:text="@string/bookmark" |
179 | 178 | app:icon="@drawable/ic_bookmark_outlined" /> |
180 | 179 |
|
181 | | - </LinearLayout> |
| 180 | + </com.google.android.material.button.MaterialButtonGroup> |
182 | 181 |
|
183 | 182 | <LinearLayout |
184 | 183 | android:id="@+id/nothing_here" |
|
0 commit comments