aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-06-27 06:00:24 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-06-27 06:00:24 +0000
commit3c482c63ec9057ca0a74e5ed66be5d7720139727 (patch)
tree2ad93ab812835aa1d3e35c4f94637e80a648adaf /app/src/main/res
parentf9884167694f94e906860757b51d6600ee5143d4 (diff)
downloadinfinity-for-reddit-3c482c63ec9057ca0a74e5ed66be5d7720139727.tar
infinity-for-reddit-3c482c63ec9057ca0a74e5ed66be5d7720139727.tar.gz
infinity-for-reddit-3c482c63ec9057ca0a74e5ed66be5d7720139727.tar.bz2
infinity-for-reddit-3c482c63ec9057ca0a74e5ed66be5d7720139727.tar.lz
infinity-for-reddit-3c482c63ec9057ca0a74e5ed66be5d7720139727.tar.xz
infinity-for-reddit-3c482c63ec9057ca0a74e5ed66be5d7720139727.tar.zst
infinity-for-reddit-3c482c63ec9057ca0a74e5ed66be5d7720139727.zip
Add another tab for PM in ViewMessageActivity.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_view_message.xml58
-rw-r--r--app/src/main/res/values/strings.xml2
2 files changed, 17 insertions, 43 deletions
diff --git a/app/src/main/res/layout/activity_view_message.xml b/app/src/main/res/layout/activity_view_message.xml
index 1ce1e9db..8d357f52 100644
--- a/app/src/main/res/layout/activity_view_message.xml
+++ b/app/src/main/res/layout/activity_view_message.xml
@@ -31,52 +31,24 @@
</com.google.android.material.appbar.CollapsingToolbarLayout>
- </com.google.android.material.appbar.AppBarLayout>
-
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_behavior="@string/appbar_scrolling_view_behavior" >
-
- <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
- android:id="@+id/swipe_refresh_layout_view_message_activity"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
-
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recycler_view_view_message_activity"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:clipToPadding="false"/>
-
- </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
-
- <LinearLayout
- android:id="@+id/fetch_messages_info_linear_layout_view_message_activity"
+ <com.google.android.material.tabs.TabLayout
+ android:id="@+id/tab_layout_view_message_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:gravity="center"
- android:orientation="vertical"
- android:visibility="gone">
-
- <ImageView
- android:id="@+id/fetch_messages_info_image_view_view_message_activity"
- android:layout_width="150dp"
- android:layout_height="wrap_content" />
-
- <TextView
- android:id="@+id/fetch_messages_info_text_view_view_message_activity"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:gravity="center"
- android:textSize="?attr/font_default"
- android:fontFamily="?attr/font_family" />
+ android:layout_gravity="bottom"
+ app:layout_scrollFlags="scroll|enterAlways"
+ app:tabGravity="fill"
+ app:tabIndicatorHeight="3dp"
+ app:tabMode="fixed"
+ app:tabRippleColor="?attr/colorControlHighlight"
+ app:tabUnboundedRipple="false" />
- </LinearLayout>
+ </com.google.android.material.appbar.AppBarLayout>
- </RelativeLayout>
+ <androidx.viewpager.widget.ViewPager
+ android:id="@+id/view_pager_view_message_activity"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 1eecbe16..18faf6b8 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -760,6 +760,8 @@
<string name="home">Home</string>
<string name="popular">Popular</string>
+ <string name="notifications">Notifications</string>
+ <string name="messages">Messages</string>
<string name="fetch_gfycat_video_failed">Fetch Gfycat video failed</string>
<string name="fetch_redgifs_video_failed">Fetch Redgifs video failed</string>