
Do two things to the margin and padding system: - Remove the redundant padding/margin dimens and replace it with a unified "spacing" dimen namespace - Make most margin and padding dimens follow the divisible-by-8 rule in material design
38 lines
No EOL
1.5 KiB
XML
38 lines
No EOL
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/background"
|
|
android:orientation="vertical"
|
|
android:paddingTop="@dimen/spacing_medium"
|
|
android:theme="@style/Theme.Neutral">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/blacklist_recycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="1"
|
|
android:overScrollMode="never"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
tools:itemCount="1"
|
|
tools:listitem="@layout/item_blacklist_entry" />
|
|
|
|
<TextView
|
|
android:id="@+id/blacklist_empty_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/inter_semibold"
|
|
android:padding="@dimen/spacing_medium"
|
|
android:text="@string/label_no_dirs"
|
|
android:textAlignment="center"
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
android:textColor="?android:attr/textColorSecondary" />
|
|
|
|
</LinearLayout>
|
|
</layout> |