mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 12:00:03 +03:00
Fix issue on setting screen: bad alignment of title
This commit is contained in:
parent
c00dbce536
commit
cd6624a8a6
2 changed files with 7 additions and 2 deletions
|
@ -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 a new issue