diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-06-27 06:00:24 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-06-27 06:00:24 +0000 |
commit | 3c482c63ec9057ca0a74e5ed66be5d7720139727 (patch) | |
tree | 2ad93ab812835aa1d3e35c4f94637e80a648adaf /app/src/main/res/layout | |
parent | f9884167694f94e906860757b51d6600ee5143d4 (diff) | |
download | infinity-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/layout')
-rw-r--r-- | app/src/main/res/layout/activity_view_message.xml | 58 |
1 files changed, 15 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 |