From 7ae7827d491473b326dcf3f3c297803816f798c0 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sun, 2 Feb 2020 21:50:42 +0800 Subject: Minor layout tweaks. --- .../infinityforreddit/Activity/MainActivity.java | 40 +-- .../res/drawable-night/ic_account_circle_24dp.xml | 9 + .../ic_arrow_downward_black_24dp.xml | 9 + .../drawable-night/ic_arrow_upward_black_24dp.xml | 9 + app/src/main/res/drawable-night/ic_inbox_24dp.xml | 9 + .../drawable-night/ic_outline_bookmarks_24dp.xml | 9 + .../res/drawable-night/ic_outline_lock_24dp.xml | 9 + .../main/res/drawable-night/ic_settings_24dp.xml | 9 + .../res/drawable-night/ic_star_border_24dp.xml | 9 + .../res/drawable/ic_arrow_downward_black_24dp.xml | 2 +- .../res/drawable/ic_outline_bookmarks_24dp.xml | 9 + .../res/drawable/ic_outline_bookmarks_24px.xml | 9 - app/src/main/res/drawable/ic_outline_lock.xml | 9 - app/src/main/res/drawable/ic_outline_lock_24dp.xml | 9 + .../main/res/drawable/ic_outline_settings_24px.xml | 9 - .../res/drawable/ic_outline_star_border_24px.xml | 9 - app/src/main/res/drawable/ic_settings_24dp.xml | 9 + app/src/main/res/drawable/ic_star_border_24dp.xml | 9 + app/src/main/res/layout/activity_main.xml | 319 +++++++-------------- app/src/main/res/layout/app_bar_main.xml | 4 - app/src/main/res/layout/item_post.xml | 2 +- app/src/main/res/layout/item_post_compact.xml | 2 +- app/src/main/res/layout/item_post_detail.xml | 2 +- 23 files changed, 232 insertions(+), 283 deletions(-) create mode 100644 app/src/main/res/drawable-night/ic_account_circle_24dp.xml create mode 100644 app/src/main/res/drawable-night/ic_arrow_downward_black_24dp.xml create mode 100644 app/src/main/res/drawable-night/ic_arrow_upward_black_24dp.xml create mode 100644 app/src/main/res/drawable-night/ic_inbox_24dp.xml create mode 100644 app/src/main/res/drawable-night/ic_outline_bookmarks_24dp.xml create mode 100644 app/src/main/res/drawable-night/ic_outline_lock_24dp.xml create mode 100644 app/src/main/res/drawable-night/ic_settings_24dp.xml create mode 100644 app/src/main/res/drawable-night/ic_star_border_24dp.xml create mode 100644 app/src/main/res/drawable/ic_outline_bookmarks_24dp.xml delete mode 100644 app/src/main/res/drawable/ic_outline_bookmarks_24px.xml delete mode 100644 app/src/main/res/drawable/ic_outline_lock.xml create mode 100644 app/src/main/res/drawable/ic_outline_lock_24dp.xml delete mode 100644 app/src/main/res/drawable/ic_outline_settings_24px.xml delete mode 100644 app/src/main/res/drawable/ic_outline_star_border_24px.xml create mode 100644 app/src/main/res/drawable/ic_settings_24dp.xml create mode 100644 app/src/main/res/drawable/ic_star_border_24dp.xml (limited to 'app/src/main') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/MainActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/MainActivity.java index 793c90a9..ab645240 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/MainActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/MainActivity.java @@ -139,30 +139,30 @@ public class MainActivity extends BaseActivity implements SortTypeSelectionCallb LinearLayout allDrawerItemsLinearLayout; @BindView(R.id.account_label_main_activity) TextView accountLabelTextView; - @BindView(R.id.profile_linear_layout_main_activity) - LinearLayout profileLinearLayout; - @BindView(R.id.subscriptions_linear_layout_main_activity) - LinearLayout subscriptionLinearLayout; - @BindView(R.id.multi_reddits_linear_layout_main_activity) - LinearLayout multiRedditsLinearLayout; - @BindView(R.id.inbox_linear_layout_main_activity) - LinearLayout inboxLinearLayout; + @BindView(R.id.profile_text_view_main_activity) + TextView profileLinearLayout; + @BindView(R.id.subscriptions_text_view_main_activity) + TextView subscriptionLinearLayout; + @BindView(R.id.multi_reddits_text_view_main_activity) + TextView multiRedditsLinearLayout; + @BindView(R.id.inbox_text_view_main_activity) + TextView inboxLinearLayout; @BindView(R.id.post_label_main_activity) TextView postLabelTextView; - @BindView(R.id.upvoted_linear_layout_main_activity) - LinearLayout upvotedLinearLayout; - @BindView(R.id.downvoted_linear_layout_main_activity) - LinearLayout downvotedLinearLayout; - @BindView(R.id.hidden_linear_layout_main_activity) - LinearLayout hiddenLinearLayout; - @BindView(R.id.saved_linear_layout_main_activity) - LinearLayout savedLinearLayout; - @BindView(R.id.gilded_linear_layout_main_activity) - LinearLayout gildedLinearLayout; + @BindView(R.id.upvoted_text_view_main_activity) + TextView upvotedLinearLayout; + @BindView(R.id.downvoted_text_view_main_activity) + TextView downvotedLinearLayout; + @BindView(R.id.hidden_text_view_main_activity) + TextView hiddenLinearLayout; + @BindView(R.id.saved_text_view_main_activity) + TextView savedLinearLayout; + @BindView(R.id.gilded_text_view_main_activity) + TextView gildedLinearLayout; @BindView(R.id.divider_main_activity) View divider; - @BindView(R.id.settings_linear_layout_main_activity) - LinearLayout settingsLinearLayout; + @BindView(R.id.settings_text_view_main_activity) + TextView settingsLinearLayout; @BindView(R.id.account_recycler_view_main_activity) RecyclerView accountRecyclerView; @BindView(R.id.tab_layout_main_activity) diff --git a/app/src/main/res/drawable-night/ic_account_circle_24dp.xml b/app/src/main/res/drawable-night/ic_account_circle_24dp.xml new file mode 100644 index 00000000..cad8c2bc --- /dev/null +++ b/app/src/main/res/drawable-night/ic_account_circle_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-night/ic_arrow_downward_black_24dp.xml b/app/src/main/res/drawable-night/ic_arrow_downward_black_24dp.xml new file mode 100644 index 00000000..90611a60 --- /dev/null +++ b/app/src/main/res/drawable-night/ic_arrow_downward_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-night/ic_arrow_upward_black_24dp.xml b/app/src/main/res/drawable-night/ic_arrow_upward_black_24dp.xml new file mode 100644 index 00000000..b7323a1e --- /dev/null +++ b/app/src/main/res/drawable-night/ic_arrow_upward_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-night/ic_inbox_24dp.xml b/app/src/main/res/drawable-night/ic_inbox_24dp.xml new file mode 100644 index 00000000..cc3f203c --- /dev/null +++ b/app/src/main/res/drawable-night/ic_inbox_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-night/ic_outline_bookmarks_24dp.xml b/app/src/main/res/drawable-night/ic_outline_bookmarks_24dp.xml new file mode 100644 index 00000000..dc287190 --- /dev/null +++ b/app/src/main/res/drawable-night/ic_outline_bookmarks_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-night/ic_outline_lock_24dp.xml b/app/src/main/res/drawable-night/ic_outline_lock_24dp.xml new file mode 100644 index 00000000..d4968533 --- /dev/null +++ b/app/src/main/res/drawable-night/ic_outline_lock_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-night/ic_settings_24dp.xml b/app/src/main/res/drawable-night/ic_settings_24dp.xml new file mode 100644 index 00000000..364c03b7 --- /dev/null +++ b/app/src/main/res/drawable-night/ic_settings_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-night/ic_star_border_24dp.xml b/app/src/main/res/drawable-night/ic_star_border_24dp.xml new file mode 100644 index 00000000..7415cbb4 --- /dev/null +++ b/app/src/main/res/drawable-night/ic_star_border_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_arrow_downward_black_24dp.xml b/app/src/main/res/drawable/ic_arrow_downward_black_24dp.xml index dd7522fd..b6967461 100644 --- a/app/src/main/res/drawable/ic_arrow_downward_black_24dp.xml +++ b/app/src/main/res/drawable/ic_arrow_downward_black_24dp.xml @@ -5,5 +5,5 @@ android:viewportHeight="24"> + android:fillColor="#FF000000"/> diff --git a/app/src/main/res/drawable/ic_outline_bookmarks_24dp.xml b/app/src/main/res/drawable/ic_outline_bookmarks_24dp.xml new file mode 100644 index 00000000..33ceac3f --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_bookmarks_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_outline_bookmarks_24px.xml b/app/src/main/res/drawable/ic_outline_bookmarks_24px.xml deleted file mode 100644 index 33ceac3f..00000000 --- a/app/src/main/res/drawable/ic_outline_bookmarks_24px.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_outline_lock.xml b/app/src/main/res/drawable/ic_outline_lock.xml deleted file mode 100644 index f4299e6c..00000000 --- a/app/src/main/res/drawable/ic_outline_lock.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_outline_lock_24dp.xml b/app/src/main/res/drawable/ic_outline_lock_24dp.xml new file mode 100644 index 00000000..f4299e6c --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_lock_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_outline_settings_24px.xml b/app/src/main/res/drawable/ic_outline_settings_24px.xml deleted file mode 100644 index e1fb6a23..00000000 --- a/app/src/main/res/drawable/ic_outline_settings_24px.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_outline_star_border_24px.xml b/app/src/main/res/drawable/ic_outline_star_border_24px.xml deleted file mode 100644 index 0186669d..00000000 --- a/app/src/main/res/drawable/ic_outline_star_border_24px.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_settings_24dp.xml b/app/src/main/res/drawable/ic_settings_24dp.xml new file mode 100644 index 00000000..e1fb6a23 --- /dev/null +++ b/app/src/main/res/drawable/ic_settings_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_star_border_24dp.xml b/app/src/main/res/drawable/ic_star_border_24dp.xml new file mode 100644 index 00000000..0186669d --- /dev/null +++ b/app/src/main/res/drawable/ic_star_border_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index ba6cc170..ca33eadf 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -50,112 +50,65 @@ android:text="@string/label_account" android:textSize="?attr/font_default" /> - - - - - + android:focusable="true" /> - - - + android:focusable="true" /> - - - - - - - - - + android:focusable="true" /> - - - - - - - - - - - + android:focusable="true" /> - - - - - - - + android:focusable="true" /> - - - - - + android:focusable="true" /> - - - + android:focusable="true" /> - - - - - - - - - + android:focusable="true" /> - - - - - - - - - - - + android:focusable="true" /> - - - - - - - + android:focusable="true" /> diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml index e81f6f7b..34b44e02 100644 --- a/app/src/main/res/layout/app_bar_main.xml +++ b/app/src/main/res/layout/app_bar_main.xml @@ -80,7 +80,6 @@ android:paddingTop="8dp" android:paddingBottom="8dp" android:src="@drawable/ic_subscritptions_bottom_app_bar_24dp" - android:textColor="@color/primaryTextColor" android:background="?attr/selectableItemBackgroundBorderless" /> diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml index 787a1fe9..80fee855 100644 --- a/app/src/main/res/layout/item_post.xml +++ b/app/src/main/res/layout/item_post.xml @@ -201,7 +201,7 @@ android:id="@+id/locked_image_view_item_post" android:layout_width="24dp" android:layout_height="24dp" - android:src="@drawable/ic_outline_lock" + android:src="@drawable/ic_outline_lock_24dp" android:tint="@color/lockedIconTint" android:visibility="gone" /> diff --git a/app/src/main/res/layout/item_post_compact.xml b/app/src/main/res/layout/item_post_compact.xml index 7bcb8072..7123c4db 100644 --- a/app/src/main/res/layout/item_post_compact.xml +++ b/app/src/main/res/layout/item_post_compact.xml @@ -188,7 +188,7 @@ android:id="@+id/locked_image_view_item_post_compact" android:layout_width="24dp" android:layout_height="24dp" - android:src="@drawable/ic_outline_lock" + android:src="@drawable/ic_outline_lock_24dp" android:tint="@color/lockedIconTint" android:visibility="gone" /> diff --git a/app/src/main/res/layout/item_post_detail.xml b/app/src/main/res/layout/item_post_detail.xml index 1ccdf2a1..54d48283 100644 --- a/app/src/main/res/layout/item_post_detail.xml +++ b/app/src/main/res/layout/item_post_detail.xml @@ -183,7 +183,7 @@ android:id="@+id/locked_image_view_item_post_detail" android:layout_width="20dp" android:layout_height="20dp" - android:src="@drawable/ic_outline_lock" + android:src="@drawable/ic_outline_lock_24dp" android:tint="@color/lockedIconTint" android:visibility="gone" /> -- cgit v1.2.3