Fix issue on setting screen: bad alignment of title

This commit is contained in:
Benoit Marty 2019-07-19 15:15:29 +02:00
parent c00dbce536
commit cd6624a8a6
2 changed files with 7 additions and 2 deletions

View File

@ -9,8 +9,10 @@
android:layout_height="match_parent"
android:orientation="vertical">
<!-- Use VectorToolbarStyleWithPadding on this screen for better alignment with setting items -->
<androidx.appcompat.widget.Toolbar
android:id="@+id/settingsToolbar"
style="@style/VectorToolbarStyleWithPadding"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="4dp" />
@ -19,7 +21,7 @@
android:id="@+id/vector_settings_page"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:attr/colorBackground" />
android:background="?riotx_background" />
</LinearLayout>

View File

@ -4,11 +4,14 @@
<!-- ************************ Common items ************************ -->
<!-- toolbar styles-->
<style name="VectorToolbarStyle" parent="Widget.MaterialComponents.Toolbar">
<style name="VectorToolbarStyleWithPadding" parent="Widget.MaterialComponents.Toolbar">
<!-- main text -->
<item name="titleTextAppearance">@style/Vector.Toolbar.Title</item>
<item name="subtitleTextAppearance">@style/Vector.Toolbar.SubTitle</item>
<item name="android:background">?riotx_background</item>
</style>
<style name="VectorToolbarStyle" parent="VectorToolbarStyleWithPadding">
<item name="contentInsetStartWithNavigation">0dp</item>
</style>