Configure the toolbar in the debug activity
This commit is contained in:
parent
3f4e80992b
commit
0ccd8ba071
|
@ -33,6 +33,12 @@ abstract class DebugMaterialThemeActivity : AppCompatActivity() {
|
||||||
val views = ActivityTestMaterialThemeBinding.inflate(layoutInflater)
|
val views = ActivityTestMaterialThemeBinding.inflate(layoutInflater)
|
||||||
setContentView(views.root)
|
setContentView(views.root)
|
||||||
|
|
||||||
|
setSupportActionBar(views.debugToolbar)
|
||||||
|
supportActionBar?.let {
|
||||||
|
it.setDisplayShowHomeEnabled(true)
|
||||||
|
it.setDisplayHomeAsUpEnabled(true)
|
||||||
|
}
|
||||||
|
|
||||||
views.debugShowSnackbar.setOnClickListener {
|
views.debugShowSnackbar.setOnClickListener {
|
||||||
Snackbar.make(views.coordinatorLayout, "Snackbar!", Snackbar.LENGTH_SHORT)
|
Snackbar.make(views.coordinatorLayout, "Snackbar!", Snackbar.LENGTH_SHORT)
|
||||||
.setAction("Action") { }
|
.setAction("Action") { }
|
||||||
|
|
|
@ -8,437 +8,448 @@
|
||||||
tools:context=".features.debug.DebugMaterialThemeActivity"
|
tools:context=".features.debug.DebugMaterialThemeActivity"
|
||||||
tools:ignore="HardcodedText">
|
tools:ignore="HardcodedText">
|
||||||
|
|
||||||
<androidx.core.widget.NestedScrollView
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<LinearLayout
|
<androidx.appcompat.widget.Toolbar
|
||||||
|
android:id="@+id/debug_toolbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:divider="@drawable/linear_divider"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
android:orientation="vertical"
|
app:subtitle="Toolbar Subtitle"
|
||||||
android:padding="16dp"
|
app:title="Toolbar Title" />
|
||||||
android:showDividers="middle">
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.Toolbar
|
<androidx.core.widget.NestedScrollView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:subtitle="Toolbar Subtitle"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:title="Toolbar Title" />
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/debug_toolbar">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:baselineAligned="false"
|
|
||||||
android:divider="@drawable/linear_divider"
|
android:divider="@drawable/linear_divider"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="16dp"
|
||||||
android:showDividers="middle">
|
android:showDividers="middle">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:baselineAligned="false"
|
||||||
android:background="#FFFFFF"
|
|
||||||
android:divider="@drawable/linear_divider"
|
android:divider="@drawable/linear_divider"
|
||||||
android:orientation="vertical"
|
|
||||||
android:padding="8dp"
|
|
||||||
android:showDividers="middle">
|
android:showDividers="middle">
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
style="@style/DebugTextColorDemo.White"
|
android:layout_width="0dp"
|
||||||
android:background="?colorPrimary"
|
android:layout_height="wrap_content"
|
||||||
android:text="colorPrimary" />
|
android:layout_weight="1"
|
||||||
|
android:background="#FFFFFF"
|
||||||
|
android:divider="@drawable/linear_divider"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:showDividers="middle">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?colorPrimaryVariant"
|
android:background="?colorPrimary"
|
||||||
android:text="colorPrimaryVariant" />
|
android:text="colorPrimary" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?colorOnPrimary"
|
android:background="?colorPrimaryVariant"
|
||||||
android:text="colorOnPrimary" />
|
android:text="colorPrimaryVariant" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?colorSecondary"
|
android:background="?colorOnPrimary"
|
||||||
android:text="colorSecondary" />
|
android:text="colorOnPrimary" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?colorSecondaryVariant"
|
android:background="?colorSecondary"
|
||||||
android:text="colorSecondaryVariant" />
|
android:text="colorSecondary" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?colorOnSecondary"
|
android:background="?colorSecondaryVariant"
|
||||||
android:text="colorOnSecondary" />
|
android:text="colorSecondaryVariant" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?colorError"
|
android:background="?colorOnSecondary"
|
||||||
android:text="colorError" />
|
android:text="colorOnSecondary" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?colorOnError"
|
android:background="?colorError"
|
||||||
android:text="colorOnError" />
|
android:text="colorError" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?colorSurface"
|
android:background="?colorOnError"
|
||||||
android:text="colorSurface" />
|
android:text="colorOnError" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?colorOnSurface"
|
android:background="?colorSurface"
|
||||||
android:text="colorOnSurface" />
|
android:text="colorSurface" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?android:colorBackground"
|
android:background="?colorOnSurface"
|
||||||
android:text="android:colorBackground" />
|
android:text="colorOnSurface" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?colorOnBackground"
|
android:background="?android:colorBackground"
|
||||||
android:text="colorOnBackground" />
|
android:text="android:colorBackground" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?colorAccent"
|
android:background="?colorOnBackground"
|
||||||
android:text="colorAccent" />
|
android:text="colorOnBackground" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?android:statusBarColor"
|
android:background="?colorAccent"
|
||||||
android:text="android:statusBarColor" />
|
android:text="colorAccent" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?android:navigationBarColor"
|
android:background="?android:statusBarColor"
|
||||||
android:text="android:navigationBarColor" />
|
android:text="android:statusBarColor" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?android:textColorPrimary"
|
android:background="?android:navigationBarColor"
|
||||||
android:text="android:textColorPrimary" />
|
android:text="android:navigationBarColor" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?android:textColorSecondary"
|
android:background="?android:textColorPrimary"
|
||||||
android:text="android:textColorSecondary" />
|
android:text="android:textColorPrimary" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?android:textColorTertiary"
|
android:background="?android:textColorSecondary"
|
||||||
android:text="android:textColorTertiary" />
|
android:text="android:textColorSecondary" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/DebugTextColorDemo.White"
|
style="@style/DebugTextColorDemo.White"
|
||||||
android:background="?android:textColorLink"
|
android:background="?android:textColorTertiary"
|
||||||
android:text="android:textColorLink" />
|
android:text="android:textColorTertiary" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.White"
|
||||||
|
android:background="?android:textColorLink"
|
||||||
|
android:text="android:textColorLink" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="#000000"
|
||||||
|
android:divider="@drawable/linear_divider"
|
||||||
|
android:dividerPadding="8dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:showDividers="middle">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?colorPrimary"
|
||||||
|
android:text="colorPrimary" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?colorPrimaryVariant"
|
||||||
|
android:text="colorPrimaryVariant" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?colorOnPrimary"
|
||||||
|
android:text="colorOnPrimary" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?colorSecondary"
|
||||||
|
android:text="colorSecondary" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?colorSecondaryVariant"
|
||||||
|
android:text="colorSecondaryVariant" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?colorOnSecondary"
|
||||||
|
android:text="colorOnSecondary" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?colorError"
|
||||||
|
android:text="colorError" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?colorOnError"
|
||||||
|
android:text="colorOnError" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?colorSurface"
|
||||||
|
android:text="colorSurface" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?colorOnSurface"
|
||||||
|
android:text="colorOnSurface" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?android:colorBackground"
|
||||||
|
android:text="android:colorBackground" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?colorOnBackground"
|
||||||
|
android:text="colorOnBackground" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?colorAccent"
|
||||||
|
android:text="colorAccent" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?android:statusBarColor"
|
||||||
|
android:text="android:statusBarColor" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?android:navigationBarColor"
|
||||||
|
android:text="android:navigationBarColor" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?android:textColorPrimary"
|
||||||
|
android:text="android:textColorPrimary" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?android:textColorSecondary"
|
||||||
|
android:text="android:textColorSecondary" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?android:textColorTertiary"
|
||||||
|
android:text="android:textColorTertiary" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/DebugTextColorDemo.Black"
|
||||||
|
android:background="?android:textColorLink"
|
||||||
|
android:text="android:textColorLink" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:layout_width="0dp"
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:background="#000000"
|
|
||||||
android:divider="@drawable/linear_divider"
|
|
||||||
android:dividerPadding="8dp"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:padding="8dp"
|
|
||||||
android:showDividers="middle">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?colorPrimary"
|
|
||||||
android:text="colorPrimary" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?colorPrimaryVariant"
|
|
||||||
android:text="colorPrimaryVariant" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?colorOnPrimary"
|
|
||||||
android:text="colorOnPrimary" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?colorSecondary"
|
|
||||||
android:text="colorSecondary" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?colorSecondaryVariant"
|
|
||||||
android:text="colorSecondaryVariant" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?colorOnSecondary"
|
|
||||||
android:text="colorOnSecondary" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?colorError"
|
|
||||||
android:text="colorError" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?colorOnError"
|
|
||||||
android:text="colorOnError" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?colorSurface"
|
|
||||||
android:text="colorSurface" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?colorOnSurface"
|
|
||||||
android:text="colorOnSurface" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?android:colorBackground"
|
|
||||||
android:text="android:colorBackground" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?colorOnBackground"
|
|
||||||
android:text="colorOnBackground" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?colorAccent"
|
|
||||||
android:text="colorAccent" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?android:statusBarColor"
|
|
||||||
android:text="android:statusBarColor" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?android:navigationBarColor"
|
|
||||||
android:text="android:navigationBarColor" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?android:textColorPrimary"
|
|
||||||
android:text="android:textColorPrimary" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?android:textColorSecondary"
|
|
||||||
android:text="android:textColorSecondary" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?android:textColorTertiary"
|
|
||||||
android:text="android:textColorTertiary" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/DebugTextColorDemo.Black"
|
|
||||||
android:background="?android:textColorLink"
|
|
||||||
android:text="android:textColorLink" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
|
||||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:hint="OutlinedBox">
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:maxLines="1" />
|
android:hint="OutlinedBox">
|
||||||
|
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:maxLines="1" />
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:hint="OutlinedBox.Dense">
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:maxLines="1" />
|
android:hint="OutlinedBox.Dense">
|
||||||
|
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:maxLines="1" />
|
||||||
|
|
||||||
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
|
style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:hint="FilledBox">
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:maxLines="1" />
|
android:hint="FilledBox">
|
||||||
|
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:maxLines="1" />
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.Dense"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:hint="FilledBox.Dense">
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
|
style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.Dense"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:maxLines="1" />
|
android:hint="FilledBox.Dense">
|
||||||
|
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:maxLines="1" />
|
||||||
|
|
||||||
<TextView
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Buttons" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
style="@style/Widget.MaterialComponents.Button"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Classic"
|
|
||||||
app:icon="@drawable/ic_settings_x" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
style="@style/Widget.MaterialComponents.Button"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:enabled="false"
|
|
||||||
android:text="Classic Disabled"
|
|
||||||
app:icon="@drawable/ic_settings_x" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="OutlinedButton"
|
|
||||||
app:icon="@drawable/ic_settings_x" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:enabled="false"
|
|
||||||
android:text="OutlinedButton Disabled"
|
|
||||||
app:icon="@drawable/ic_settings_x" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="TextButton"
|
|
||||||
app:icon="@drawable/ic_settings_x" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:enabled="false"
|
|
||||||
android:text="TextButton Disabled"
|
|
||||||
app:icon="@drawable/ic_settings_x" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="UnelevatedButton"
|
|
||||||
app:icon="@drawable/ic_settings_x" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:enabled="false"
|
|
||||||
android:text="UnelevatedButton Disabled"
|
|
||||||
app:icon="@drawable/ic_settings_x" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Actions" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/debugShowSnackbar"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:text="Show Snackbar" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/debugShowToast"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:text="Show Toast" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/debugShowDialog"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:text="Show Dialog" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/debugShowBottomSheet"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:text="Show Bottom Sheet" />
|
|
||||||
|
|
||||||
<CheckBox
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Material CheckBox" />
|
|
||||||
|
|
||||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Material Switch" />
|
|
||||||
|
|
||||||
<com.google.android.material.card.MaterialCardView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center_horizontal">
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="48dp"
|
android:text="Buttons" />
|
||||||
android:text="TextView in MaterialCardView" />
|
|
||||||
|
|
||||||
</com.google.android.material.card.MaterialCardView>
|
<Button
|
||||||
|
style="@style/Widget.MaterialComponents.Button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Classic"
|
||||||
|
app:icon="@drawable/ic_settings_x" />
|
||||||
|
|
||||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
<Button
|
||||||
android:layout_width="wrap_content"
|
style="@style/Widget.MaterialComponents.Button"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_gravity="end"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="16dp"
|
android:enabled="false"
|
||||||
android:importantForAccessibility="no"
|
android:text="Classic Disabled"
|
||||||
android:src="@drawable/ic_settings_x" />
|
app:icon="@drawable/ic_settings_x" />
|
||||||
|
|
||||||
<com.google.android.material.bottomnavigation.BottomNavigationView
|
<Button
|
||||||
android:layout_width="match_parent"
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
app:menu="@menu/home_bottom_navigation" />
|
android:layout_height="wrap_content"
|
||||||
|
android:text="OutlinedButton"
|
||||||
|
app:icon="@drawable/ic_settings_x" />
|
||||||
|
|
||||||
</LinearLayout>
|
<Button
|
||||||
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:enabled="false"
|
||||||
|
android:text="OutlinedButton Disabled"
|
||||||
|
app:icon="@drawable/ic_settings_x" />
|
||||||
|
|
||||||
</androidx.core.widget.NestedScrollView>
|
<Button
|
||||||
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="TextButton"
|
||||||
|
app:icon="@drawable/ic_settings_x" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:enabled="false"
|
||||||
|
android:text="TextButton Disabled"
|
||||||
|
app:icon="@drawable/ic_settings_x" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="UnelevatedButton"
|
||||||
|
app:icon="@drawable/ic_settings_x" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:enabled="false"
|
||||||
|
android:text="UnelevatedButton Disabled"
|
||||||
|
app:icon="@drawable/ic_settings_x" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Actions" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/debugShowSnackbar"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:text="Show Snackbar" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/debugShowToast"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:text="Show Toast" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/debugShowDialog"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:text="Show Dialog" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/debugShowBottomSheet"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:text="Show Bottom Sheet" />
|
||||||
|
|
||||||
|
<CheckBox
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Material CheckBox" />
|
||||||
|
|
||||||
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Material Switch" />
|
||||||
|
|
||||||
|
<com.google.android.material.card.MaterialCardView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:padding="48dp"
|
||||||
|
android:text="TextView in MaterialCardView" />
|
||||||
|
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
|
||||||
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="end"
|
||||||
|
android:layout_margin="16dp"
|
||||||
|
android:importantForAccessibility="no"
|
||||||
|
android:src="@drawable/ic_settings_x" />
|
||||||
|
|
||||||
|
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:menu="@menu/home_bottom_navigation" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
Loading…
Reference in New Issue