aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-10-09 08:40:45 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-10-09 08:40:45 +0000
commit77a31056b2213999acc94cd5dad1a24c5b006f90 (patch)
tree18c8dc78e53ec4cf0c343c27318c1b3a60906387 /app/src/main/res/layout
parentc4fd313839466df975a2afc6ad03e8f06dedf2e8 (diff)
downloadinfinity-for-reddit-77a31056b2213999acc94cd5dad1a24c5b006f90.tar
infinity-for-reddit-77a31056b2213999acc94cd5dad1a24c5b006f90.tar.gz
infinity-for-reddit-77a31056b2213999acc94cd5dad1a24c5b006f90.tar.bz2
infinity-for-reddit-77a31056b2213999acc94cd5dad1a24c5b006f90.tar.lz
infinity-for-reddit-77a31056b2213999acc94cd5dad1a24c5b006f90.tar.xz
infinity-for-reddit-77a31056b2213999acc94cd5dad1a24c5b006f90.tar.zst
infinity-for-reddit-77a31056b2213999acc94cd5dad1a24c5b006f90.zip
Favorite and unfavorite subreddits are now available.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/item_favorite_subreddits_divider.xml12
-rw-r--r--app/src/main/res/layout/item_subscribed_thing.xml10
2 files changed, 21 insertions, 1 deletions
diff --git a/app/src/main/res/layout/item_favorite_subreddits_divider.xml b/app/src/main/res/layout/item_favorite_subreddits_divider.xml
new file mode 100644
index 00000000..7b3f34a8
--- /dev/null
+++ b/app/src/main/res/layout/item_favorite_subreddits_divider.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="16dp">
+
+ <TextView
+ android:id="@+id/divider_text_view_item_favorite_subreddits_divider"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_subscribed_thing.xml b/app/src/main/res/layout/item_subscribed_thing.xml
index 92e381aa..bb76a5fb 100644
--- a/app/src/main/res/layout/item_subscribed_thing.xml
+++ b/app/src/main/res/layout/item_subscribed_thing.xml
@@ -17,10 +17,18 @@
<TextView
android:id="@+id/subreddit_name_text_view_item_subscribed_subreddit"
- android:layout_width="wrap_content"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
+ android:layout_weight="1"
android:textColor="@color/primaryTextColor"
android:textSize="?attr/font_default"
android:layout_gravity="center_vertical" />
+ <ImageView
+ android:id="@+id/favorite_image_view_item_subscribed_subreddit"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="end|center_vertical"
+ android:layout_marginStart="32dp" />
+
</LinearLayout> \ No newline at end of file