From 159494f08392d17805c4716368f3f08c368895f1 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 27 Sep 2021 05:21:48 -0400 Subject: [PATCH] I extracted dimension values into resource files #1151. (https://github.com/lbryio/lbry-android/issues/1151) Because a lot of dimensions get reused, when I moved the dimensions file I used names like "large_1", "small_1", and "normal_1" for dimension values. I tried this to allow to cut down on repetitive values in the dimens file. "small" values range between 0dp and 15dp "normal" values range between 16dp to 119dp "large" values are anything over 120dp (the largest is 480dp) --- .../main/res/layout/activity_first_run.xml | 22 +- .../main/res/layout/activity_verification.xml | 16 +- app/src/main/res/layout/app_bar_main.xml | 54 +-- .../main/res/layout/card_invites_by_email.xml | 22 +- .../main/res/layout/card_invites_by_link.xml | 42 +- .../main/res/layout/card_invites_history.xml | 14 +- .../main/res/layout/card_reward_driver.xml | 16 +- .../main/res/layout/card_wallet_balance.xml | 70 ++-- .../layout/card_wallet_receive_credits.xml | 38 +- .../card_wallet_recent_transactions.xml | 32 +- .../res/layout/card_wallet_send_credits.xml | 48 +-- app/src/main/res/layout/card_wallet_sync.xml | 58 +-- .../res/layout/container_comment_form.xml | 68 ++-- .../layout/container_inline_channel_form.xml | 40 +- .../res/layout/container_inline_tag_form.xml | 26 +- .../layout/container_nothing_at_location.xml | 14 +- .../res/layout/container_sdk_initializing.xml | 10 +- app/src/main/res/layout/content_main.xml | 64 ++-- .../main/res/layout/dialog_content_from.xml | 36 +- .../main/res/layout/dialog_content_scope.xml | 40 +- .../main/res/layout/dialog_content_sort.xml | 46 +-- .../main/res/layout/dialog_create_support.xml | 60 +-- .../main/res/layout/dialog_customize_tags.xml | 68 ++-- app/src/main/res/layout/dialog_discover.xml | 16 +- .../main/res/layout/dialog_repost_claim.xml | 64 ++-- .../res/layout/exo_playback_control_view.xml | 76 ++-- .../res/layout/floating_wallet_balance.xml | 50 +-- app/src/main/res/layout/fragment_about.xml | 136 +++---- .../main/res/layout/fragment_all_content.xml | 74 ++-- app/src/main/res/layout/fragment_channel.xml | 134 +++---- .../res/layout/fragment_channel_about.xml | 26 +- .../res/layout/fragment_channel_comments.xml | 42 +- .../res/layout/fragment_channel_content.xml | 44 +-- .../main/res/layout/fragment_channel_form.xml | 130 +++---- .../res/layout/fragment_channel_manager.xml | 28 +- .../res/layout/fragment_editors_choice.xml | 8 +- .../main/res/layout/fragment_file_view.xml | 360 +++++++++--------- .../main/res/layout/fragment_following.xml | 76 ++-- app/src/main/res/layout/fragment_gallery.xml | 8 +- app/src/main/res/layout/fragment_home.xml | 8 +- app/src/main/res/layout/fragment_invites.xml | 16 +- app/src/main/res/layout/fragment_library.xml | 108 +++--- app/src/main/res/layout/fragment_publish.xml | 52 +-- .../main/res/layout/fragment_publish_form.xml | 202 +++++----- .../main/res/layout/fragment_publishes.xml | 28 +- app/src/main/res/layout/fragment_rewards.xml | 42 +- app/src/main/res/layout/fragment_search.xml | 14 +- app/src/main/res/layout/fragment_shuffle.xml | 28 +- .../layout/fragment_transaction_history.xml | 12 +- .../layout/fragment_verification_email.xml | 44 +-- .../layout/fragment_verification_manual.xml | 62 +-- .../layout/fragment_verification_phone.xml | 40 +- .../layout/fragment_verification_wallet.xml | 28 +- app/src/main/res/layout/fragment_wallet.xml | 16 +- .../res/layout/list_item_boosting_balance.xml | 26 +- app/src/main/res/layout/list_item_channel.xml | 76 ++-- .../res/layout/list_item_channel_filter.xml | 16 +- app/src/main/res/layout/list_item_comment.xml | 36 +- .../res/layout/list_item_editors_choice.xml | 28 +- .../list_item_featured_search_result.xml | 76 ++-- app/src/main/res/layout/list_item_gallery.xml | 10 +- app/src/main/res/layout/list_item_invitee.xml | 12 +- .../res/layout/list_item_nav_menu_group.xml | 10 +- .../res/layout/list_item_nav_menu_item.xml | 18 +- .../res/layout/list_item_notification.xml | 42 +- app/src/main/res/layout/list_item_reward.xml | 46 +-- .../res/layout/list_item_startupstage.xml | 8 +- app/src/main/res/layout/list_item_stream.xml | 96 ++--- .../layout/list_item_suggested_channel.xml | 32 +- app/src/main/res/layout/list_item_tag.xml | 22 +- .../main/res/layout/list_item_transaction.xml | 30 +- .../res/layout/list_item_url_suggestion.xml | 20 +- app/src/main/res/layout/nav_header_main.xml | 14 +- app/src/main/res/layout/popup_webview.xml | 4 +- .../main/res/layout/spinner_item_channel.xml | 4 +- .../main/res/layout/spinner_item_generic.xml | 4 +- app/src/main/res/values/dimens.xml | 172 +++++++++ 77 files changed, 1925 insertions(+), 1753 deletions(-) diff --git a/app/src/main/res/layout/activity_first_run.xml b/app/src/main/res/layout/activity_first_run.xml index 3c4e7a41..78fa3131 100644 --- a/app/src/main/res/layout/activity_first_run.xml +++ b/app/src/main/res/layout/activity_first_run.xml @@ -14,7 +14,7 @@ android:id="@+id/welcome_wait_container" android:layout_width="match_parent" android:layout_height="match_parent" - android:padding="24dp" + android:padding="@dimen/normal_03" android:visibility="gone"> + android:padding="@dimen/normal_03"> + android:textSize="@dimen/text_size_14" /> + android:textSize="@dimen/text_size_06" /> + android:textSize="@dimen/text_size_02" /> diff --git a/app/src/main/res/layout/activity_verification.xml b/app/src/main/res/layout/activity_verification.xml index c5017c9e..8877269c 100644 --- a/app/src/main/res/layout/activity_verification.xml +++ b/app/src/main/res/layout/activity_verification.xml @@ -19,17 +19,17 @@ @@ -37,8 +37,8 @@ + android:textSize="@dimen/text_size_04" /> @@ -69,14 +69,14 @@ android:id="@+id/wunderbar_notifications" android:clickable="true" android:background="?attr/selectableItemBackground" - android:layout_width="48dp" + android:layout_width="@dimen/normal_09" android:layout_height="match_parent" android:layout_alignParentEnd="true" android:layout_centerVertical="true"> @@ -87,13 +87,13 @@ android:background="@drawable/bg_notification_badge" android:fontFamily="@font/inter" android:gravity="center_horizontal" - android:minWidth="12dp" - android:paddingStart="2dp" - android:paddingEnd="2dp" - android:layout_marginTop="12dp" - android:layout_marginStart="24dp" + android:minWidth="@dimen/small_12" + android:paddingStart="@dimen/small_02" + android:paddingEnd="@dimen/small_02" + android:layout_marginTop="@dimen/small_12" + android:layout_marginStart="@dimen/normal_03" android:textColor="@color/white" - android:textSize="10sp" + android:textSize="@dimen/text_size_00" android:visibility="invisible" /> @@ -124,13 +124,13 @@ android:layout_height="wrap_content" android:text="@string/app_name" android:fontFamily="@font/inter" - android:textSize="56sp" + android:textSize="@dimen/text_size_16" android:textStyle="bold" /> + android:layout_width="@dimen/normal_03" + android:layout_height="@dimen/normal_03" + android:layout_marginTop="@dimen/normal_09" /> + android:padding="@dimen/normal_03"> + android:textSize="@dimen/text_size_04" /> diff --git a/app/src/main/res/layout/card_invites_by_email.xml b/app/src/main/res/layout/card_invites_by_email.xml index ff3dcd84..e59e245f 100644 --- a/app/src/main/res/layout/card_invites_by_email.xml +++ b/app/src/main/res/layout/card_invites_by_email.xml @@ -2,52 +2,52 @@ + android:layout_marginBottom="@dimen/normal_01"> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_10"/> + android:layout_marginTop="@dimen/normal_01"> + android:layout_marginTop="@dimen/normal_01"> + android:layout_marginBottom="@dimen/normal_01"> + android:padding="@dimen/normal_01"> + android:layout_marginBottom="@dimen/small_12"> + android:textSize="@dimen/text_size_10"/> @@ -33,21 +33,21 @@ android:layout_height="wrap_content" android:fontFamily="@font/inter" android:text="@string/share_this_link" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" /> + android:paddingTop="@dimen/small_08" + android:paddingBottom="@dimen/small_08" + android:paddingStart="@dimen/small_12" + android:paddingEnd="@dimen/small_12"> + android:layout_marginTop="@dimen/small_04" /> diff --git a/app/src/main/res/layout/card_invites_history.xml b/app/src/main/res/layout/card_invites_history.xml index e8bd189d..cadd70e4 100644 --- a/app/src/main/res/layout/card_invites_history.xml +++ b/app/src/main/res/layout/card_invites_history.xml @@ -6,11 +6,11 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:padding="16dp"> + android:padding="@dimen/normal_01"> + android:layout_marginBottom="@dimen/small_12"> + android:textSize="@dimen/text_size_10"/> @@ -32,14 +32,14 @@ android:layout_height="wrap_content" android:fontFamily="@font/inter" android:text="@string/earn_credits_for_inviting" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" /> \ No newline at end of file diff --git a/app/src/main/res/layout/card_reward_driver.xml b/app/src/main/res/layout/card_reward_driver.xml index 08f427d9..037887b3 100644 --- a/app/src/main/res/layout/card_reward_driver.xml +++ b/app/src/main/res/layout/card_reward_driver.xml @@ -7,18 +7,18 @@ android:foreground="?attr/selectableItemBackground" android:layout_width="match_parent" android:layout_height="wrap_content" - android:elevation="4dp" - app:cardCornerRadius="0dp"> + android:elevation="@dimen/small_04" + app:cardCornerRadius="@dimen/small_00"> + android:padding="@dimen/small_12"> @@ -27,12 +27,12 @@ android:layout_centerVertical="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="8dp" + android:layout_marginStart="@dimen/small_08" android:layout_toEndOf="@id/reward_driver_icon" android:fontFamily="@font/inter" android:lineSpacingMultiplier="1.2" android:textColor="@color/white" android:textFontWeight="300" - android:textSize="14sp" /> + android:textSize="@dimen/text_size_04" /> \ No newline at end of file diff --git a/app/src/main/res/layout/card_wallet_balance.xml b/app/src/main/res/layout/card_wallet_balance.xml index 8e5e8118..b1d33ca1 100644 --- a/app/src/main/res/layout/card_wallet_balance.xml +++ b/app/src/main/res/layout/card_wallet_balance.xml @@ -4,7 +4,7 @@ xmlns:lbry="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" - android:elevation="4dp"> + android:elevation="@dimen/small_04"> @@ -31,14 +31,14 @@ android:layout_height="wrap_content" android:fontFamily="@font/inter" android:textColor="@color/white" - android:textSize="16sp" + android:textSize="@dimen/text_size_06" android:textFontWeight="300" /> @@ -61,7 +61,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" lbry:textSize="@dimen/wallet_detail_balance_font_size" - lbry:iconSize="14dp" + lbry:iconSize="@dimen/small_14" android:textColor="@color/white" android:textFontWeight="300" /> @@ -70,7 +70,7 @@ android:layout_height="wrap_content" android:gravity="bottom" android:fontFamily="@font/inter" - android:paddingStart="8dp" + android:paddingStart="@dimen/small_08" android:text="@string/immediately_spendable" android:textColor="@color/white" android:textFontWeight="300" @@ -80,14 +80,14 @@ @@ -95,7 +95,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="@font/inter" - android:paddingStart="8dp" + android:paddingStart="@dimen/small_08" android:text="@string/boosting_content" android:textColor="@color/white" android:textFontWeight="300" @@ -105,7 +105,7 @@ android:id="@+id/view_more_button" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="18dp" + android:layout_marginStart="@dimen/normal_01_02" android:drawableEnd="@drawable/ic_arrow_dropdown" android:gravity="end" android:text="@string/view_more" @@ -116,8 +116,8 @@ @@ -132,40 +132,40 @@ android:layout_height="wrap_content" android:fontFamily="@font/inter" android:text="@string/buy_lbc" - android:layout_marginTop="8dp" - android:layout_marginStart="12dp" - android:layout_marginEnd="12dp" - android:textSize="16sp" /> + android:layout_marginTop="@dimen/small_08" + android:layout_marginStart="@dimen/small_12" + android:layout_marginEnd="@dimen/small_12" + android:textSize="@dimen/text_size_06" /> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_06" /> @@ -173,9 +173,9 @@ android:background="@color/lbryGreen" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="16dp" + android:layout_marginTop="@dimen/normal_01" android:orientation="vertical" - android:padding="16dp"> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_02" /> \ No newline at end of file diff --git a/app/src/main/res/layout/card_wallet_receive_credits.xml b/app/src/main/res/layout/card_wallet_receive_credits.xml index d1664aae..deeeb030 100644 --- a/app/src/main/res/layout/card_wallet_receive_credits.xml +++ b/app/src/main/res/layout/card_wallet_receive_credits.xml @@ -1,36 +1,36 @@ + android:layout_marginTop="@dimen/normal_01"> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_10"/> + android:textSize="@dimen/text_size_04" /> \ No newline at end of file diff --git a/app/src/main/res/layout/card_wallet_recent_transactions.xml b/app/src/main/res/layout/card_wallet_recent_transactions.xml index 9fe093b2..2b3d03e9 100644 --- a/app/src/main/res/layout/card_wallet_recent_transactions.xml +++ b/app/src/main/res/layout/card_wallet_recent_transactions.xml @@ -1,10 +1,10 @@ + android:layout_marginTop="@dimen/normal_01"> + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" + android:layout_marginTop="@dimen/normal_01"> + android:textSize="@dimen/text_size_10"/> + android:layout_height="@dimen/small_00.5" + android:layout_marginTop="@dimen/normal_01" /> @@ -76,10 +76,10 @@ android:id="@+id/wallet_no_recent_transactions" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_margin="16dp" + android:layout_margin="@dimen/normal_01" android:text="@string/no_recent_transactions" android:fontFamily="@font/inter" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textAlignment="center" android:textFontWeight="300" /> diff --git a/app/src/main/res/layout/card_wallet_send_credits.xml b/app/src/main/res/layout/card_wallet_send_credits.xml index 82210fed..14982744 100644 --- a/app/src/main/res/layout/card_wallet_send_credits.xml +++ b/app/src/main/res/layout/card_wallet_send_credits.xml @@ -1,28 +1,28 @@ + android:layout_marginTop="@dimen/normal_01"> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_10"/> + android:textSize="@dimen/text_size_04" /> @@ -78,26 +78,26 @@ android:layout_toEndOf="@id/wallet_input_layout_amount" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginTop="30dp" + android:layout_marginStart="@dimen/small_08" + android:layout_marginTop="@dimen/normal_04_02" android:fontFamily="@font/inter" android:text="@string/lbc" android:textAllCaps="true" - android:textSize="10sp" + android:textSize="@dimen/text_size_00" android:textFontWeight="300" /> + android:layout_marginStart="@dimen/small_02" /> + android:layout_marginTop="@dimen/normal_01"> + android:textSize="@dimen/text_size_10"/> + android:layout_height="@dimen/small_00.5" + android:layout_marginTop="@dimen/normal_01" /> + android:textSize="@dimen/text_size_06" /> + android:textSize="@dimen/text_size_06" /> + android:layout_height="@dimen/small_00.5" + android:layout_marginBottom="@dimen/small_14" /> + android:textSize="@dimen/text_size_06" /> + android:textSize="@dimen/text_size_06" /> + android:layout_height="@dimen/small_00.5" + android:layout_marginTop="@dimen/small_14" + android:layout_marginBottom="@dimen/small_12" /> + android:layout_margin="@dimen/normal_01"> + android:padding="@dimen/normal_01"> @@ -21,14 +21,14 @@ android:layout_centerVertical="true" android:text="@string/comment_as" android:fontFamily="@font/inter" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" /> @@ -36,7 +36,7 @@ android:id="@+id/comment_form_channel_spinner" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="4dp" /> + android:layout_marginTop="@dimen/small_04" /> @@ -44,14 +44,14 @@ android:id="@+id/comment_form_reply_to_container" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="8dp" - android:layout_marginBottom="8dp" + android:layout_marginTop="@dimen/small_08" + android:layout_marginBottom="@dimen/small_08" android:orientation="horizontal" android:visibility="gone"> @@ -59,12 +59,12 @@ + android:layout_marginStart="@dimen/small_08"> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_04" /> @@ -108,17 +108,17 @@ + android:layout_marginTop="@dimen/small_08"> + android:layout_width="@dimen/normal_07" + android:layout_height="@dimen/normal_07"> + android:layout_width="@dimen/normal_07" + android:layout_height="@dimen/normal_07" /> + android:layout_marginStart="@dimen/normal_01"> + android:textSize="@dimen/text_size_04" /> @@ -163,16 +163,16 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" - android:layout_marginTop="2dp" + android:layout_marginTop="@dimen/small_02" android:fontFamily="@font/inter" android:textColor="@color/lightGrey" android:textFontWeight="300" - android:textSize="12sp" /> + android:textSize="@dimen/text_size_02" /> + android:layout_marginTop="@dimen/small_08"> diff --git a/app/src/main/res/layout/container_inline_channel_form.xml b/app/src/main/res/layout/container_inline_channel_form.xml index 38b11bf0..f7db5f20 100644 --- a/app/src/main/res/layout/container_inline_channel_form.xml +++ b/app/src/main/res/layout/container_inline_channel_form.xml @@ -2,7 +2,7 @@ + android:textSize="@dimen/text_size_04" /> @@ -45,26 +45,26 @@ android:layout_toEndOf="@id/inline_channel_form_layout_deposit" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginTop="30dp" + android:layout_marginStart="@dimen/small_08" + android:layout_marginTop="@dimen/normal_04_02" android:fontFamily="@font/inter" android:text="@string/lbc" android:textAllCaps="true" - android:textSize="10sp" + android:textSize="@dimen/text_size_00" android:textFontWeight="300" /> + android:layout_marginStart="@dimen/small_02" /> + android:textSize="@dimen/text_size_02" /> + android:layout_marginTop="@dimen/normal_01"> diff --git a/app/src/main/res/layout/container_inline_tag_form.xml b/app/src/main/res/layout/container_inline_tag_form.xml index bdd32a3c..4c386b5a 100644 --- a/app/src/main/res/layout/container_inline_tag_form.xml +++ b/app/src/main/res/layout/container_inline_tag_form.xml @@ -10,19 +10,19 @@ android:id="@+id/form_no_added_tags" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginBottom="6dp" + android:layout_marginBottom="@dimen/small_06" android:fontFamily="@font/inter" android:text="@string/no_added_tags" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" android:visibility="gone" /> + android:layout_marginTop="@dimen/small_10" + android:layout_marginBottom="@dimen/normal_01"/> + android:layout_marginTop="@dimen/small_04" /> + android:layout_marginTop="@dimen/small_10" + android:layout_marginBottom="@dimen/normal_01"> \ No newline at end of file diff --git a/app/src/main/res/layout/container_nothing_at_location.xml b/app/src/main/res/layout/container_nothing_at_location.xml index be868d07..6cce816e 100644 --- a/app/src/main/res/layout/container_nothing_at_location.xml +++ b/app/src/main/res/layout/container_nothing_at_location.xml @@ -10,11 +10,11 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" - android:padding="36dp"> + android:padding="@dimen/normal_06"> diff --git a/app/src/main/res/layout/container_sdk_initializing.xml b/app/src/main/res/layout/container_sdk_initializing.xml index 63f32959..9794069a 100644 --- a/app/src/main/res/layout/container_sdk_initializing.xml +++ b/app/src/main/res/layout/container_sdk_initializing.xml @@ -11,21 +11,21 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" - android:padding="36dp"> + android:padding="@dimen/normal_06"> \ No newline at end of file diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml index 06bfa62f..a64c4208 100644 --- a/app/src/main/res/layout/content_main.xml +++ b/app/src/main/res/layout/content_main.xml @@ -14,7 +14,7 @@ android:fitsSystemWindows="true" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_margin="0dp" + android:layout_margin="@dimen/small_00" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" /> @@ -22,7 +22,7 @@ @@ -92,8 +92,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/lbryGreen" - android:elevation="12dp" - android:padding="8dp" + android:elevation="@dimen/small_12" + android:padding="@dimen/small_08" android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent"> @@ -123,24 +123,24 @@ android:clickable="true" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="4dp" - android:layout_marginEnd="4dp" - android:layout_marginBottom="4dp" + android:layout_marginStart="@dimen/small_04" + android:layout_marginEnd="@dimen/small_04" + android:layout_marginBottom="@dimen/small_04" android:visibility="gone" - app:cardElevation="8dp" + app:cardElevation="@dimen/small_08" app:layout_constraintBottom_toTopOf="@id/global_sdk_initializing_status"> + android:layout_height="@dimen/normal_19_02"> + android:layout_width="@dimen/large_11" + android:layout_height="@dimen/normal_19_02" /> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_00" /> + android:layout_marginStart="@dimen/small_08"> diff --git a/app/src/main/res/layout/dialog_content_from.xml b/app/src/main/res/layout/dialog_content_from.xml index 7bdc4161..e2e2dd7e 100644 --- a/app/src/main/res/layout/dialog_content_from.xml +++ b/app/src/main/res/layout/dialog_content_from.xml @@ -5,23 +5,23 @@ android:layout_height="match_parent" android:orientation="vertical"> + android:layout_marginTop="@dimen/small_08" + android:layout_marginStart="@dimen/small_08" + android:layout_marginEnd="@dimen/small_08" /> + android:padding="@dimen/small_12"> + android:padding="@dimen/small_12"> + android:padding="@dimen/small_12"> + android:padding="@dimen/small_12"> + android:padding="@dimen/small_12"> + android:layout_marginTop="@dimen/small_08" + android:layout_marginStart="@dimen/small_08" + android:layout_marginEnd="@dimen/small_08" /> + android:padding="@dimen/small_12"> + android:padding="@dimen/small_12"> + android:layout_marginTop="@dimen/small_08" + android:layout_marginStart="@dimen/small_08" + android:layout_marginEnd="@dimen/small_08" /> + android:padding="@dimen/small_12"> @@ -41,11 +41,11 @@ android:layout_toEndOf="@+id/sort_by_trending_item_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="16dp" + android:layout_marginStart="@dimen/normal_01" android:layout_centerVertical="true" android:fontFamily="@font/inter" android:text="@string/trending_content" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" /> + android:padding="@dimen/small_12"> @@ -76,11 +76,11 @@ android:layout_toEndOf="@+id/sort_by_new_item_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="16dp" + android:layout_marginStart="@dimen/normal_01" android:layout_centerVertical="true" android:fontFamily="@font/inter" android:text="@string/new_content" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" /> + android:padding="@dimen/small_12"> @@ -111,11 +111,11 @@ android:layout_toEndOf="@+id/sort_by_top_item_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="16dp" + android:layout_marginStart="@dimen/normal_01" android:layout_centerVertical="true" android:fontFamily="@font/inter" android:text="@string/top_content" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" /> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_10" /> + android:layout_marginTop="@dimen/small_08" + android:layout_marginBottom="@dimen/small_12" /> + android:textSize="@dimen/text_size_04" /> + android:layout_marginTop="@dimen/small_12" + android:layout_marginBottom="@dimen/small_12" /> @@ -61,21 +61,21 @@ android:id="@+id/create_support_channel_spinner" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="4dp" /> + android:layout_marginTop="@dimen/small_04" /> @@ -86,26 +86,26 @@ android:layout_toEndOf="@id/create_support_input_layout_amount" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginTop="30dp" + android:layout_marginStart="@dimen/small_08" + android:layout_marginTop="@dimen/normal_04_02" android:fontFamily="@font/inter" android:text="@string/lbc" android:textAllCaps="true" - android:textSize="10sp" + android:textSize="@dimen/text_size_00" android:textFontWeight="300" /> + android:layout_marginStart="@dimen/small_02" /> @@ -123,12 +123,12 @@ android:checked="true" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="8dp" - android:layout_marginBottom="8dp" + android:layout_marginTop="@dimen/small_08" + android:layout_marginBottom="@dimen/small_08" android:text="@string/make_this_a_tip" android:fontFamily="@font/inter" android:textFontWeight="300" - android:textSize="14sp" /> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_04" /> + android:layout_marginTop="@dimen/small_08" + android:layout_marginStart="@dimen/small_08" + android:layout_marginEnd="@dimen/small_08" + android:layout_marginBottom="@dimen/normal_01"/> + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" /> + android:layout_marginTop="@dimen/small_10" + android:layout_marginStart="@dimen/small_08" + android:layout_marginEnd="@dimen/small_08" + android:layout_marginBottom="@dimen/normal_01"/> + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" /> + android:layout_marginTop="@dimen/small_10" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" + android:layout_marginBottom="@dimen/normal_01"> @@ -97,9 +97,9 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" - android:layout_marginBottom="16dp" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" + android:layout_marginBottom="@dimen/normal_01" android:fontFamily="@font/inter" android:text="@string/done" /> diff --git a/app/src/main/res/layout/dialog_discover.xml b/app/src/main/res/layout/dialog_discover.xml index 77386803..89e4815d 100644 --- a/app/src/main/res/layout/dialog_discover.xml +++ b/app/src/main/res/layout/dialog_discover.xml @@ -8,7 +8,7 @@ android:id="@+id/discover_title_container" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_margin="16dp"> + android:layout_margin="@dimen/normal_01"> @@ -29,8 +29,8 @@ @@ -46,8 +46,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" android:fontFamily="@font/inter" android:text="@string/done" /> diff --git a/app/src/main/res/layout/dialog_repost_claim.xml b/app/src/main/res/layout/dialog_repost_claim.xml index 8c9cbad2..449f077c 100644 --- a/app/src/main/res/layout/dialog_repost_claim.xml +++ b/app/src/main/res/layout/dialog_repost_claim.xml @@ -7,7 +7,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:padding="16dp"> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_10" /> + android:layout_marginTop="@dimen/small_08" + android:layout_marginBottom="@dimen/small_08" /> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_04" /> + android:layout_marginTop="@dimen/small_04" /> + android:textSize="@dimen/text_size_04" /> + android:layout_marginTop="@dimen/small_04"> @@ -85,7 +85,7 @@ android:id="@+id/repost_advanced_container" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="24dp" + android:layout_marginTop="@dimen/normal_03" android:orientation="vertical" android:visibility="gone"> @@ -110,26 +110,26 @@ android:layout_toEndOf="@id/repost_input_layout_amount" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginTop="30dp" + android:layout_marginStart="@dimen/small_08" + android:layout_marginTop="@dimen/normal_04_02" android:fontFamily="@font/inter" android:text="@string/lbc" android:textAllCaps="true" - android:textSize="10sp" + android:textSize="@dimen/text_size_00" android:textFontWeight="300" /> + android:layout_marginStart="@dimen/small_02" /> @@ -146,7 +146,7 @@ + android:layout_marginTop="@dimen/normal_03"> + android:textSize="@dimen/text_size_04" /> @@ -52,8 +52,8 @@ android:layout_width="match_parent" android:layout_height="match_parent"> @@ -64,15 +64,15 @@ android:clickable="true" android:focusable="true" android:layout_centerVertical="true" - android:layout_width="72dp" - android:layout_height="72dp" + android:layout_width="@dimen/normal_15" + android:layout_height="@dimen/normal_15" android:layout_toEndOf="@id/player_play_pause"> @@ -81,15 +81,15 @@ android:id="@+id/player_toggle_cast" android:clickable="true" android:background="?attr/selectableItemBackground" - android:layout_width="48dp" - android:layout_height="48dp" + android:layout_width="@dimen/normal_09" + android:layout_height="@dimen/normal_09" android:layout_alignParentTop="true" android:layout_alignParentEnd="true" android:visibility="gone"> @@ -101,8 +101,8 @@ android:clickable="true" android:focusable="true" android:layout_alignParentBottom="true" - android:layout_width="56dp" - android:layout_height="48dp" + android:layout_width="@dimen/normal_11" + android:layout_height="@dimen/normal_09" android:layout_toStartOf="@id/player_toggle_fullscreen"> + android:textSize="@dimen/text_size_01" /> @@ -138,36 +138,36 @@ + android:paddingStart="@dimen/normal_01" + android:paddingEnd="@dimen/small_04"> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_04" /> \ No newline at end of file diff --git a/app/src/main/res/layout/floating_wallet_balance.xml b/app/src/main/res/layout/floating_wallet_balance.xml index 5e6111f3..88eaeb66 100644 --- a/app/src/main/res/layout/floating_wallet_balance.xml +++ b/app/src/main/res/layout/floating_wallet_balance.xml @@ -5,9 +5,9 @@ android:background="@android:color/transparent" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginBottom="8dp" - android:layout_marginEnd="8dp" - android:elevation="4dp" + android:layout_marginBottom="@dimen/small_08" + android:layout_marginEnd="@dimen/small_08" + android:elevation="@dimen/small_04" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintBottom_toBottomOf="parent"> @@ -33,12 +33,12 @@ android:id="@+id/floating_reward_value" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="2dp" + android:layout_marginStart="@dimen/small_02" android:layout_gravity="center_vertical" android:fontFamily="@font/inter" android:textColor="@color/white" android:text="@string/zero" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textStyle="bold" android:textFontWeight="300" /> @@ -51,14 +51,14 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toEndOf="@id/floating_reward_container" - android:layout_marginStart="-36dp" - android:paddingTop="8dp" - android:paddingBottom="8dp" - android:paddingStart="12dp" - android:paddingEnd="16dp"> + android:layout_marginStart="@dimen/negative_normal_06" + android:paddingTop="@dimen/small_08" + android:paddingBottom="@dimen/small_08" + android:paddingStart="@dimen/small_12" + android:paddingEnd="@dimen/normal_01"> + android:textSize="@dimen/text_size_04" /> + android:layout_width="@dimen/normal_01" + android:layout_height="@dimen/normal_01" + android:layout_marginStart="@dimen/small_02" /> diff --git a/app/src/main/res/layout/fragment_about.xml b/app/src/main/res/layout/fragment_about.xml index 5f5e3fb9..b103cc4c 100644 --- a/app/src/main/res/layout/fragment_about.xml +++ b/app/src/main/res/layout/fragment_about.xml @@ -9,144 +9,144 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:padding="16dp"> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_11" /> + android:textSize="@dimen/text_size_08" /> + android:textSize="@dimen/text_size_08" /> + android:layout_marginTop="@dimen/small_08"> + android:padding="@dimen/small_12"> + android:textSize="@dimen/text_size_04" /> + android:layout_height="@dimen/small_00.5" /> + android:padding="@dimen/small_12"> + android:textSize="@dimen/text_size_04" /> + android:layout_height="@dimen/small_00.5" /> + android:padding="@dimen/small_12"> + android:textSize="@dimen/text_size_04" /> + android:layout_height="@dimen/small_00.5" /> + android:padding="@dimen/small_12"> + android:textSize="@dimen/text_size_04" /> + android:layout_height="@dimen/small_00.5" /> + android:padding="@dimen/small_12"> + android:textSize="@dimen/text_size_04" /> + android:layout_height="@dimen/small_00.5" /> + android:padding="@dimen/small_12"> + android:textSize="@dimen/text_size_04" /> + android:layout_height="@dimen/small_00.5" /> + android:padding="@dimen/small_12"> + android:textSize="@dimen/text_size_04" /> diff --git a/app/src/main/res/layout/fragment_all_content.xml b/app/src/main/res/layout/fragment_all_content.xml index 68477ace..d7ebfe07 100644 --- a/app/src/main/res/layout/fragment_all_content.xml +++ b/app/src/main/res/layout/fragment_all_content.xml @@ -8,8 +8,8 @@ + android:paddingTop="@dimen/normal_01"> + android:layout_marginBottom="@dimen/small_08" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01"> + android:textSize="@dimen/text_size_10" /> @@ -48,10 +48,10 @@ android:id="@+id/all_content_filter_container" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="2dp" - android:layout_marginBottom="8dp" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" + android:layout_marginTop="@dimen/small_02" + android:layout_marginBottom="@dimen/small_08" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" android:visibility="visible"> @@ -88,10 +88,10 @@ android:layout_toEndOf="@id/all_content_sort_link" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="2dp" + android:layout_marginStart="@dimen/small_02" android:fontFamily="@font/inter" android:textFontWeight="300" - android:textSize="12sp" + android:textSize="@dimen/text_size_02" android:text="@string/for_text" android:visibility="gone" /> @@ -129,10 +129,10 @@ android:layout_toEndOf="@id/all_content_sort_link" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="2dp" + android:layout_marginStart="@dimen/small_02" android:fontFamily="@font/inter" android:textFontWeight="300" - android:textSize="12sp" + android:textSize="@dimen/text_size_02" android:text="@string/from" android:visibility="gone" /> @@ -175,7 +175,7 @@ android:clickable="true" android:fontFamily="@font/inter" android:textFontWeight="300" - android:textSize="12sp" + android:textSize="@dimen/text_size_02" android:text="@string/customize" android:visibility="gone" /> @@ -184,17 +184,17 @@ android:id="@+id/all_content_no_claim_search_content" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_margin="16dp" + android:layout_margin="@dimen/normal_01" android:fontFamily="@font/inter" android:text="@string/no_claim_search_content" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" android:visibility="gone" /> diff --git a/app/src/main/res/layout/fragment_channel.xml b/app/src/main/res/layout/fragment_channel.xml index 058dcbfe..d13932fd 100644 --- a/app/src/main/res/layout/fragment_channel.xml +++ b/app/src/main/res/layout/fragment_channel.xml @@ -17,9 +17,9 @@ android:layout_height="wrap_content" android:layout_centerInParent="true"> @@ -42,7 +42,7 @@ android:layout_height="match_parent"> + android:layout_height="@dimen/large_26"> @@ -63,14 +63,14 @@ android:background="@color/channelCoverBackground" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingStart="4dp" - android:paddingEnd="4dp" - android:paddingTop="2dp" - android:paddingBottom="2dp" + android:paddingStart="@dimen/small_04" + android:paddingEnd="@dimen/small_04" + android:paddingTop="@dimen/small_02" + android:paddingBottom="@dimen/small_02" android:ellipsize="end" android:fontFamily="@font/inter" android:maxLines="2" - android:textSize="20sp" + android:textSize="@dimen/text_size_10" android:textColor="@color/white" /> @@ -95,22 +95,22 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - android:paddingStart="110dp" + android:paddingStart="@dimen/normal_24_02" app:tabGravity="fill" app:tabMode="scrollable"/> + android:layout_marginStart="@dimen/small_12" + android:layout_marginBottom="@dimen/small_12"> + android:layout_width="@dimen/normal_19_02" + android:layout_height="@dimen/normal_19_02"> @@ -140,23 +140,23 @@ android:layout_height="match_parent" /> + android:padding="@dimen/small_08"> @@ -164,14 +164,14 @@ android:id="@+id/channel_view_delete" android:clickable="true" android:background="?attr/selectableItemBackground" - android:layout_width="36dp" - android:layout_height="36dp" - android:layout_marginEnd="8dp" + android:layout_width="@dimen/normal_06" + android:layout_height="@dimen/normal_06" + android:layout_marginEnd="@dimen/small_08" android:visibility="gone"> @@ -179,13 +179,13 @@ android:id="@+id/channel_view_share" android:clickable="true" android:background="?attr/selectableItemBackground" - android:layout_width="36dp" - android:layout_height="36dp" - android:layout_marginEnd="8dp"> + android:layout_width="@dimen/normal_06" + android:layout_height="@dimen/normal_06" + android:layout_marginEnd="@dimen/small_08"> @@ -193,71 +193,71 @@ android:id="@+id/channel_view_tip" android:background="?attr/selectableItemBackground" android:clickable="true" - android:layout_width="36dp" - android:layout_height="36dp" - android:layout_marginEnd="8dp"> + android:layout_width="@dimen/normal_06" + android:layout_height="@dimen/normal_06" + android:layout_marginEnd="@dimen/small_08"> + android:textSize="@dimen/normal_02" /> + android:layout_height="@dimen/normal_06"> + android:textSize="@dimen/normal_02" /> + android:textSize="@dimen/normal_02"/> diff --git a/app/src/main/res/layout/fragment_channel_about.xml b/app/src/main/res/layout/fragment_channel_about.xml index a572155e..6be4371c 100644 --- a/app/src/main/res/layout/fragment_channel_about.xml +++ b/app/src/main/res/layout/fragment_channel_about.xml @@ -12,8 +12,8 @@ android:orientation="vertical"> @@ -21,48 +21,48 @@ android:id="@+id/channel_about_no_info" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="12dp" + android:layout_marginTop="@dimen/small_12" android:fontFamily="@font/inter" android:textAlignment="center" android:text="@string/no_channel_info" android:textFontWeight="300" - android:textSize="16sp" /> + android:textSize="@dimen/text_size_06" /> + android:layout_marginTop="@dimen/normal_09"> + android:padding="@dimen/normal_01"> @@ -89,7 +89,7 @@ android:layout_height="wrap_content" android:autoLink="web" android:fontFamily="@font/inter" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" /> diff --git a/app/src/main/res/layout/fragment_channel_comments.xml b/app/src/main/res/layout/fragment_channel_comments.xml index 75834a08..1c8a3243 100644 --- a/app/src/main/res/layout/fragment_channel_comments.xml +++ b/app/src/main/res/layout/fragment_channel_comments.xml @@ -7,13 +7,13 @@ + android:layout_height="@dimen/normal_09" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01"> @@ -31,49 +31,49 @@ android:id="@+id/container_comment_form" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="0dp" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" - android:layout_marginBottom="16dp" + android:layout_marginTop="@dimen/small_00" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" + android:layout_marginBottom="@dimen/normal_01" android:visibility="gone" /> + android:paddingTop="@dimen/normal_01"> @@ -66,7 +66,7 @@ android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="24dp" + android:layout_marginStart="@dimen/normal_03" android:layout_toEndOf="@id/channel_content_sort_link" android:visibility="gone"> @@ -92,8 +92,8 @@ @@ -102,17 +102,17 @@ android:id="@+id/channel_content_no_claim_search_content" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_margin="16dp" + android:layout_margin="@dimen/normal_01" android:fontFamily="@font/inter" android:text="@string/no_claim_search_content" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" android:visibility="gone" /> diff --git a/app/src/main/res/layout/fragment_channel_form.xml b/app/src/main/res/layout/fragment_channel_form.xml index bdce4273..8ffcf5e6 100644 --- a/app/src/main/res/layout/fragment_channel_form.xml +++ b/app/src/main/res/layout/fragment_channel_form.xml @@ -8,7 +8,7 @@ + android:layout_height="@dimen/large_26"> @@ -48,42 +48,42 @@ android:layout_alignParentEnd="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="4dp" - android:layout_marginTop="4dp" + android:layout_marginStart="@dimen/small_04" + android:layout_marginTop="@dimen/small_04" android:orientation="horizontal" - android:paddingTop="2dp" - android:paddingBottom="2dp" - android:paddingStart="8dp" - android:paddingEnd="8dp" + android:paddingTop="@dimen/small_02" + android:paddingBottom="@dimen/small_02" + android:paddingStart="@dimen/small_08" + android:paddingEnd="@dimen/small_08" android:visibility="gone"> + android:layout_width="@dimen/normal_01" + android:layout_height="@dimen/normal_01" /> + android:textSize="@dimen/text_size_02" /> + android:layout_width="@dimen/normal_19_02" + android:layout_height="@dimen/normal_19_02"> @@ -101,15 +101,15 @@ android:layout_height="match_parent" /> @@ -134,7 +134,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:padding="16dp"> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_04" /> + android:layout_marginTop="@dimen/normal_01"> @@ -162,32 +162,32 @@ android:fontFamily="@font/inter" android:hint="@string/channel_name" android:singleLine="true" - android:textSize="14sp" /> + android:textSize="@dimen/text_size_04" /> @@ -198,26 +198,26 @@ android:layout_toEndOf="@id/channel_form_input_layout_deposit" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginTop="30dp" + android:layout_marginStart="@dimen/small_08" + android:layout_marginTop="@dimen/normal_04_02" android:fontFamily="@font/inter" android:text="@string/lbc" android:textAllCaps="true" - android:textSize="10sp" + android:textSize="@dimen/text_size_00" android:textFontWeight="300" /> + android:layout_marginStart="@dimen/small_02" /> + android:textSize="@dimen/text_size_02" /> @@ -259,13 +259,13 @@ android:inputType="textMultiLine" android:singleLine="false" android:scrollbars="vertical" - android:textSize="14sp" /> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_04" /> + android:layout_marginTop="@dimen/normal_03"> + android:padding="@dimen/normal_06"> @@ -68,8 +68,8 @@ android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_alignParentBottom="true" - android:layout_marginEnd="16dp" - android:layout_marginBottom="16dp" + android:layout_marginEnd="@dimen/normal_01" + android:layout_marginBottom="@dimen/normal_01" android:src="@drawable/ic_add" android:visibility="gone" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_editors_choice.xml b/app/src/main/res/layout/fragment_editors_choice.xml index 42e03e9a..53f00957 100644 --- a/app/src/main/res/layout/fragment_editors_choice.xml +++ b/app/src/main/res/layout/fragment_editors_choice.xml @@ -6,8 +6,8 @@ android:orientation="vertical"> + android:paddingTop="@dimen/normal_01" + android:paddingBottom="@dimen/normal_01" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_file_view.xml b/app/src/main/res/layout/fragment_file_view.xml index 9fa4ed64..b2d2e475 100644 --- a/app/src/main/res/layout/fragment_file_view.xml +++ b/app/src/main/res/layout/fragment_file_view.xml @@ -18,9 +18,9 @@ android:layout_height="wrap_content" android:layout_centerInParent="true"> @@ -45,7 +45,7 @@ @@ -102,11 +102,11 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginStart="1dp" + android:layout_marginStart="@dimen/small_01" android:fontFamily="@font/inter" android:textColor="@android:color/black" android:textFontWeight="300" - android:textSize="14sp" /> + android:textSize="@dimen/text_size_04" /> @@ -125,8 +125,8 @@ @@ -136,12 +136,12 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/mediaContainerBackground" - android:padding="36dp" + android:padding="@dimen/normal_06" android:visibility="gone"> @@ -150,7 +150,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_marginStart="24dp" + android:layout_marginStart="@dimen/normal_03" android:layout_toEndOf="@id/file_view_unsupported_gerbil" android:orientation="vertical"> @@ -160,7 +160,7 @@ android:fontFamily="@font/inter" android:text="@string/unsupported_content" android:textColor="@color/white" - android:textSize="18sp" /> + android:textSize="@dimen/text_size_08" /> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_04" /> @@ -206,17 +206,17 @@ android:layout_height="wrap_content" android:background="?attr/selectableItemBackground" android:clickable="true" - android:paddingStart="16dp" - android:paddingTop="8dp" - android:paddingEnd="4dp" - android:paddingBottom="8dp"> + android:paddingStart="@dimen/normal_01" + android:paddingTop="@dimen/small_08" + android:paddingEnd="@dimen/small_04" + android:paddingBottom="@dimen/small_08"> + android:textSize="@dimen/text_size_02" /> + android:paddingTop="@dimen/small_08" + android:paddingBottom="@dimen/small_08"> @@ -301,32 +301,32 @@ android:layout_gravity="center_horizontal" android:fontFamily="@font/inter" android:text="@string/share" - android:textSize="12sp" /> + android:textSize="@dimen/text_size_02" /> + android:paddingTop="@dimen/small_08" + android:paddingBottom="@dimen/small_08"> + android:textSize="@dimen/normal_02" /> + android:textSize="@dimen/text_size_02" /> + android:paddingTop="@dimen/small_08" + android:paddingBottom="@dimen/small_08"> + android:textSize="@dimen/normal_02" /> + android:textSize="@dimen/text_size_02" /> @@ -404,37 +404,37 @@ android:layout_gravity="center_horizontal" android:fontFamily="@font/inter" android:text="@string/edit" - android:textSize="12sp" /> + android:textSize="@dimen/text_size_02" /> + android:paddingTop="@dimen/small_08" + android:paddingBottom="@dimen/small_08"> @@ -446,29 +446,29 @@ android:layout_gravity="center_horizontal" android:fontFamily="@font/inter" android:text="@string/download" - android:textSize="12sp" /> + android:textSize="@dimen/text_size_02" /> @@ -480,28 +480,28 @@ android:layout_gravity="center_horizontal" android:fontFamily="@font/inter" android:text="@string/delete" - android:textSize="12sp" /> + android:textSize="@dimen/text_size_02" /> + android:paddingTop="@dimen/small_08" + android:paddingBottom="@dimen/small_08"> @@ -513,28 +513,28 @@ android:layout_gravity="center_horizontal" android:fontFamily="@font/inter" android:text="@string/unpublish" - android:textSize="12sp" /> + android:textSize="@dimen/text_size_02" /> + android:paddingTop="@dimen/small_08" + android:paddingBottom="@dimen/small_08"> @@ -546,14 +546,14 @@ android:layout_gravity="center_horizontal" android:fontFamily="@font/inter" android:text="@string/report" - android:textSize="12sp" /> + android:textSize="@dimen/text_size_02" /> + android:paddingStart="@dimen/normal_01" + android:paddingTop="@dimen/small_12" + android:paddingBottom="@dimen/small_12"> @@ -596,13 +596,13 @@ android:textAllCaps="true" android:textColor="@color/white" android:textFontWeight="300" - android:textSize="24sp" /> + android:textSize="@dimen/text_size_11" /> @@ -619,7 +619,7 @@ android:layout_height="wrap_content" android:fontFamily="@font/inter" android:textFontWeight="300" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:visibility="gone" /> + android:textSize="@dimen/text_size_04" /> @@ -648,61 +648,61 @@ android:background="?attr/selectableItemBackground" android:clickable="true" android:orientation="horizontal" - android:paddingTop="8dp" - android:paddingBottom="8dp"> + android:paddingTop="@dimen/small_08" + android:paddingBottom="@dimen/small_08"> + android:textSize="@dimen/normal_02" /> + android:textSize="@dimen/text_size_02" /> + android:paddingTop="@dimen/normal_06"> + android:textSize="@dimen/text_size_02" /> @@ -763,14 +763,14 @@ android:id="@+id/file_view_related_content_area" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="8dp" + android:layout_marginBottom="@dimen/small_08" android:orientation="vertical"> + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01"> + android:textSize="@dimen/text_size_06" /> @@ -793,13 +793,13 @@ android:id="@+id/file_view_no_related_content" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginTop="8dp" - android:layout_marginEnd="16dp" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginTop="@dimen/small_08" + android:layout_marginEnd="@dimen/normal_01" android:fontFamily="@font/inter" android:text="@string/no_related_content" android:textFontWeight="300" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:visibility="gone" /> + android:paddingBottom="@dimen/normal_01"> + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01"> @@ -842,7 +842,7 @@ android:layout_centerVertical="true" android:fontFamily="@font/inter" android:text="@string/comments" - android:textSize="16sp" /> + android:textSize="@dimen/text_size_06" /> + android:paddingTop="@dimen/normal_01"> + android:layout_marginBottom="@dimen/small_06" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01"> + android:textSize="@dimen/text_size_10" /> @@ -55,10 +55,10 @@ android:id="@+id/following_filter_container" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="2dp" - android:layout_marginBottom="8dp" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" + android:layout_marginTop="@dimen/small_02" + android:layout_marginBottom="@dimen/small_08" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" android:visibility="gone"> @@ -92,7 +92,7 @@ android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="24dp" + android:layout_marginStart="@dimen/normal_03" android:layout_centerVertical="true" android:visibility="gone"> @@ -123,7 +123,7 @@ android:clickable="true" android:fontFamily="@font/inter" android:textFontWeight="300" - android:textSize="12sp" + android:textSize="@dimen/text_size_02" android:text="@string/discover" /> @@ -131,14 +131,14 @@ android:id="@+id/following_page_info" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" android:fontFamily="@font/inter" android:textFontWeight="300" android:text="@string/lbry_works_better" - android:textSize="14sp" - android:layout_marginTop="4dp" - android:layout_marginBottom="16dp" + android:textSize="@dimen/text_size_04" + android:layout_marginTop="@dimen/small_04" + android:layout_marginBottom="@dimen/normal_01" android:visibility="gone" /> @@ -162,10 +162,10 @@ android:id="@+id/following_no_claim_search_content" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_margin="16dp" + android:layout_margin="@dimen/normal_01" android:fontFamily="@font/inter" android:text="@string/no_claim_search_content" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" android:visibility="gone" /> @@ -175,8 +175,8 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@id/following_suggested_done_button" - android:paddingTop="16dp" - android:paddingBottom="16dp" + android:paddingTop="@dimen/normal_01" + android:paddingBottom="@dimen/normal_01" android:visibility="gone" /> diff --git a/app/src/main/res/layout/fragment_gallery.xml b/app/src/main/res/layout/fragment_gallery.xml index e682f216..be1dc65a 100644 --- a/app/src/main/res/layout/fragment_gallery.xml +++ b/app/src/main/res/layout/fragment_gallery.xml @@ -9,11 +9,11 @@ android:id="@+id/text_gallery" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginTop="8dp" - android:layout_marginEnd="8dp" + android:layout_marginStart="@dimen/small_08" + android:layout_marginTop="@dimen/small_08" + android:layout_marginEnd="@dimen/small_08" android:textAlignment="center" - android:textSize="20sp" + android:textSize="@dimen/text_size_10" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index b4899f92..ee2fab0e 100644 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -9,11 +9,11 @@ android:id="@+id/text_home" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginTop="8dp" - android:layout_marginEnd="8dp" + android:layout_marginStart="@dimen/small_08" + android:layout_marginTop="@dimen/small_08" + android:layout_marginEnd="@dimen/small_08" android:textAlignment="center" - android:textSize="20sp" + android:textSize="@dimen/text_size_10" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/app/src/main/res/layout/fragment_invites.xml b/app/src/main/res/layout/fragment_invites.xml index d6e5fe0d..46dcd657 100644 --- a/app/src/main/res/layout/fragment_invites.xml +++ b/app/src/main/res/layout/fragment_invites.xml @@ -12,12 +12,12 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:padding="16dp"> + android:padding="@dimen/normal_01"> @@ -35,7 +35,7 @@ android:background="@color/lbryGreen" android:layout_width="match_parent" android:layout_height="match_parent" - android:padding="16dp"> + android:padding="@dimen/normal_01"> @@ -66,8 +66,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="@font/inter" - android:textSize="16sp" - android:layout_marginTop="16dp" + android:textSize="@dimen/text_size_06" + android:layout_marginTop="@dimen/normal_01" android:text="@string/invites_learn_more" android:textColor="@color/white" android:textFontWeight="300" /> diff --git a/app/src/main/res/layout/fragment_library.xml b/app/src/main/res/layout/fragment_library.xml index a5f6eb14..a0720af2 100644 --- a/app/src/main/res/layout/fragment_library.xml +++ b/app/src/main/res/layout/fragment_library.xml @@ -8,13 +8,13 @@ android:id="@+id/library_filter_card" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" - android:layout_marginTop="16dp"> + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" + android:layout_marginTop="@dimen/normal_01"> + android:padding="@dimen/small_12"> @@ -43,15 +43,15 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_marginStart="24dp" + android:layout_marginStart="@dimen/normal_03" android:layout_toEndOf="@id/library_filter_link_purchases" android:fontFamily="@font/inter" android:text="@string/history" - android:textSize="14sp" /> + android:textSize="@dimen/text_size_04" /> @@ -66,7 +66,7 @@ android:text="@string/stats" android:textColor="@color/lbryGreen" android:textFontWeight="300" - android:textSize="12sp" + android:textSize="@dimen/text_size_02" android:visibility="gone" /> @@ -75,14 +75,14 @@ android:layout_below="@id/library_filter_card" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" - android:layout_marginTop="16dp" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" + android:layout_marginTop="@dimen/normal_01" android:visibility="gone"> + android:textSize="@dimen/text_size_13" /> + android:textSize="@dimen/text_size_10" /> + android:textSize="@dimen/text_size_02" /> @@ -139,25 +139,25 @@ android:id="@+id/library_storage_stat_video_bar" android:background="@color/statsVideo" android:layout_weight="0" - android:layout_width="0dp" + android:layout_width="@dimen/small_00" android:layout_height="match_parent" /> @@ -165,13 +165,13 @@ android:id="@+id/library_storage_legend_video" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="4dp" + android:layout_marginTop="@dimen/small_04" android:visibility="gone"> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_02" /> @@ -324,11 +324,11 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" - android:padding="36dp"> + android:padding="@dimen/normal_06"> diff --git a/app/src/main/res/layout/fragment_publish.xml b/app/src/main/res/layout/fragment_publish.xml index 04ba7371..186f3076 100644 --- a/app/src/main/res/layout/fragment_publish.xml +++ b/app/src/main/res/layout/fragment_publish.xml @@ -8,7 +8,7 @@ + android:layout_height="@dimen/large_47"> + android:layout_marginStart="@dimen/negative_small_01.5"> @@ -42,22 +42,22 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" - android:layout_marginTop="4dp" + android:layout_marginTop="@dimen/small_04" android:fontFamily="@font/inter" android:text="@string/record" android:textAllCaps="true" android:textColor="@color/white" - android:textSize="16sp" /> + android:textSize="@dimen/text_size_06" /> + android:layout_height="@dimen/large_08.5"> @@ -82,12 +82,12 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" - android:layout_marginTop="4dp" + android:layout_marginTop="@dimen/small_04" android:fontFamily="@font/inter" android:text="@string/take_photo" android:textAllCaps="true" android:textColor="@color/white" - android:textSize="16sp" /> + android:textSize="@dimen/text_size_06" /> @@ -95,7 +95,7 @@ android:id="@+id/publish_photo_upload_divider" android:background="@color/publishBackground" android:layout_width="match_parent" - android:layout_height="3dp" + android:layout_height="@dimen/small_03" android:layout_below="@id/publish_photo_button" /> @@ -122,12 +122,12 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" - android:layout_marginTop="4dp" + android:layout_marginTop="@dimen/small_04" android:fontFamily="@font/inter" android:text="@string/upload_file" android:textAllCaps="true" android:textColor="@color/white" - android:textSize="16sp" /> + android:textSize="@dimen/text_size_06" /> @@ -139,17 +139,17 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@id/publish_main_actions" - android:layout_marginTop="3dp" /> + android:layout_marginTop="@dimen/small_03" /> + android:layout_width="@dimen/normal_02" + android:layout_height="@dimen/normal_02" /> + android:textSize="@dimen/text_size_04" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_publish_form.xml b/app/src/main/res/layout/fragment_publish_form.xml index a5860792..249517dd 100644 --- a/app/src/main/res/layout/fragment_publish_form.xml +++ b/app/src/main/res/layout/fragment_publish_form.xml @@ -12,14 +12,14 @@ + android:layout_width="@dimen/normal_01" + android:layout_height="@dimen/normal_01" /> + android:textSize="@dimen/text_size_02" /> @@ -81,7 +81,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:padding="16dp"> + android:padding="@dimen/normal_01"> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_04" /> @@ -127,23 +127,23 @@ android:id="@+id/publish_form_video_opt_card" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="16dp" + android:layout_marginTop="@dimen/normal_01" android:visibility="gone"> + android:padding="@dimen/normal_01"> + android:layout_marginBottom="@dimen/small_08"> + android:textSize="@dimen/text_size_06" /> + android:textSize="@dimen/text_size_02" /> + android:layout_marginTop="@dimen/small_08"> + android:textSize="@dimen/text_size_04" /> @@ -203,18 +203,18 @@ + android:layout_marginTop="@dimen/normal_01"> + android:padding="@dimen/normal_01"> @@ -223,27 +223,27 @@ + android:layout_marginTop="@dimen/normal_01"> + android:padding="@dimen/normal_01"> + android:layout_marginBottom="@dimen/small_08"> @@ -252,7 +252,7 @@ android:id="@+id/publish_form_channel_spinner" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="4dp" /> + android:layout_marginTop="@dimen/small_04" /> @@ -260,22 +260,22 @@ + android:layout_marginTop="@dimen/normal_01"> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_04" /> + android:layout_marginStart="@dimen/small_04" + android:layout_marginTop="@dimen/normal_03" /> @@ -329,12 +329,12 @@ + android:layout_marginTop="@dimen/normal_01"> + android:padding="@dimen/normal_01"> @@ -342,9 +342,9 @@ android:layout_centerVertical="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginBottom="8dp" + android:layout_marginBottom="@dimen/small_08" android:fontFamily="@font/inter" - android:textSize="20sp" + android:textSize="@dimen/text_size_10" android:text="@string/content_address" /> @@ -366,12 +366,12 @@ android:fontFamily="@font/inter" android:text="@string/content_address_desc" android:textFontWeight="300" - android:textSize="14sp" /> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_04" /> @@ -420,26 +420,26 @@ android:layout_toEndOf="@id/publish_form_input_layout_deposit" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginTop="30dp" + android:layout_marginStart="@dimen/small_08" + android:layout_marginTop="@dimen/normal_04_02" android:fontFamily="@font/inter" android:text="@string/lbc" android:textAllCaps="true" - android:textSize="10sp" + android:textSize="@dimen/text_size_00" android:textFontWeight="300" /> + android:layout_marginStart="@dimen/small_02" /> + android:textSize="@dimen/text_size_02" /> @@ -471,18 +471,18 @@ + android:layout_marginTop="@dimen/normal_01"> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_04" /> + android:layout_marginTop="@dimen/small_04" /> + android:textSize="@dimen/text_size_04" /> + android:layout_marginTop="@dimen/small_04" /> + android:textSize="@dimen/text_size_04" /> @@ -539,8 +539,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="end" - android:layout_marginTop="24dp" - android:layout_marginEnd="16dp" + android:layout_marginTop="@dimen/normal_03" + android:layout_marginEnd="@dimen/normal_01" android:fontFamily="@font/inter" android:text="@string/show_extra_fields" android:textFontWeight="300" /> @@ -548,9 +548,9 @@ + android:paddingStart="@dimen/normal_01" + android:paddingEnd="@dimen/normal_01" + android:layout_marginTop="@dimen/normal_03"> @@ -567,9 +567,9 @@ + android:padding="@dimen/normal_06"> @@ -68,8 +68,8 @@ android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_alignParentBottom="true" - android:layout_marginEnd="16dp" - android:layout_marginBottom="16dp" + android:layout_marginEnd="@dimen/normal_01" + android:layout_marginBottom="@dimen/normal_01" android:src="@drawable/ic_add" android:visibility="gone" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_rewards.xml b/app/src/main/res/layout/fragment_rewards.xml index 9d9e82ef..86c04223 100644 --- a/app/src/main/res/layout/fragment_rewards.xml +++ b/app/src/main/res/layout/fragment_rewards.xml @@ -7,9 +7,9 @@ + android:paddingTop="@dimen/normal_01" + android:paddingStart="@dimen/normal_01" + android:paddingEnd="@dimen/normal_01"> + android:padding="@dimen/small_12"> + android:textSize="@dimen/text_size_04" /> @@ -55,7 +55,7 @@ android:layout_below="@id/rewards_filter_card" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingTop="16dp" /> + android:paddingTop="@dimen/normal_01" /> @@ -65,7 +65,7 @@ android:background="@color/lbryGreen" android:layout_width="match_parent" android:layout_height="match_parent" - android:padding="16dp"> + android:padding="@dimen/normal_01"> @@ -87,9 +87,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginStart="8dp" + android:layout_marginStart="@dimen/small_08" android:fontFamily="@font/inter" - android:textSize="24sp" + android:textSize="@dimen/text_size_11" android:textColor="@color/white" /> @@ -97,8 +97,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="@font/inter" - android:textSize="16sp" - android:layout_marginTop="16dp" + android:textSize="@dimen/text_size_06" + android:layout_marginTop="@dimen/normal_01" android:text="@string/lbry_credits_allow" android:textColor="@color/white" android:textFontWeight="300" /> @@ -108,8 +108,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="@font/inter" - android:textSize="16sp" - android:layout_marginTop="16dp" + android:textSize="@dimen/text_size_06" + android:layout_marginTop="@dimen/normal_01" android:text="@string/free_credits_worth" android:textColor="@color/white" android:textFontWeight="300" /> @@ -119,8 +119,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="@font/inter" - android:textSize="16sp" - android:layout_marginTop="16dp" + android:textSize="@dimen/text_size_06" + android:layout_marginTop="@dimen/normal_01" android:text="@string/rewards_learn_more" android:textColor="@color/white" android:textFontWeight="300" /> diff --git a/app/src/main/res/layout/fragment_search.xml b/app/src/main/res/layout/fragment_search.xml index 761835c6..f0a9ec2a 100644 --- a/app/src/main/res/layout/fragment_search.xml +++ b/app/src/main/res/layout/fragment_search.xml @@ -8,10 +8,10 @@ @@ -24,14 +24,14 @@ + android:padding="@dimen/normal_05"> @@ -41,7 +41,7 @@ android:layout_height="wrap_content" android:layout_centerInParent="true" android:fontFamily="@font/inter" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" android:text="@string/search_no_query" android:visibility="gone" /> diff --git a/app/src/main/res/layout/fragment_shuffle.xml b/app/src/main/res/layout/fragment_shuffle.xml index 7025333a..c028e86c 100644 --- a/app/src/main/res/layout/fragment_shuffle.xml +++ b/app/src/main/res/layout/fragment_shuffle.xml @@ -22,8 +22,8 @@ app:controller_layout_id="@layout/exo_playback_control_view"/> @@ -33,10 +33,10 @@ android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="8dp" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" - android:layout_marginBottom="8dp" + android:layout_marginTop="@dimen/small_08" + android:layout_marginLeft="@dimen/normal_01" + android:layout_marginRight="@dimen/normal_01" + android:layout_marginBottom="@dimen/small_08" android:layout_alignParentBottom="true"> + android:textSize="@dimen/text_size_04" /> diff --git a/app/src/main/res/layout/fragment_transaction_history.xml b/app/src/main/res/layout/fragment_transaction_history.xml index 0c545eac..1027ff18 100644 --- a/app/src/main/res/layout/fragment_transaction_history.xml +++ b/app/src/main/res/layout/fragment_transaction_history.xml @@ -9,10 +9,10 @@ android:id="@+id/transaction_history_no_transactions" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" android:fontFamily="@font/inter" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:text="@string/no_transactions" android:visibility="gone" /> @@ -23,9 +23,9 @@ \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_verification_email.xml b/app/src/main/res/layout/fragment_verification_email.xml index 27a399f0..289a5912 100644 --- a/app/src/main/res/layout/fragment_verification_email.xml +++ b/app/src/main/res/layout/fragment_verification_email.xml @@ -12,19 +12,19 @@ android:layout_height="wrap_content" android:layout_centerVertical="true" android:visibility="visible" - android:layout_margin="36dp"> + android:layout_margin="@dimen/normal_06"> @@ -56,7 +56,7 @@ + android:layout_marginTop="@dimen/normal_01"> @@ -78,20 +78,20 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_margin="36dp" + android:layout_margin="@dimen/normal_06" android:visibility="gone"> + android:layout_width="@dimen/small_00" + android:layout_height="@dimen/small_00" /> @@ -22,9 +22,9 @@ android:layout_height="wrap_content" android:layout_centerVertical="true" android:visibility="visible" - android:layout_margin="36dp"> + android:layout_margin="@dimen/normal_06"> diff --git a/app/src/main/res/layout/fragment_verification_phone.xml b/app/src/main/res/layout/fragment_verification_phone.xml index 266de2b5..f621fc8f 100644 --- a/app/src/main/res/layout/fragment_verification_phone.xml +++ b/app/src/main/res/layout/fragment_verification_phone.xml @@ -11,19 +11,19 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_margin="36dp"> + android:layout_margin="@dimen/normal_06"> + android:layout_marginTop="@dimen/normal_01"> @@ -84,21 +84,21 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_margin="36dp" + android:layout_margin="@dimen/normal_06" android:visibility="gone"> + android:layout_marginTop="@dimen/normal_01"> diff --git a/app/src/main/res/layout/fragment_verification_wallet.xml b/app/src/main/res/layout/fragment_verification_wallet.xml index 0c6d6eff..fd4b6cc5 100644 --- a/app/src/main/res/layout/fragment_verification_wallet.xml +++ b/app/src/main/res/layout/fragment_verification_wallet.xml @@ -7,7 +7,7 @@ + android:layout_marginTop="@dimen/normal_03" /> @@ -56,12 +56,12 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/verification_wallet_sync_title" - android:layout_marginTop="8dp" + android:layout_marginTop="@dimen/small_08" android:orientation="vertical" android:visibility="visible"> @@ -104,7 +104,7 @@ android:id="@+id/verification_wallet_done_button" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="24dp" + android:layout_marginTop="@dimen/normal_03" android:fontFamily="@font/inter" android:text="@string/done" /> diff --git a/app/src/main/res/layout/fragment_wallet.xml b/app/src/main/res/layout/fragment_wallet.xml index 4b0fff98..f9002781 100644 --- a/app/src/main/res/layout/fragment_wallet.xml +++ b/app/src/main/res/layout/fragment_wallet.xml @@ -11,13 +11,13 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:padding="16dp"> + android:padding="@dimen/normal_01"> + android:layout_marginBottom="@dimen/normal_01" /> @@ -43,7 +43,7 @@ android:background="@color/lbryGreen" android:layout_width="match_parent" android:layout_height="match_parent" - android:padding="16dp"> + android:padding="@dimen/normal_01"> @@ -61,8 +61,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="@font/inter" - android:textSize="16sp" - android:layout_marginTop="16dp" + android:textSize="@dimen/text_size_06" + android:layout_marginTop="@dimen/normal_01" android:text="@string/wallet_account_desc" android:textColor="@color/white" android:textFontWeight="300" /> @@ -71,8 +71,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="@font/inter" - android:textSize="16sp" - android:layout_marginTop="16dp" + android:textSize="@dimen/text_size_06" + android:layout_marginTop="@dimen/normal_01" android:text="@string/wallet_without_account" android:textColor="@color/white" android:textFontWeight="300" /> diff --git a/app/src/main/res/layout/list_item_boosting_balance.xml b/app/src/main/res/layout/list_item_boosting_balance.xml index 73e7e71a..91be4795 100644 --- a/app/src/main/res/layout/list_item_boosting_balance.xml +++ b/app/src/main/res/layout/list_item_boosting_balance.xml @@ -5,17 +5,17 @@ android:id="@+id/relativeLayout" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="8dp" - android:layout_marginBottom="16dp"> + android:layout_marginTop="@dimen/small_08" + android:layout_marginBottom="@dimen/normal_01"> @@ -23,11 +23,11 @@ android:id="@+id/detail_explanation" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginTop="8dp" - android:layout_marginBottom="8dp" + android:layout_marginStart="@dimen/small_08" + android:layout_marginTop="@dimen/small_08" + android:layout_marginBottom="@dimen/small_08" android:textColor="@color/white" - android:textSize="12sp" + android:textSize="@dimen/text_size_02" android:visibility="gone" app:layout_constraintBottom_toTopOf="@+id/detail" app:layout_constraintStart_toStartOf="parent" @@ -35,10 +35,10 @@ @@ -46,7 +46,7 @@ android:id="@+id/lock_button" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginEnd="8dp" + android:layout_marginEnd="@dimen/small_08" android:background="@android:color/transparent" android:src="@drawable/ic_lock" android:visibility="gone" @@ -62,7 +62,7 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" android:textColor="@color/white" - lbry:iconSize="18dp" + lbry:iconSize="@dimen/normal_01_02" lbry:textSize="@dimen/wallet_detail_balance_font_size" /> \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_channel.xml b/app/src/main/res/layout/list_item_channel.xml index bcb32887..81528780 100644 --- a/app/src/main/res/layout/list_item_channel.xml +++ b/app/src/main/res/layout/list_item_channel.xml @@ -3,10 +3,10 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingStart="16dp" - android:paddingEnd="16dp" - android:paddingTop="8dp" - android:paddingBottom="8dp" + android:paddingStart="@dimen/normal_01" + android:paddingEnd="@dimen/normal_01" + android:paddingTop="@dimen/small_08" + android:paddingBottom="@dimen/small_08" android:clickable="true" android:focusable="true" android:orientation="vertical" @@ -16,15 +16,15 @@ android:id="@+id/claim_repost_info" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="4dp" + android:layout_marginBottom="@dimen/small_04" android:orientation="horizontal" android:visibility="gone"> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_02" /> + android:layout_width="@dimen/large_11" + android:layout_height="@dimen/normal_19_02"> + android:layout_width="@dimen/normal_19_02" + android:layout_height="@dimen/normal_19_02" /> + android:layout_width="@dimen/normal_19_02" + android:layout_height="@dimen/normal_19_02"> @@ -85,16 +85,16 @@ android:layout_height="wrap_content" android:orientation="horizontal" android:layout_alignParentEnd="true" - android:layout_marginTop="4dp" - android:layout_marginEnd="4dp" - android:paddingTop="1dp" - android:paddingBottom="1dp" - android:paddingStart="2dp" - android:paddingEnd="2dp" + android:layout_marginTop="@dimen/small_04" + android:layout_marginEnd="@dimen/small_04" + android:paddingTop="@dimen/small_01" + android:paddingBottom="@dimen/small_01" + android:paddingStart="@dimen/small_02" + android:paddingEnd="@dimen/small_02" android:visibility="gone"> @@ -128,7 +128,7 @@ android:layout_height="wrap_content" android:orientation="vertical" android:layout_centerVertical="true" - android:layout_marginStart="16dp" + android:layout_marginStart="@dimen/normal_01" android:layout_toEndOf="@id/claim_media_container"> + android:textSize="@dimen/text_size_02" /> diff --git a/app/src/main/res/layout/list_item_channel_filter.xml b/app/src/main/res/layout/list_item_channel_filter.xml index cc2290ce..172accd6 100644 --- a/app/src/main/res/layout/list_item_channel_filter.xml +++ b/app/src/main/res/layout/list_item_channel_filter.xml @@ -2,16 +2,16 @@ + android:layout_marginEnd="@dimen/small_02"> + android:layout_width="@dimen/normal_17" + android:layout_height="@dimen/normal_17"> @@ -55,6 +55,6 @@ android:layout_below="@id/channel_filter_media_container" android:layout_centerHorizontal="true" android:singleLine="true" - android:textSize="12sp" - android:layout_marginTop="4dp" /> + android:textSize="@dimen/text_size_02" + android:layout_marginTop="@dimen/small_04" /> \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_comment.xml b/app/src/main/res/layout/list_item_comment.xml index ab1584fc..75664d54 100644 --- a/app/src/main/res/layout/list_item_comment.xml +++ b/app/src/main/res/layout/list_item_comment.xml @@ -6,10 +6,10 @@ android:clickable="true" android:focusable="true" android:orientation="vertical" - android:paddingBottom="8dp" - android:paddingStart="16dp" - android:paddingEnd="16dp" - android:paddingTop="8dp"> + android:paddingBottom="@dimen/small_08" + android:paddingStart="@dimen/normal_01" + android:paddingEnd="@dimen/normal_01" + android:paddingTop="@dimen/small_08"> + android:layout_width="@dimen/normal_07" + android:layout_height="@dimen/normal_07"> + android:layout_width="@dimen/normal_07" + android:layout_height="@dimen/normal_07"> + android:layout_width="@dimen/normal_07" + android:layout_height="@dimen/normal_07" /> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_02" /> diff --git a/app/src/main/res/layout/list_item_editors_choice.xml b/app/src/main/res/layout/list_item_editors_choice.xml index 49aad7f6..250603c2 100644 --- a/app/src/main/res/layout/list_item_editors_choice.xml +++ b/app/src/main/res/layout/list_item_editors_choice.xml @@ -9,11 +9,11 @@ android:id="@+id/editors_choice_header_title" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" - android:layout_marginBottom="16dp" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" + android:layout_marginBottom="@dimen/normal_01" android:fontFamily="@font/inter" - android:textSize="24sp" + android:textSize="@dimen/text_size_11" android:textColor="@color/lbryGreen" /> + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" + android:layout_marginBottom="@dimen/normal_01"> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_02" /> diff --git a/app/src/main/res/layout/list_item_featured_search_result.xml b/app/src/main/res/layout/list_item_featured_search_result.xml index a6cffcee..3318b9df 100644 --- a/app/src/main/res/layout/list_item_featured_search_result.xml +++ b/app/src/main/res/layout/list_item_featured_search_result.xml @@ -3,10 +3,10 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingStart="16dp" - android:paddingEnd="16dp" - android:paddingTop="8dp" - android:paddingBottom="8dp" + android:paddingStart="@dimen/normal_01" + android:paddingEnd="@dimen/normal_01" + android:paddingTop="@dimen/small_08" + android:paddingBottom="@dimen/small_08" android:clickable="true" android:focusable="true" android:orientation="vertical" @@ -18,9 +18,9 @@ android:orientation="horizontal" android:visibility="gone"> + android:textSize="@dimen/text_size_02" /> @@ -49,8 +49,8 @@ android:layout_height="wrap_content"> + android:layout_width="@dimen/large_11" + android:layout_height="@dimen/normal_19_02"> + android:layout_width="@dimen/large_11" + android:layout_height="@dimen/normal_19_02" /> @@ -138,7 +138,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:layout_marginStart="16dp" + android:layout_marginStart="@dimen/normal_01" android:layout_toEndOf="@id/claim_media_container"> + android:textSize="@dimen/text_size_02" /> diff --git a/app/src/main/res/layout/list_item_gallery.xml b/app/src/main/res/layout/list_item_gallery.xml index 02577a3e..64df91a5 100644 --- a/app/src/main/res/layout/list_item_gallery.xml +++ b/app/src/main/res/layout/list_item_gallery.xml @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_invitee.xml b/app/src/main/res/layout/list_item_invitee.xml index 57c3f597..4fb3e664 100644 --- a/app/src/main/res/layout/list_item_invitee.xml +++ b/app/src/main/res/layout/list_item_invitee.xml @@ -8,9 +8,9 @@ android:weightSum="10"> + android:padding="@dimen/small_04"> + android:padding="@dimen/small_04"> \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_nav_menu_group.xml b/app/src/main/res/layout/list_item_nav_menu_group.xml index 720d31ce..08f6955c 100644 --- a/app/src/main/res/layout/list_item_nav_menu_group.xml +++ b/app/src/main/res/layout/list_item_nav_menu_group.xml @@ -3,16 +3,16 @@ android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="16dp" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" - android:layout_marginBottom="4dp"> + android:layout_marginTop="@dimen/normal_01" + android:layout_marginStart="@dimen/normal_01" + android:layout_marginEnd="@dimen/normal_01" + android:layout_marginBottom="@dimen/small_04"> \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_nav_menu_item.xml b/app/src/main/res/layout/list_item_nav_menu_item.xml index 06021870..f4df0800 100644 --- a/app/src/main/res/layout/list_item_nav_menu_item.xml +++ b/app/src/main/res/layout/list_item_nav_menu_item.xml @@ -3,29 +3,29 @@ android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingTop="12dp" - android:paddingBottom="12dp" - android:paddingStart="20dp" - android:paddingEnd="20dp" + android:paddingTop="@dimen/small_12" + android:paddingBottom="@dimen/small_12" + android:paddingStart="@dimen/normal_02" + android:paddingEnd="@dimen/normal_02" android:clickable="true" android:focusable="true" android:background="@drawable/bg_selected_nav_item" android:foreground="?attr/selectableItemBackground"> + android:textSize="@dimen/small_14" /> + android:textSize="@dimen/text_size_04" /> \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_notification.xml b/app/src/main/res/layout/list_item_notification.xml index 3c478664..947f0cad 100644 --- a/app/src/main/res/layout/list_item_notification.xml +++ b/app/src/main/res/layout/list_item_notification.xml @@ -6,39 +6,39 @@ android:clickable="true" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginEnd="8dp" - android:layout_marginBottom="8dp"> + android:layout_marginStart="@dimen/small_08" + android:layout_marginEnd="@dimen/small_08" + android:layout_marginBottom="@dimen/small_08"> + android:layout_width="@dimen/normal_09" + android:layout_height="@dimen/normal_09" + android:textSize="@dimen/normal_03" /> @@ -48,28 +48,28 @@ android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" - android:padding="16dp"> + android:padding="@dimen/normal_01"> + android:textSize="@dimen/text_size_03" /> + android:textSize="@dimen/text_size_04" /> + android:textSize="@dimen/text_size_01" /> \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_reward.xml b/app/src/main/res/layout/list_item_reward.xml index 8e4a5b35..0d466093 100644 --- a/app/src/main/res/layout/list_item_reward.xml +++ b/app/src/main/res/layout/list_item_reward.xml @@ -6,23 +6,23 @@ android:foreground="?attr/selectableItemBackground" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="16dp"> + android:layout_marginBottom="@dimen/normal_01"> @@ -48,15 +48,15 @@ android:fontFamily="@font/inter" android:singleLine="true" android:textColor="@color/lbryGreen" - android:textSize="16sp" + android:textSize="@dimen/text_size_06" android:textFontWeight="300" /> @@ -108,7 +108,7 @@ android:layout_gravity="center_horizontal" android:text="@string/up_to" android:fontFamily="@font/inter" - android:textSize="10sp" + android:textSize="@dimen/text_size_00" android:textFontWeight="300" android:visibility="gone" /> + android:textSize="@dimen/text_size_11" /> diff --git a/app/src/main/res/layout/list_item_startupstage.xml b/app/src/main/res/layout/list_item_startupstage.xml index c168ac6f..8950fa4b 100644 --- a/app/src/main/res/layout/list_item_startupstage.xml +++ b/app/src/main/res/layout/list_item_startupstage.xml @@ -6,8 +6,8 @@ xmlns:tools="http://schemas.android.com/tools"> @@ -15,12 +15,12 @@ android:id="@+id/startup_stage_text" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="8dp" + android:layout_marginStart="@dimen/small_08" android:layout_gravity="center_vertical" android:fontFamily="@font/inter" tools:text="@string/installation_id_loaded" android:textColor="@color/white" android:textFontWeight="300" - android:textSize="14sp" /> + android:textSize="@dimen/text_size_04" /> \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_stream.xml b/app/src/main/res/layout/list_item_stream.xml index 50a45390..3f60c27c 100644 --- a/app/src/main/res/layout/list_item_stream.xml +++ b/app/src/main/res/layout/list_item_stream.xml @@ -4,10 +4,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingStart="16dp" - android:paddingEnd="16dp" - android:paddingTop="8dp" - android:paddingBottom="8dp" + android:paddingStart="@dimen/normal_01" + android:paddingEnd="@dimen/normal_01" + android:paddingTop="@dimen/small_08" + android:paddingBottom="@dimen/small_08" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" @@ -16,15 +16,15 @@ android:id="@+id/claim_repost_info" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="4dp" + android:layout_marginBottom="@dimen/small_04" android:orientation="horizontal" android:visibility="gone"> + android:textSize="@dimen/text_size_02" /> + android:textSize="@dimen/text_size_02" /> + android:layout_width="@dimen/large_11" + android:layout_height="@dimen/normal_19_02"> + android:layout_width="@dimen/large_11" + android:layout_height="@dimen/normal_19_02" /> @@ -141,8 +141,8 @@ android:id="@+id/claim_thumbnail_placeholder" android:background="@color/lighterGrey" android:orientation="vertical" - android:layout_width="160dp" - android:layout_height="90dp" + android:layout_width="@dimen/large_11" + android:layout_height="@dimen/normal_19_02" android:visibility="gone" /> @@ -150,22 +150,22 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:layout_marginStart="16dp" + android:layout_marginStart="@dimen/normal_01" android:layout_toEndOf="@id/claim_media_container"> + android:textSize="@dimen/text_size_02" /> @@ -199,7 +199,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="@font/inter" - android:textSize="11sp" + android:textSize="@dimen/text_size_01" android:textFontWeight="300" /> @@ -218,28 +218,28 @@ android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:fontFamily="@font/inter" - android:textSize="11sp" + android:textSize="@dimen/text_size_01" android:textFontWeight="300" /> diff --git a/app/src/main/res/layout/list_item_suggested_channel.xml b/app/src/main/res/layout/list_item_suggested_channel.xml index 49ebf048..d7c345cf 100644 --- a/app/src/main/res/layout/list_item_suggested_channel.xml +++ b/app/src/main/res/layout/list_item_suggested_channel.xml @@ -3,19 +3,19 @@ android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_margin="2dp" + android:layout_margin="@dimen/small_02" android:foreground="?attr/selectableItemBackground" android:background="@drawable/bg_selected_item" android:clickable="true" android:focusable="true" - android:paddingTop="12dp" - android:paddingBottom="12dp" - android:paddingStart="8dp" - android:paddingEnd="8dp"> + android:paddingTop="@dimen/small_12" + android:paddingBottom="@dimen/small_12" + android:paddingStart="@dimen/small_08" + android:paddingEnd="@dimen/small_08"> + android:textSize="@dimen/text_size_03" /> + android:textSize="@dimen/text_size_02" + android:paddingTop="@dimen/small_02" + android:paddingBottom="@dimen/small_03" + android:paddingStart="@dimen/small_08" + android:paddingEnd="@dimen/small_08" /> \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_tag.xml b/app/src/main/res/layout/list_item_tag.xml index f40fdc07..62410551 100644 --- a/app/src/main/res/layout/list_item_tag.xml +++ b/app/src/main/res/layout/list_item_tag.xml @@ -5,20 +5,20 @@ android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginBottom="6dp" - android:layout_marginEnd="6dp" + android:layout_marginBottom="@dimen/small_06" + android:layout_marginEnd="@dimen/small_06" android:orientation="horizontal" - android:paddingTop="4dp" - android:paddingBottom="4dp" - android:paddingStart="8dp" - android:paddingEnd="12dp" + android:paddingTop="@dimen/small_04" + android:paddingBottom="@dimen/small_04" + android:paddingStart="@dimen/small_08" + android:paddingEnd="@dimen/small_12" android:foreground="?attr/selectableItemBackground"> \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_transaction.xml b/app/src/main/res/layout/list_item_transaction.xml index 7f66d2e5..2e5404af 100644 --- a/app/src/main/res/layout/list_item_transaction.xml +++ b/app/src/main/res/layout/list_item_transaction.xml @@ -4,7 +4,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:padding="16dp" + android:padding="@dimen/normal_01" android:clickable="true" android:focusable="true" android:background="?attr/selectableItemBackground"> @@ -16,24 +16,24 @@ @@ -51,26 +51,26 @@ android:clickable="true" android:background="?attr/selectableItemBackground" android:layout_weight="6" - android:layout_width="0dp" + android:layout_width="@dimen/small_00" android:layout_height="wrap_content" android:ellipsize="end" android:fontFamily="@font/inter" android:singleLine="true" android:textColor="@color/lbryGreen" - android:textSize="14sp" + android:textSize="@dimen/text_size_04" android:textFontWeight="300" /> @@ -84,13 +84,13 @@ android:clickable="true" android:background="?attr/selectableItemBackground" android:layout_weight="6" - android:layout_width="0dp" + android:layout_width="@dimen/small_00" android:layout_height="wrap_content" android:ellipsize="end" android:fontFamily="@font/inter" android:singleLine="true" android:textColor="@color/lbryGreen" - android:textSize="12sp" + android:textSize="@dimen/text_size_02" android:textFontWeight="300" android:textAlignment="viewStart" /> @@ -98,27 +98,27 @@ android:id="@+id/transaction_date" android:gravity="end" android:layout_weight="4" - android:layout_width="0dp" + android:layout_width="@dimen/small_00" android:layout_height="wrap_content" android:ellipsize="end" android:fontFamily="@font/inter" android:singleLine="true" android:textColor="@color/lightGrey" - android:textSize="12sp" + android:textSize="@dimen/text_size_02" android:textFontWeight="300" android:visibility="gone" /> diff --git a/app/src/main/res/layout/list_item_url_suggestion.xml b/app/src/main/res/layout/list_item_url_suggestion.xml index 2be0703e..5ec682af 100644 --- a/app/src/main/res/layout/list_item_url_suggestion.xml +++ b/app/src/main/res/layout/list_item_url_suggestion.xml @@ -2,25 +2,25 @@ + android:textSize="@dimen/text_size_04" /> diff --git a/app/src/main/res/layout/nav_header_main.xml b/app/src/main/res/layout/nav_header_main.xml index c30ccbf5..15f1da68 100644 --- a/app/src/main/res/layout/nav_header_main.xml +++ b/app/src/main/res/layout/nav_header_main.xml @@ -21,8 +21,8 @@ android:layout_height="wrap_content" android:layout_gravity="bottom" android:background="@color/lbryGreen" - android:paddingTop="16dp" - android:paddingBottom="16dp"> + android:paddingTop="@dimen/normal_01" + android:paddingBottom="@dimen/normal_01"> @@ -45,8 +45,8 @@ + android:paddingTop="@dimen/normal_01" + android:paddingBottom="@dimen/normal_01"> @@ -67,5 +67,5 @@ android:id="@+id/sign_in_header_divider" android:background="@color/lbryGreen" android:layout_width="match_parent" - android:layout_height="0.5dp" /> + android:layout_height="@dimen/small_00.5" /> diff --git a/app/src/main/res/layout/popup_webview.xml b/app/src/main/res/layout/popup_webview.xml index 4384b454..37c96a58 100644 --- a/app/src/main/res/layout/popup_webview.xml +++ b/app/src/main/res/layout/popup_webview.xml @@ -1,7 +1,7 @@ + android:layout_width="@dimen/large_57" + android:layout_height="@dimen/large_92"> + android:padding="@dimen/small_12"> \ No newline at end of file diff --git a/app/src/main/res/layout/spinner_item_generic.xml b/app/src/main/res/layout/spinner_item_generic.xml index fc84a1ee..8951a2d1 100644 --- a/app/src/main/res/layout/spinner_item_generic.xml +++ b/app/src/main/res/layout/spinner_item_generic.xml @@ -3,7 +3,7 @@ android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" - android:padding="12dp"> + android:padding="@dimen/small_12"> \ No newline at end of file diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index e7aef495..16b6c8eb 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -8,4 +8,176 @@ 14sp 12sp 12sp + + + 10sp + 11sp + 12sp + 13sp + 14sp + 15sp + 16sp + 17sp + 18sp + 19sp + 20sp + 24sp + 28sp + 30sp + 32sp + 48sp + 56sp + + + 0dp + 0.5dp + 1dp + 2dp + 3dp + 4dp + 5dp + 6dp + 7dp + 8dp + 9dp + 10dp + 11dp + 12dp + 13dp + 14dp + 15dp + + 16dp + 17dp + 18dp + 19dp + + 20dp + 21dp + 22dp + 23dp + + 24dp + + 28dp + 29dp + 30dp + 31dp + + 32dp + 36dp + 40dp + 44dp + + 48dp + 49dp + 50dp + 51dp + + 52dp + 56dp + 60dp + 64dp + 68dp + 72dp + 76dp + 80dp + 84dp + + 88dp + 89dp + 90dp + 91dp + + 92dp + 96dp + 100dp + 104dp + + 108dp + 109dp + 110dp + 111dp + + 112dp + 116dp + + 120dp + 124dp + 128dp + 132dp + 136dp + 140dp + 144dp + 148dp + 148.5dp + + 152dp + 156dp + 160dp + + 164dp + 168dp + 172dp + 176dp + 180dp + 184dp + 188dp + 192dp + 196dp + 200dp + 204dp + 208dp + 212dp + 216dp + 220dp + 224dp + 228dp + 232dp + 236dp + + 240dp + 241dp + 242dp + 243dp + + 244dp + 245dp + 246dp + 247dp + + 248dp + 252dp + 256dp + 260dp + + 260dp + 264dp + 268dp + 272dp + 276dp + 280dp + 284dp + 288dp + 292dp + 296dp + 300dp + + 304dp + 308dp + 312dp + 316dp + 320dp + 324dp + 328dp + 332dp + 336dp + 340dp + + 480dp + + -1.5dp + -1dp + -36dp + \ No newline at end of file