summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-11-07 22:45:29 +0100
committercyBerta <cyberta@riseup.net>2021-11-07 22:45:29 +0100
commit62c28b219a85aa3074356e1e49e92e30c1166c3b (patch)
tree31a674208c5a81722b32c7f7c4c6d9c6ff94966e /app/src/main/res
parent6ef5241baf6a1fa2bc4e6f3ecd805edf4827e712 (diff)
tweak log item cell, get rid of DividerItemDecorator and use simple view as separator per cell, fixes cell height and text positioning issues
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/v_log_item.xml41
1 files changed, 27 insertions, 14 deletions
diff --git a/app/src/main/res/layout/v_log_item.xml b/app/src/main/res/layout/v_log_item.xml
index c3039f46..713c3b1f 100644
--- a/app/src/main/res/layout/v_log_item.xml
+++ b/app/src/main/res/layout/v_log_item.xml
@@ -1,16 +1,29 @@
-<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
- android:id="@android:id/text1"
- android:layout_width="match_parent"
+ android:orientation="vertical"
android:layout_height="wrap_content"
- android:textAppearance="@style/Base.TextAppearance.AppCompat.Small"
- android:gravity="center_vertical"
- tools:text="test \ntest2\ntest3"
- android:paddingStart="?android:attr/listPreferredItemPaddingStart"
- android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
- android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
- android:paddingRight="?android:attr/listPreferredItemPaddingRight"
- android:background="?android:attr/activatedBackgroundIndicator"
- android:paddingTop="2dp"
- android:paddingBottom="2dp"
- /> \ No newline at end of file
+ android:layout_width="match_parent"
+ >
+ <TextView
+ android:id="@android:id/text1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:layout_gravity="center_vertical"
+ tools:text="test"
+ android:paddingStart="?android:attr/listPreferredItemPaddingStart"
+ android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
+ android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
+ android:paddingRight="?android:attr/listPreferredItemPaddingRight"
+ android:background="?android:attr/activatedBackgroundIndicator"
+ android:paddingTop="3dp"
+ android:paddingBottom="3dp"
+ android:minHeight="10dp"
+ />
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="@color/black800_high_transparent"
+ />
+
+</LinearLayout>