summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2020-01-12 21:35:39 +0100
committercyBerta <cyberta@riseup.net>2020-01-12 21:35:39 +0100
commit701622624762faa407c610bfbac9523e840c9d6d (patch)
tree539355ce031f3aa924248e7b6844fca930cf8939
parent13ae6cb8a8c577479159848947c0c957e5638ea6 (diff)
fix UI bug in navigation drawer: restict entries max lines
-rw-r--r--app/src/main/res/layout-xlarge/v_icon_text_list_item.xml4
-rw-r--r--app/src/main/res/layout-xlarge/v_switch_list_item.xml4
-rw-r--r--app/src/main/res/layout/v_icon_text_list_item.xml4
-rw-r--r--app/src/main/res/layout/v_switch_list_item.xml4
4 files changed, 16 insertions, 0 deletions
diff --git a/app/src/main/res/layout-xlarge/v_icon_text_list_item.xml b/app/src/main/res/layout-xlarge/v_icon_text_list_item.xml
index 798b47e3..7d679ae3 100644
--- a/app/src/main/res/layout-xlarge/v_icon_text_list_item.xml
+++ b/app/src/main/res/layout-xlarge/v_icon_text_list_item.xml
@@ -21,6 +21,8 @@
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceListItem"
android:gravity="center_vertical"
+ android:maxLines="1"
+ android:ellipsize="end"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
@@ -39,6 +41,8 @@
android:gravity="center_vertical"
android:layout_alignParentBottom="true"
android:textAppearance="?android:attr/textAppearanceSmall"
+ android:maxLines="1"
+ android:ellipsize="end"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
diff --git a/app/src/main/res/layout-xlarge/v_switch_list_item.xml b/app/src/main/res/layout-xlarge/v_switch_list_item.xml
index 3d81af11..c393a0f8 100644
--- a/app/src/main/res/layout-xlarge/v_switch_list_item.xml
+++ b/app/src/main/res/layout-xlarge/v_switch_list_item.xml
@@ -21,6 +21,8 @@
android:layout_height="match_parent"
android:textAppearance="?android:attr/textAppearanceListItem"
android:gravity="center_vertical"
+ android:maxLines="1"
+ android:ellipsize="end"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
@@ -37,6 +39,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
+ android:maxLines="1"
+ android:ellipsize="end"
android:layout_alignParentBottom="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
diff --git a/app/src/main/res/layout/v_icon_text_list_item.xml b/app/src/main/res/layout/v_icon_text_list_item.xml
index 64cc474a..0b2d5b11 100644
--- a/app/src/main/res/layout/v_icon_text_list_item.xml
+++ b/app/src/main/res/layout/v_icon_text_list_item.xml
@@ -20,6 +20,8 @@
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceListItemSmall"
android:gravity="center_vertical"
+ android:maxLines="1"
+ android:ellipsize="end"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
@@ -36,6 +38,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
+ android:maxLines="1"
+ android:ellipsize="end"
android:layout_alignParentBottom="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
diff --git a/app/src/main/res/layout/v_switch_list_item.xml b/app/src/main/res/layout/v_switch_list_item.xml
index 967d7a97..a92e78b1 100644
--- a/app/src/main/res/layout/v_switch_list_item.xml
+++ b/app/src/main/res/layout/v_switch_list_item.xml
@@ -21,6 +21,8 @@
android:layout_height="match_parent"
android:textAppearance="?android:attr/textAppearanceListItemSmall"
android:gravity="center_vertical"
+ android:maxLines="1"
+ android:ellipsize="end"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
@@ -37,6 +39,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
+ android:maxLines="1"
+ android:ellipsize="end"
android:layout_alignParentBottom="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"