diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-02-02 13:50:42 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-02-02 13:50:42 +0000 |
commit | 7ae7827d491473b326dcf3f3c297803816f798c0 (patch) | |
tree | 12acb9293e74ff694c7b9dd039b21ed70da9051a /app/src/main/res/layout | |
parent | bdf5f07883fad7444207cc49537cd7deba0c9b84 (diff) | |
download | infinity-for-reddit-7ae7827d491473b326dcf3f3c297803816f798c0.tar infinity-for-reddit-7ae7827d491473b326dcf3f3c297803816f798c0.tar.gz infinity-for-reddit-7ae7827d491473b326dcf3f3c297803816f798c0.tar.bz2 infinity-for-reddit-7ae7827d491473b326dcf3f3c297803816f798c0.tar.lz infinity-for-reddit-7ae7827d491473b326dcf3f3c297803816f798c0.tar.xz infinity-for-reddit-7ae7827d491473b326dcf3f3c297803816f798c0.tar.zst infinity-for-reddit-7ae7827d491473b326dcf3f3c297803816f798c0.zip |
Minor layout tweaks.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_main.xml | 319 | ||||
-rw-r--r-- | app/src/main/res/layout/app_bar_main.xml | 4 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post_compact.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post_detail.xml | 2 |
5 files changed, 103 insertions, 226 deletions
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" /> - <LinearLayout - android:id="@+id/profile_linear_layout_main_activity" + <TextView + android:id="@+id/profile_text_view_main_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_vertical" + android:padding="16dp" + android:drawableStart="@drawable/ic_account_circle_24dp" + android:drawablePadding="32dp" + android:text="@string/profile" + android:textColor="@color/primaryTextColor" + android:textSize="?attr/font_default" android:background="?attr/selectableItemBackground" android:clickable="true" - android:focusable="true" - android:padding="16dp"> - - <ImageView - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_gravity="center_vertical" - android:layout_marginEnd="32dp" - android:src="@drawable/ic_account_circle_24dp" - android:tint="@color/primaryTextColor"/> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:text="@string/profile" - android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_default" /> + android:focusable="true" /> - </LinearLayout> - - <LinearLayout - android:id="@+id/subscriptions_linear_layout_main_activity" + <TextView + android:id="@+id/subscriptions_text_view_main_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_vertical" + android:padding="16dp" + android:drawableStart="@drawable/ic_subscritptions_bottom_app_bar_24dp" + android:drawablePadding="32dp" + android:text="@string/subscriptions" + android:textColor="@color/primaryTextColor" + android:textSize="?attr/font_default" android:background="?attr/selectableItemBackground" android:clickable="true" - android:focusable="true" - android:padding="16dp"> + android:focusable="true" /> - <ImageView - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_gravity="center_vertical" - android:layout_marginEnd="32dp" - android:src="@drawable/ic_subscritptions_24dp" - android:tint="@color/primaryTextColor"/> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:text="@string/subscriptions" - android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_default" /> - - </LinearLayout> - - <LinearLayout - android:id="@+id/multi_reddits_linear_layout_main_activity" + <TextView + android:id="@+id/multi_reddits_text_view_main_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_vertical" + android:padding="16dp" + android:drawableStart="@drawable/ic_multi_reddit_24dp" + android:drawablePadding="32dp" + android:text="@string/multi_reddit" + android:textColor="@color/primaryTextColor" + android:textSize="?attr/font_default" android:background="?attr/selectableItemBackground" android:clickable="true" - android:focusable="true" - android:padding="16dp"> - - <ImageView - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_gravity="center_vertical" - android:layout_marginEnd="32dp" - android:src="@drawable/ic_multi_reddit_24dp" /> + android:focusable="true" /> - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:text="@string/multi_reddit" - android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_default" /> - - </LinearLayout> - - <LinearLayout - android:id="@+id/inbox_linear_layout_main_activity" + <TextView + android:id="@+id/inbox_text_view_main_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_vertical" + android:padding="16dp" + android:drawableStart="@drawable/ic_inbox_24dp" + android:drawablePadding="32dp" + android:text="@string/inbox" + android:textColor="@color/primaryTextColor" + android:textSize="?attr/font_default" android:background="?attr/selectableItemBackground" android:clickable="true" - android:focusable="true" - android:padding="16dp"> - - <ImageView - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_gravity="center_vertical" - android:layout_marginEnd="32dp" - android:src="@drawable/ic_inbox_24dp" - android:tint="@color/primaryTextColor"/> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:text="@string/inbox" - android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_default" /> - - </LinearLayout> + android:focusable="true" /> <TextView android:id="@+id/post_label_main_activity" @@ -165,140 +118,80 @@ android:text="@string/label_post" android:textSize="?attr/font_default" /> - <LinearLayout - android:id="@+id/upvoted_linear_layout_main_activity" + <TextView + android:id="@+id/upvoted_text_view_main_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_vertical" + android:padding="16dp" + android:drawableStart="@drawable/ic_arrow_upward_black_24dp" + android:drawablePadding="32dp" + android:text="@string/upvoted" + android:textColor="@color/primaryTextColor" + android:textSize="?attr/font_default" android:background="?attr/selectableItemBackground" android:clickable="true" - android:focusable="true" - android:padding="16dp"> - - <ImageView - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_gravity="center_vertical" - android:layout_marginEnd="32dp" - android:src="@drawable/ic_arrow_upward_black_24dp" - android:tint="@color/primaryTextColor"/> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:text="@string/upvoted" - android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_default" /> - - </LinearLayout> + android:focusable="true" /> - <LinearLayout - android:id="@+id/downvoted_linear_layout_main_activity" + <TextView + android:id="@+id/downvoted_text_view_main_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_vertical" + android:padding="16dp" + android:drawableStart="@drawable/ic_arrow_downward_black_24dp" + android:drawablePadding="32dp" + android:text="@string/downvoted" + android:textColor="@color/primaryTextColor" + android:textSize="?attr/font_default" android:background="?attr/selectableItemBackground" android:clickable="true" - android:focusable="true" - android:padding="16dp"> - - <ImageView - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_gravity="center_vertical" - android:layout_marginEnd="32dp" - android:src="@drawable/ic_arrow_downward_black_24dp" - android:tint="@color/primaryTextColor"/> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:text="@string/downvoted" - android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_default" /> + android:focusable="true" /> - </LinearLayout> - - <LinearLayout - android:id="@+id/hidden_linear_layout_main_activity" + <TextView + android:id="@+id/hidden_text_view_main_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_vertical" + android:padding="16dp" + android:drawableStart="@drawable/ic_outline_lock_24dp" + android:drawablePadding="32dp" + android:text="@string/hidden" + android:textColor="@color/primaryTextColor" + android:textSize="?attr/font_default" android:background="?attr/selectableItemBackground" android:clickable="true" - android:focusable="true" - android:padding="16dp"> + android:focusable="true" /> - <ImageView - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_gravity="center_vertical" - android:layout_marginEnd="32dp" - android:src="@drawable/ic_outline_lock" - android:tint="@color/primaryTextColor"/> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:text="@string/hidden" - android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_default" /> - - </LinearLayout> - - <LinearLayout - android:id="@+id/saved_linear_layout_main_activity" + <TextView + android:id="@+id/saved_text_view_main_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_vertical" + android:padding="16dp" + android:drawableStart="@drawable/ic_outline_bookmarks_24dp" + android:drawablePadding="32dp" + android:text="@string/saved" + android:textColor="@color/primaryTextColor" + android:textSize="?attr/font_default" android:background="?attr/selectableItemBackground" android:clickable="true" - android:focusable="true" - android:padding="16dp"> - - <ImageView - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_gravity="center_vertical" - android:layout_marginEnd="32dp" - android:src="@drawable/ic_outline_bookmarks_24px" - android:tint="@color/primaryTextColor"/> + android:focusable="true" /> - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:text="@string/saved" - android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_default" /> - - </LinearLayout> - - <LinearLayout - android:id="@+id/gilded_linear_layout_main_activity" + <TextView + android:id="@+id/gilded_text_view_main_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_vertical" + android:padding="16dp" + android:drawableStart="@drawable/ic_star_border_24dp" + android:drawablePadding="32dp" + android:text="@string/gilded" + android:textColor="@color/primaryTextColor" + android:textSize="?attr/font_default" android:background="?attr/selectableItemBackground" android:clickable="true" - android:focusable="true" - android:padding="16dp"> - - <ImageView - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_gravity="center_vertical" - android:layout_marginEnd="32dp" - android:src="@drawable/ic_outline_star_border_24px" - android:tint="@color/primaryTextColor"/> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:text="@string/gilded" - android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_default" /> - - </LinearLayout> + android:focusable="true" /> <View android:id="@+id/divider_main_activity" @@ -306,32 +199,20 @@ android:layout_height="1dp" android:background="@color/dividerColor" /> - <LinearLayout - android:id="@+id/settings_linear_layout_main_activity" + <TextView + android:id="@+id/settings_text_view_main_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_vertical" + android:padding="16dp" + android:drawableStart="@drawable/ic_settings_24dp" + android:drawablePadding="32dp" + android:text="@string/settings" + android:textColor="@color/primaryTextColor" + android:textSize="?attr/font_default" android:background="?attr/selectableItemBackground" android:clickable="true" - android:focusable="true" - android:padding="16dp"> - - <ImageView - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_gravity="center_vertical" - android:layout_marginEnd="32dp" - android:src="@drawable/ic_outline_settings_24px" - android:tint="@color/primaryTextColor"/> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:text="@string/settings" - android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_default" /> - - </LinearLayout> + android:focusable="true" /> </LinearLayout> 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" /> <ImageView @@ -92,7 +91,6 @@ android:paddingTop="8dp" android:paddingBottom="8dp" android:src="@drawable/ic_multi_reddit_24dp" - android:textColor="@color/primaryTextColor" android:background="?attr/selectableItemBackgroundBorderless" /> <TextView @@ -110,7 +108,6 @@ android:paddingTop="8dp" android:paddingBottom="8dp" android:src="@drawable/ic_inbox_24dp" - android:textColor="@color/primaryTextColor" android:background="?attr/selectableItemBackgroundBorderless" /> <ImageView @@ -123,7 +120,6 @@ android:paddingBottom="8dp" android:gravity="center" android:src="@drawable/ic_account_circle_24dp" - android:textColor="@color/primaryTextColor" android:background="?attr/selectableItemBackgroundBorderless" /> </LinearLayout> 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" /> |