style: improve layout heirarchy
Further improve the layout heirarchy, shrinking some items so that the layout is more compact and scrollable.
This commit is contained in:
+3
-3
@@ -10,7 +10,7 @@
|
||||
android:paddingTop="@dimen/spacing_small">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/blacklist_recycler"
|
||||
android:id="@+id/excluded_recycler"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_gravity="center"
|
||||
@@ -18,10 +18,10 @@
|
||||
android:overScrollMode="never"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||
tools:itemCount="1"
|
||||
tools:listitem="@layout/item_blacklist_entry" />
|
||||
tools:listitem="@layout/item_excluded_dir" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/blacklist_empty_text"
|
||||
android:id="@+id/excluded_empty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter_semibold"
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/album_cover"
|
||||
style="@style/Widget.ImageView.Large"
|
||||
style="@style/Widget.ImageView.Normal"
|
||||
android:contentDescription="@{@string/desc_album_cover(album.name)}"
|
||||
app:albumArt="@{album}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
|
||||
+3
-3
@@ -9,19 +9,19 @@
|
||||
android:focusable="false">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/blacklist_title"
|
||||
android:id="@+id/excluded_path"
|
||||
style="@style/ItemText.Primary"
|
||||
android:layout_marginStart="0dp"
|
||||
android:layout_marginEnd="@dimen/spacing_medium"
|
||||
android:maxLines="@null"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/blacklist_clear"
|
||||
app:layout_constraintEnd_toStartOf="@+id/excluded_clear"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="/storage/emulated/0/directory" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/blacklist_clear"
|
||||
android:id="@+id/excluded_clear"
|
||||
style="@style/Widget.Button.Unbounded"
|
||||
android:layout_width="@dimen/size_clear"
|
||||
android:layout_height="@dimen/size_clear"
|
||||
Reference in New Issue
Block a user