Refactor styles heavily

Move a bunch of UI elements into reusable styles, along with removing literal dimen resources.
This commit is contained in:
OxygenCobalt
2020-12-02 19:03:17 -07:00
parent 63630aa42e
commit 51b2749c06
45 changed files with 212 additions and 434 deletions
+7 -21
View File
@@ -18,33 +18,19 @@
<TextView
android:id="@+id/header_title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/padding_medium"
android:fontFamily="@font/inter_semibold"
android:paddingStart="@dimen/padding_medium"
android:paddingTop="@dimen/padding_small"
android:paddingEnd="@dimen/padding_small"
android:paddingBottom="@dimen/padding_small"
style="@style/HeaderText"
android:text="@{header.name}"
tools:text="Songs"
android:textColor="?android:attr/textColorPrimary"
android:textSize="19sp"
app:layout_constraintStart_toStartOf="parent" />
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Songs" />
<ImageButton
android:id="@+id/header_button"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:contentDescription="@string/description_sort_button"
android:paddingStart="@dimen/padding_medium"
android:paddingTop="@dimen/padding_small"
android:background="@drawable/ui_small_unbounded_ripple"
android:paddingEnd="@dimen/margin_medium"
android:paddingBottom="@dimen/padding_small"
style="@style/HeaderAction"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/header_title"
tools:src="@drawable/ic_sort_numeric_down" />
tools:src="@drawable/ic_clear"
tools:ignore="ContentDescription" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>