Allow settings' titles to use 2 lines if too long
This commit is contained in:
parent
09486e0cdf
commit
97db0be45f
4 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@
|
||||||
android:text="@{title}"
|
android:text="@{title}"
|
||||||
android:enabled="@{enabled ?? true}"
|
android:enabled="@{enabled ?? true}"
|
||||||
android:visibility="@{title.length() > 0 ? View.VISIBLE : View.GONE}"
|
android:visibility="@{title.length() > 0 ? View.VISIBLE : View.GONE}"
|
||||||
android:maxLines="1"
|
android:maxLines="2"
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:layout_marginLeft="@dimen/settings_margin"
|
android:layout_marginLeft="@dimen/settings_margin"
|
||||||
android:layout_marginRight="@dimen/settings_margin"
|
android:layout_marginRight="@dimen/settings_margin"
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
android:text="@{title}"
|
android:text="@{title}"
|
||||||
android:enabled="@{enabled ?? true}"
|
android:enabled="@{enabled ?? true}"
|
||||||
android:visibility="@{title.length() > 0 ? View.VISIBLE : View.GONE}"
|
android:visibility="@{title.length() > 0 ? View.VISIBLE : View.GONE}"
|
||||||
android:maxLines="1"
|
android:maxLines="2"
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:layout_marginLeft="@dimen/settings_margin"
|
android:layout_marginLeft="@dimen/settings_margin"
|
||||||
android:layout_marginRight="@dimen/settings_margin"
|
android:layout_marginRight="@dimen/settings_margin"
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
android:text="@{title}"
|
android:text="@{title}"
|
||||||
android:enabled="@{enabled ?? true}"
|
android:enabled="@{enabled ?? true}"
|
||||||
android:visibility="@{title.length() > 0 ? View.VISIBLE : View.GONE}"
|
android:visibility="@{title.length() > 0 ? View.VISIBLE : View.GONE}"
|
||||||
android:maxLines="1"
|
android:maxLines="2"
|
||||||
android:layout_toLeftOf="@id/setting_switch"
|
android:layout_toLeftOf="@id/setting_switch"
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:layout_marginLeft="@dimen/settings_margin"
|
android:layout_marginLeft="@dimen/settings_margin"
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
android:text="@{switch_title}"
|
android:text="@{switch_title}"
|
||||||
android:enabled="@{enabled ?? true}"
|
android:enabled="@{enabled ?? true}"
|
||||||
android:visibility="@{switch_title.length() > 0 ? View.VISIBLE : View.GONE}"
|
android:visibility="@{switch_title.length() > 0 ? View.VISIBLE : View.GONE}"
|
||||||
android:maxLines="1"
|
android:maxLines="2"
|
||||||
android:layout_toLeftOf="@id/setting_switch"
|
android:layout_toLeftOf="@id/setting_switch"
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:layout_marginLeft="@dimen/settings_margin"
|
android:layout_marginLeft="@dimen/settings_margin"
|
||||||
|
|
Loading…
Reference in a new issue