forked from GitHub-Mirror/riotX-android
Fix issue on setting screen: bad alignment of title
This commit is contained in:
parent
c00dbce536
commit
cd6624a8a6
@ -9,8 +9,10 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<!-- Use VectorToolbarStyleWithPadding on this screen for better alignment with setting items -->
|
||||||
<androidx.appcompat.widget.Toolbar
|
<androidx.appcompat.widget.Toolbar
|
||||||
android:id="@+id/settingsToolbar"
|
android:id="@+id/settingsToolbar"
|
||||||
|
style="@style/VectorToolbarStyleWithPadding"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:elevation="4dp" />
|
android:elevation="4dp" />
|
||||||
@ -19,7 +21,7 @@
|
|||||||
android:id="@+id/vector_settings_page"
|
android:id="@+id/vector_settings_page"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="?android:attr/colorBackground" />
|
android:background="?riotx_background" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -4,11 +4,14 @@
|
|||||||
<!-- ************************ Common items ************************ -->
|
<!-- ************************ Common items ************************ -->
|
||||||
|
|
||||||
<!-- toolbar styles-->
|
<!-- toolbar styles-->
|
||||||
<style name="VectorToolbarStyle" parent="Widget.MaterialComponents.Toolbar">
|
<style name="VectorToolbarStyleWithPadding" parent="Widget.MaterialComponents.Toolbar">
|
||||||
<!-- main text -->
|
<!-- main text -->
|
||||||
<item name="titleTextAppearance">@style/Vector.Toolbar.Title</item>
|
<item name="titleTextAppearance">@style/Vector.Toolbar.Title</item>
|
||||||
<item name="subtitleTextAppearance">@style/Vector.Toolbar.SubTitle</item>
|
<item name="subtitleTextAppearance">@style/Vector.Toolbar.SubTitle</item>
|
||||||
<item name="android:background">?riotx_background</item>
|
<item name="android:background">?riotx_background</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="VectorToolbarStyle" parent="VectorToolbarStyleWithPadding">
|
||||||
<item name="contentInsetStartWithNavigation">0dp</item>
|
<item name="contentInsetStartWithNavigation">0dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user