diff options
| author | Albin <albin@mullvad.net> | 2021-10-08 10:26:13 +0200 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2021-10-08 14:35:34 +0200 |
| commit | f2b33c7fce2898b9bcec1b1bf53e20287f862eb0 (patch) | |
| tree | f651635abf2962f273929cccec8718b18bd1e72a /android | |
| parent | 489adce8bae8267085e239e810a764c3c04f5468 (diff) | |
| download | mullvadvpn-f2b33c7fce2898b9bcec1b1bf53e20287f862eb0.tar.xz mullvadvpn-f2b33c7fce2898b9bcec1b1bf53e20287f862eb0.zip | |
Fix scrolling of Android logs
Fixes scrolling behavior and adds a scrollbar.
Diffstat (limited to 'android')
| -rw-r--r-- | android/src/main/res/layout/view_logs.xml | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/android/src/main/res/layout/view_logs.xml b/android/src/main/res/layout/view_logs.xml index cadcb702e7..3bf9e615fc 100644 --- a/android/src/main/res/layout/view_logs.xml +++ b/android/src/main/res/layout/view_logs.xml @@ -17,16 +17,22 @@ android:layout_marginHorizontal="@dimen/side_margin" android:text="@string/view_logs" style="@style/SettingsExpandedHeader" /> - <EditText android:id="@+id/log_area" - android:layout_width="match_parent" - android:layout_height="0dp" - android:layout_weight="1" - android:layout_marginTop="@dimen/vertical_space" - android:layout_marginHorizontal="@dimen/side_margin" - android:layout_marginBottom="@dimen/screen_vertical_margin" - android:editable="false" - android:textIsSelectable="true" - android:singleLine="false" - android:gravity="top" - style="@style/InputText" /> + <ScrollView android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:layout_marginTop="@dimen/vertical_space" + android:layout_marginHorizontal="@dimen/side_margin" + android:layout_marginBottom="@dimen/screen_vertical_margin" + android:scrollbarThumbVertical="@color/blue" + android:background="@drawable/input_text_background"> + <EditText android:id="@+id/log_area" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:editable="false" + android:textIsSelectable="true" + android:singleLine="false" + android:gravity="top" + android:background="@null" + style="@style/InputText" /> + </ScrollView> </LinearLayout> |
