diff --git a/tools/check/forbidden_strings_in_resources.txt b/tools/check/forbidden_strings_in_resources.txt index 92eec6cdfd..4ebc4008c1 100644 --- a/tools/check/forbidden_strings_in_resources.txt +++ b/tools/check/forbidden_strings_in_resources.txt @@ -98,6 +98,10 @@ layout_constraintLeft_ ### Use com.google.android.material.switchmaterial.SwitchMaterial instead of Switch, the inflater will not automatically inflate Material Views for Switch. + + + diff --git a/vector/src/debug/java/im/vector/app/features/debug/DebugMaterialThemeActivity.kt b/vector/src/debug/java/im/vector/app/features/debug/DebugMaterialThemeActivity.kt index de6b981c02..69dc683bf3 100644 --- a/vector/src/debug/java/im/vector/app/features/debug/DebugMaterialThemeActivity.kt +++ b/vector/src/debug/java/im/vector/app/features/debug/DebugMaterialThemeActivity.kt @@ -33,6 +33,12 @@ abstract class DebugMaterialThemeActivity : AppCompatActivity() { val views = ActivityTestMaterialThemeBinding.inflate(layoutInflater) setContentView(views.root) + setSupportActionBar(views.debugToolbar) + supportActionBar?.let { + it.setDisplayShowHomeEnabled(true) + it.setDisplayHomeAsUpEnabled(true) + } + views.debugShowSnackbar.setOnClickListener { Snackbar.make(views.coordinatorLayout, "Snackbar!", Snackbar.LENGTH_SHORT) .setAction("Action") { } @@ -60,7 +66,7 @@ abstract class DebugMaterialThemeActivity : AppCompatActivity() { } override fun onCreateOptionsMenu(menu: Menu): Boolean { - menuInflater.inflate(R.menu.home, menu) + menuInflater.inflate(R.menu.menu_debug, menu) return true } } diff --git a/vector/src/debug/res/layout/activity_test_material_theme.xml b/vector/src/debug/res/layout/activity_test_material_theme.xml index 2ec23a4b31..486c23478f 100644 --- a/vector/src/debug/res/layout/activity_test_material_theme.xml +++ b/vector/src/debug/res/layout/activity_test_material_theme.xml @@ -8,437 +8,456 @@ tools:context=".features.debug.DebugMaterialThemeActivity" tools:ignore="HardcodedText"> - - + app:layout_constraintTop_toTopOf="parent"> - + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:hint="OutlinedBox"> - + - + - + android:hint="OutlinedBox.Dense"> - + + + - - - + android:hint="FilledBox"> - + - + - + android:hint="FilledBox.Dense"> - + - - -