diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-08-26 16:34:42 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-08-26 16:34:42 +0200 |
commit | fd54dc5aff2e2df0c0773ac0ce7936094edfeb39 (patch) | |
tree | 626dd75784d79b7aacd9137912b3ac17b53dac6b /src/main/res/layout | |
parent | 76cbb4f72751ec6255aa40b72218db80ea6d9472 (diff) |
wrap dynamic tags into multiple lines. fixes #2003
Diffstat (limited to 'src/main/res/layout')
-rw-r--r-- | src/main/res/layout/activity_contact_details.xml | 5 | ||||
-rw-r--r-- | src/main/res/layout/contact.xml | 6 | ||||
-rw-r--r-- | src/main/res/layout/list_item_tag.xml | 3 |
3 files changed, 8 insertions, 6 deletions
diff --git a/src/main/res/layout/activity_contact_details.xml b/src/main/res/layout/activity_contact_details.xml index cfd3179e..ce62081e 100644 --- a/src/main/res/layout/activity_contact_details.xml +++ b/src/main/res/layout/activity_contact_details.xml @@ -44,14 +44,15 @@ android:textSize="?attr/TextSizeHeadline" android:textStyle="bold" /> - <LinearLayout + <com.wefika.flowlayout.FlowLayout android:id="@+id/tags" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4dp" + android:layout_marginLeft="-2dp" android:layout_marginBottom="4dp" android:orientation="horizontal"> - </LinearLayout> + </com.wefika.flowlayout.FlowLayout> <TextView android:id="@+id/details_lastseen" diff --git a/src/main/res/layout/contact.xml b/src/main/res/layout/contact.xml index a67bf3ae..eb4069ba 100644 --- a/src/main/res/layout/contact.xml +++ b/src/main/res/layout/contact.xml @@ -38,13 +38,13 @@ android:singleLine="true" android:textColor="?attr/color_text_primary" android:textSize="?attr/TextSizeBody" /> - <LinearLayout + <com.wefika.flowlayout.FlowLayout android:id="@+id/tags" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="4dp" + android:layout_marginLeft="-2dp" android:orientation="horizontal"> - </LinearLayout> + </com.wefika.flowlayout.FlowLayout> <TextView android:id="@+id/key" android:layout_width="wrap_content" diff --git a/src/main/res/layout/list_item_tag.xml b/src/main/res/layout/list_item_tag.xml index 1a6a5576..5042d8d1 100644 --- a/src/main/res/layout/list_item_tag.xml +++ b/src/main/res/layout/list_item_tag.xml @@ -9,5 +9,6 @@ android:textSize="?attr/TextSizeInfo" android:textColor="@color/white" android:textAllCaps="true" - android:layout_marginRight="8dp" + android:maxLines="1" + android:layout_margin="2dp" />
\ No newline at end of file |