diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-08-26 16:34:42 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-08-26 22:49:08 +0200 |
commit | d4cb06cecbb338f9092406bef04f61d98ef90c3a (patch) | |
tree | c3f2604fdcdc2f7b1f1dfba0bb0457ec12b32fd1 /src/main/res/layout | |
parent | f32064aa8272c95d8122d9d12415720a672efe5d (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 599ec2c7d..1b4d8032e 100644 --- a/src/main/res/layout/activity_contact_details.xml +++ b/src/main/res/layout/activity_contact_details.xml @@ -57,15 +57,16 @@ android:textIsSelectable="true" android:visibility="gone" /> - <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" android:layout_gravity="center_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 d1c9e486b..c1c08f58a 100644 --- a/src/main/res/layout/contact.xml +++ b/src/main/res/layout/contact.xml @@ -39,13 +39,13 @@ android:singleLine="true" android:textColor="@color/black87" 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 1a6a5576f..5042d8d16 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 |