diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_account_saved_thing.xml | 56 | ||||
-rw-r--r-- | app/src/main/res/menu/account_posts_activity.xml | 11 | ||||
-rw-r--r-- | app/src/main/res/menu/account_saved_thing_activity.xml | 17 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 |
4 files changed, 76 insertions, 9 deletions
diff --git a/app/src/main/res/layout/activity_account_saved_thing.xml b/app/src/main/res/layout/activity_account_saved_thing.xml new file mode 100644 index 00000000..868f3b37 --- /dev/null +++ b/app/src/main/res/layout/activity_account_saved_thing.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.coordinatorlayout.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" + tools:context=".AccountPostsActivity"> + + <androidx.viewpager.widget.ViewPager + android:id="@+id/view_pager_account_saved_thing_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:layout_behavior="@string/appbar_scrolling_view_behavior" /> + + <com.google.android.material.appbar.AppBarLayout + android:id="@+id/appbar_layout_account_saved_thing_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:theme="@style/AppTheme.AppBarOverlay"> + + <com.google.android.material.appbar.CollapsingToolbarLayout + android:id="@+id/collapsing_toolbar_layout_account_saved_thing_activity" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:layout_scrollFlags="scroll|enterAlways" + app:titleEnabled="false" + app:toolbarId="@+id/toolbar_account_saved_thing_activity"> + + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar_account_saved_thing_activity" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + app:popupTheme="@style/AppTheme.PopupOverlay" + app:navigationIcon="?attr/homeAsUpIndicator" /> + + </com.google.android.material.appbar.CollapsingToolbarLayout> + + <com.google.android.material.tabs.TabLayout + android:id="@+id/tab_layout_tab_layout_account_saved_thing_activity_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:background="@color/colorPrimary" + app:layout_scrollFlags="scroll|enterAlways" + app:tabGravity="fill" + app:tabIndicatorColor="@android:color/white" + app:tabIndicatorHeight="3dp" + app:tabMode="fixed" + app:tabRippleColor="?attr/colorControlHighlight" + app:tabSelectedTextColor="@android:color/white" + app:tabTextColor="@android:color/white" + app:tabUnboundedRipple="false" /> + + </com.google.android.material.appbar.AppBarLayout> + +</androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/menu/account_posts_activity.xml b/app/src/main/res/menu/account_posts_activity.xml index cf39a53d..18781e33 100644 --- a/app/src/main/res/menu/account_posts_activity.xml +++ b/app/src/main/res/menu/account_posts_activity.xml @@ -2,22 +2,15 @@ <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item - android:id="@+id/action_sort_account_posts_activity" - android:orderInCategory="1" - android:title="@string/action_search" - android:icon="@drawable/ic_outline_sort_24px" - android:visible="false" - app:showAsAction="ifRoom" /> - <item android:id="@+id/action_refresh_account_posts_activity" - android:orderInCategory="2" + android:orderInCategory="1" android:title="@string/action_refresh" android:icon="@drawable/ic_refresh_white_24dp" app:showAsAction="never" /> <item android:id="@+id/action_lazy_mode_account_posts_activity" - android:orderInCategory="3" + android:orderInCategory="2" android:title="@string/action_start_lazy_mode" app:showAsAction="never" /> </menu>
\ No newline at end of file diff --git a/app/src/main/res/menu/account_saved_thing_activity.xml b/app/src/main/res/menu/account_saved_thing_activity.xml new file mode 100644 index 00000000..1e7717fc --- /dev/null +++ b/app/src/main/res/menu/account_saved_thing_activity.xml @@ -0,0 +1,17 @@ +<menu 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" + tools:application="ml.docilealligator.infinityforreddit.AccountSavedThingActivity"> + <item + android:id="@+id/action_refresh_account_saved_thing_activity" + android:orderInCategory="1" + android:title="@string/action_refresh" + android:icon="@drawable/ic_refresh_white_24dp" + app:showAsAction="never" /> + + <item + android:id="@+id/action_lazy_mode_account_saved_thing_activity" + android:orderInCategory="2" + android:title="@string/action_start_lazy_mode" + app:showAsAction="never" /> +</menu> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 774871ce..51149699 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -15,6 +15,7 @@ <string name="edit_comment_activity_label">Edit Comment</string> <string name="view_message_activity_label">Inbox</string> <string name="settings_activity_label">Settings</string> + <string name="account_saved_thing_activity">Saved</string> <string name="navigation_drawer_open">Open navigation drawer</string> <string name="navigation_drawer_close">Close navigation drawer</string> |