diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-11-26 18:16:21 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-11-26 18:16:21 +0300 |
commit | e43395246b752695cebdc15683b8db2cfe4cc2d0 (patch) | |
tree | a722306efa244037a4e48922777434185c8eec04 /app | |
parent | 7aaffb043b6c3f8ca45498c1b1a0f2d92db64dd1 (diff) |
Don't block UI when rendering description viewer
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/res/layout/fragment_card_edit_tab_details.xml | 7 | ||||
-rw-r--r-- | app/src/main/res/values/dimens.xml | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/app/src/main/res/layout/fragment_card_edit_tab_details.xml b/app/src/main/res/layout/fragment_card_edit_tab_details.xml index f06a95978..259b30f7f 100644 --- a/app/src/main/res/layout/fragment_card_edit_tab_details.xml +++ b/app/src/main/res/layout/fragment_card_edit_tab_details.xml @@ -167,8 +167,9 @@ android:id="@+id/descriptionEditor" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/spacer_1x" - android:textColor="?attr/colorAccent" /> + android:layout_marginTop="@dimen/spacer_2x" + android:textColor="?attr/colorAccent" + android:textSize="@dimen/font_size_description" /> <it.niedermann.android.markdown.MarkdownViewerImpl android:id="@+id/descriptionViewer" @@ -176,7 +177,7 @@ android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacer_2x" android:textColor="?attr/colorAccent" - android:textSize="18sp" /> + android:textSize="@dimen/font_size_description" /> </LinearLayout> <TextView diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index c19fe8de1..ac7a62c15 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -9,6 +9,8 @@ <dimen name="compact_label_height">6dp</dimen> <dimen name="attachments_bottom_navigation_height">64dp</dimen> + <dimen name="font_size_description">18sp</dimen> + <!-- Drawer header --> <dimen name="drawer_header_height">100dp</dimen> <dimen name="drawer_header_logo_size">42dp</dimen> |