diff options
author | Alex Ning <chineseperson5@gmail.com> | 2018-09-21 15:35:57 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2018-09-21 15:35:57 +0000 |
commit | 88e4cf810fa78592c97f6ba7c8c501e75205a76b (patch) | |
tree | 69da20eea421631a23d3c271d4d11e774e7631bc /app/src/main/res/layout | |
parent | 5c51450a8ebd9a1bbcf39377d639dca0c4994987 (diff) | |
download | infinity-for-reddit-88e4cf810fa78592c97f6ba7c8c501e75205a76b.tar infinity-for-reddit-88e4cf810fa78592c97f6ba7c8c501e75205a76b.tar.gz infinity-for-reddit-88e4cf810fa78592c97f6ba7c8c501e75205a76b.tar.bz2 infinity-for-reddit-88e4cf810fa78592c97f6ba7c8c501e75205a76b.tar.lz infinity-for-reddit-88e4cf810fa78592c97f6ba7c8c501e75205a76b.tar.xz infinity-for-reddit-88e4cf810fa78592c97f6ba7c8c501e75205a76b.tar.zst infinity-for-reddit-88e4cf810fa78592c97f6ba7c8c501e75205a76b.zip |
Click the subreddit icon or the subreddit name to view the subreddit's details in PostFragment. Make the status bar in ViewSubredditDetailActivity translucent. Prepare to view the user's details in ViewUserDetailActivity. Minor bugs fixed.
Diffstat (limited to 'app/src/main/res/layout')
3 files changed, 48 insertions, 3 deletions
diff --git a/app/src/main/res/layout/activity_view_subreddit_detail.xml b/app/src/main/res/layout/activity_view_subreddit_detail.xml index ed05ebf1..67bf3928 100644 --- a/app/src/main/res/layout/activity_view_subreddit_detail.xml +++ b/app/src/main/res/layout/activity_view_subreddit_detail.xml @@ -5,21 +5,18 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/coordinator_layout_view_subreddit_detail_activity" - android:fitsSystemWindows="true" tools:context=".ViewSubredditDetailActivity"> <android.support.design.widget.AppBarLayout android:id="@+id/app_bar_layout_view_subreddit_detail_activity" android:layout_width="match_parent" android:layout_height="wrap_content" - android:fitsSystemWindows="true" android:theme="@style/AppTheme.AppBarOverlay"> <android.support.design.widget.CollapsingToolbarLayout android:id="@+id/collapsing_toolbar_layout_view_subreddit_detail_activity" android:layout_width="match_parent" android:layout_height="match_parent" - android:fitsSystemWindows="true" app:contentScrim="?attr/colorPrimary" app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed" app:toolbarId="@+id/toolbar"> diff --git a/app/src/main/res/layout/activity_view_user_detail.xml b/app/src/main/res/layout/activity_view_user_detail.xml new file mode 100644 index 00000000..76dbba91 --- /dev/null +++ b/app/src/main/res/layout/activity_view_user_detail.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.design.widget.CoordinatorLayout 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:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true" + tools:context=".ViewUserDetailActivity"> + + <android.support.design.widget.AppBarLayout + android:id="@+id/app_bar" + android:layout_width="match_parent" + android:layout_height="@dimen/app_bar_height" + android:fitsSystemWindows="true" + android:theme="@style/AppTheme.AppBarOverlay"> + + <android.support.design.widget.CollapsingToolbarLayout + android:id="@+id/toolbar_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true" + app:contentScrim="?attr/colorPrimary" + app:layout_scrollFlags="scroll|exitUntilCollapsed" + app:toolbarId="@+id/toolbar"> + + <android.support.v7.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + app:layout_collapseMode="pin" + app:popupTheme="@style/AppTheme.PopupOverlay" /> + + </android.support.design.widget.CollapsingToolbarLayout> + </android.support.design.widget.AppBarLayout> + + <include layout="@layout/content_view_user_detail" /> + +</android.support.design.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/content_view_user_detail.xml b/app/src/main/res/layout/content_view_user_detail.xml new file mode 100644 index 00000000..c708ae9e --- /dev/null +++ b/app/src/main/res/layout/content_view_user_detail.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<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_user_detail_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:layout_behavior="@string/appbar_scrolling_view_behavior" + tools:context=".ViewUserDetailActivity" + tools:showIn="@layout/activity_view_user_detail" />
\ No newline at end of file |