aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2018-08-19 16:04:49 +0000
committerAlex Ning <chineseperson5@gmail.com>2018-08-19 16:04:49 +0000
commit07b32b39007136ac8f6e326da791562a107716ad (patch)
treefcc25f4cb0773e21491cd76c63ef07b4b06f6f4b /app/src/main/res
parent23bf92d9cf32f1d62aaad1157f329f9f8943f6c7 (diff)
downloadinfinity-for-reddit-07b32b39007136ac8f6e326da791562a107716ad.tar
infinity-for-reddit-07b32b39007136ac8f6e326da791562a107716ad.tar.gz
infinity-for-reddit-07b32b39007136ac8f6e326da791562a107716ad.tar.bz2
infinity-for-reddit-07b32b39007136ac8f6e326da791562a107716ad.tar.lz
infinity-for-reddit-07b32b39007136ac8f6e326da791562a107716ad.tar.xz
infinity-for-reddit-07b32b39007136ac8f6e326da791562a107716ad.tar.zst
infinity-for-reddit-07b32b39007136ac8f6e326da791562a107716ad.zip
Rename some classes. Change the logic of getting the subreddit icon. Prepare to display posts in ViewSubredditDetailActivity.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/content_view_subreddit_detail.xml15
-rw-r--r--app/src/main/res/layout/item_best_post.xml3
2 files changed, 6 insertions, 12 deletions
diff --git a/app/src/main/res/layout/content_view_subreddit_detail.xml b/app/src/main/res/layout/content_view_subreddit_detail.xml
index c6334e7d..2b27dd3c 100644
--- a/app/src/main/res/layout/content_view_subreddit_detail.xml
+++ b/app/src/main/res/layout/content_view_subreddit_detail.xml
@@ -1,17 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
-<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/frame_layout_view_subreddit_detail_activity"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context=".ViewSubredditDetailActivity"
- tools:showIn="@layout/activity_view_subreddit_detail">
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="@dimen/text_margin"
- android:text="@string/large_text" />
-
-</android.support.v4.widget.NestedScrollView> \ No newline at end of file
+ tools:showIn="@layout/activity_view_subreddit_detail" />
diff --git a/app/src/main/res/layout/item_best_post.xml b/app/src/main/res/layout/item_best_post.xml
index 4bd95542..5978957c 100644
--- a/app/src/main/res/layout/item_best_post.xml
+++ b/app/src/main/res/layout/item_best_post.xml
@@ -2,7 +2,8 @@
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
+ android:layout_marginTop="8dp"
+ android:layout_marginBottom="8dp"
android:id="@+id/card_view_view_post_detail">
<LinearLayout