Change text appearance
This commit is contained in:
parent
8ccc6a0ef7
commit
6c220619ef
8 changed files with 13 additions and 33 deletions
|
@ -27,12 +27,12 @@
|
|||
|
||||
<TextView
|
||||
android:id="@+id/item_name"
|
||||
style="@style/text_subtitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
android:text="@{item.name}"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
||||
tools:text="Movie title" />
|
||||
</LinearLayout>
|
||||
</layout>
|
|
@ -26,10 +26,10 @@
|
|||
app:shapeAppearanceOverlay="@style/roundedImageView" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{collection.name}"
|
||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Subtitle1"
|
||||
tools:text="Movies" />
|
||||
</LinearLayout>
|
||||
</layout>
|
|
@ -44,11 +44,11 @@
|
|||
|
||||
<TextView
|
||||
android:id="@+id/text_add_server"
|
||||
style="@style/text_header"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="32dp"
|
||||
android:text="@string/add_server"
|
||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Headline5"
|
||||
android:textColor="?android:textColorPrimary" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
|
|
|
@ -42,11 +42,11 @@
|
|||
|
||||
<TextView
|
||||
android:id="@+id/text_login"
|
||||
style="@style/text_header"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="32dp"
|
||||
android:text="@string/login"
|
||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Headline5"
|
||||
android:textColor="?android:textColorPrimary" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
|
@ -61,8 +61,8 @@
|
|||
android:id="@+id/edit_text_username"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="text"
|
||||
android:autofillHints="username"/>
|
||||
android:autofillHints="username"
|
||||
android:inputType="text" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
|
@ -79,8 +79,8 @@
|
|||
android:id="@+id/edit_text_password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textPassword"
|
||||
android:autofillHints="password"/>
|
||||
android:autofillHints="password"
|
||||
android:inputType="textPassword" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
<TextView
|
||||
android:id="@+id/text_add_server"
|
||||
style="@style/text_header"
|
||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Headline5"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="12dp"
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:text="@{server.name}"
|
||||
android:textAlignment="center"
|
||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
@ -17,22 +17,22 @@
|
|||
|
||||
<TextView
|
||||
android:id="@+id/view_name"
|
||||
style="@style/text_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:text="@{view.name}"
|
||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Subtitle1"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="Movies" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/view_all"
|
||||
style="@style/text_regular"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:text="@string/view_all"
|
||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Overline"
|
||||
app:layout_constraintBaseline_toBaselineOf="@id/view_name"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
|
@ -1,27 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<style name="text_giant_header">
|
||||
<item name="android:textSize">48sp</item>
|
||||
<item name="android:textFontWeight" tools:targetApi="p">700</item>
|
||||
</style>
|
||||
<style name="text_title">
|
||||
<item name="android:textSize">18sp</item>
|
||||
<item name="android:textFontWeight" tools:targetApi="p">500</item>
|
||||
</style>
|
||||
<style name="text_header">
|
||||
<item name="android:textSize">24sp</item>
|
||||
<item name="android:textFontWeight" tools:targetApi="p">500</item>
|
||||
</style>
|
||||
<style name="text_regular">
|
||||
<item name="android:textSize">14sp</item>
|
||||
</style>
|
||||
<style name="text_subtitle">
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:textFontWeight" tools:targetApi="p">500</item>
|
||||
</style>
|
||||
<style name="text_metadata">
|
||||
<item name="android:textSize">12sp</item>
|
||||
</style>
|
||||
|
||||
<style name="setup_button">
|
||||
<item name="android:layout_height">48dp</item>
|
||||
<item name="android:background">@drawable/button_setup_background</item>
|
||||
|
|
Loading…
Reference in a new issue