diff options
author | cyBerta <cyberta@riseup.net> | 2021-11-07 22:45:29 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-11-07 22:45:29 +0100 |
commit | 62c28b219a85aa3074356e1e49e92e30c1166c3b (patch) | |
tree | 31a674208c5a81722b32c7f7c4c6d9c6ff94966e /app/src/main | |
parent | 6ef5241baf6a1fa2bc4e6f3ecd805edf4827e712 (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')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/providersetup/activities/ConfigWizardBaseActivity.java | 1 | ||||
-rw-r--r-- | app/src/main/res/layout/v_log_item.xml | 41 |
2 files changed, 27 insertions, 15 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/ConfigWizardBaseActivity.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/ConfigWizardBaseActivity.java index 546beb18..a4104e30 100644 --- a/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/ConfigWizardBaseActivity.java +++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/ConfigWizardBaseActivity.java @@ -243,7 +243,6 @@ public abstract class ConfigWizardBaseActivity extends ButterKnifeActivity imple } LinearLayoutManager layoutManager = new LinearLayoutManager(this); connectionDetailLogs.setLayoutManager(layoutManager); - connectionDetailLogs.addItemDecoration( new DividerItemDecoration(this, layoutManager.getOrientation())); torLogAdapter = new TorLogAdapter(getLastLogs()); connectionDetailLogs.setAdapter(torLogAdapter); 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> |