IT评测·应用市场-qidao123.com技术社区

标题: Android ViewPager2 + TabLayout + BottomNavigationView [打印本页]

作者: 愛在花開的季節    时间: 2022-12-5 13:58
标题: Android ViewPager2 + TabLayout + BottomNavigationView
Android ViewPager2 + TabLayout  + BottomNavigationView 实际案例

本篇主要介绍一下 ViewPager2 + TabLayout + BottomNavigationView 的结合操作

概述

相信大家都看过今日头条的的样式 如下: 顶部有这种tab 并且是可以滑动的, 这就是本篇所介绍的 ViewPager2 + TabLayout 的组合 下面来看看如何实现把

实现思路

1.Activity 布局文件中引入BottomNavigationView 和 FragmentContainerView控件

2.编写 TabLayoutHomeFragment 布局文件

3.编写 Fragment 用于集成ViewPager2 和TabLayout

4. 编写 RecFragment 用于继承RecycleView 展示

5.实现 ViewPager2TabLayoutActivity



代码实现

1.Activity 布局文件中引入BottomNavigationView 和 FragmentContainerView控件

其中 menu 使用上一篇中的指定的 menu
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4.     xmlns:tools="http://schemas.android.com/tools"
  5.     android:layout_width="match_parent"
  6.     android:layout_height="match_parent"
  7.     tools:context=".ViewPager2TabLayoutActivity">
  8.    
  9.     <androidx.fragment.app.FragmentContainerView
  10. <?xml version="1.0" encoding="utf-8"?>
  11. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12.     xmlns:tools="http://schemas.android.com/tools"
  13.     android:layout_width="match_parent"
  14.     android:layout_height="match_parent"
  15.     xmlns:app="http://schemas.android.com/apk/res-auto"
  16.     tools:context=".tablayout.TabLayoutHomeFragment">
  17.     <com.google.android.material.tabs.TabLayout
  18.         android:id="@+id/mytablayout2"
  19.         android:layout_width="match_parent"
  20.         android:layout_height="wrap_content"
  21.         app:tabMode="auto"
  22.         app:tabGravity="start"
  23.         app:tabBackground="@color/pink"
  24.         app:tabTextColor="@color/white"
  25.         app:layout_constraintStart_toStartOf="parent"
  26.         app:layout_constraintTop_toTopOf="parent"
  27.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  28.         />
  29.     <androidx.viewpager2.widget.ViewPager2
  30.         android:id="@+id/myviepage2"
  31.         android:layout_width="match_parent"
  32.         android:layout_height="0dp"
  33.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  34.         app:layout_constraintBottom_toBottomOf="parent"
  35.         app:layout_constraintStart_toStartOf="parent"
  36.         />
  37. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  38. <?xml version="1.0" encoding="utf-8"?>
  39. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  40.     xmlns:tools="http://schemas.android.com/tools"
  41.     android:layout_width="match_parent"
  42.     android:layout_height="match_parent"
  43.     xmlns:app="http://schemas.android.com/apk/res-auto"
  44.     tools:context=".tablayout.TabLayoutHomeFragment">
  45.     <com.google.android.material.tabs.TabLayout
  46.         android:id="@+id/mytablayout2"
  47.         android:layout_width="match_parent"
  48.         android:layout_height="wrap_content"
  49.         app:tabMode="auto"
  50.         app:tabGravity="start"
  51.         app:tabBackground="@color/pink"
  52.         app:tabTextColor="@color/white"
  53.         app:layout_constraintStart_toStartOf="parent"
  54.         app:layout_constraintTop_toTopOf="parent"
  55.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  56.         />
  57.     <androidx.viewpager2.widget.ViewPager2
  58.         android:id="@+id/myviepage2"
  59.         android:layout_width="match_parent"
  60.         android:layout_height="0dp"
  61.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  62.         app:layout_constraintBottom_toBottomOf="parent"
  63.         app:layout_constraintStart_toStartOf="parent"
  64.         />
  65. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  66. <?xml version="1.0" encoding="utf-8"?>
  67. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  68.     xmlns:tools="http://schemas.android.com/tools"
  69.     android:layout_width="match_parent"
  70.     android:layout_height="match_parent"
  71.     xmlns:app="http://schemas.android.com/apk/res-auto"
  72.     tools:context=".tablayout.TabLayoutHomeFragment">
  73.     <com.google.android.material.tabs.TabLayout
  74.         android:id="@+id/mytablayout2"
  75.         android:layout_width="match_parent"
  76.         android:layout_height="wrap_content"
  77.         app:tabMode="auto"
  78.         app:tabGravity="start"
  79.         app:tabBackground="@color/pink"
  80.         app:tabTextColor="@color/white"
  81.         app:layout_constraintStart_toStartOf="parent"
  82.         app:layout_constraintTop_toTopOf="parent"
  83.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  84.         />
  85.     <androidx.viewpager2.widget.ViewPager2
  86.         android:id="@+id/myviepage2"
  87.         android:layout_width="match_parent"
  88.         android:layout_height="0dp"
  89.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  90.         app:layout_constraintBottom_toBottomOf="parent"
  91.         app:layout_constraintStart_toStartOf="parent"
  92.         />
  93. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  94. <?xml version="1.0" encoding="utf-8"?>
  95. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  96.     xmlns:tools="http://schemas.android.com/tools"
  97.     android:layout_width="match_parent"
  98.     android:layout_height="match_parent"
  99.     xmlns:app="http://schemas.android.com/apk/res-auto"
  100.     tools:context=".tablayout.TabLayoutHomeFragment">
  101.     <com.google.android.material.tabs.TabLayout
  102.         android:id="@+id/mytablayout2"
  103.         android:layout_width="match_parent"
  104.         android:layout_height="wrap_content"
  105.         app:tabMode="auto"
  106.         app:tabGravity="start"
  107.         app:tabBackground="@color/pink"
  108.         app:tabTextColor="@color/white"
  109.         app:layout_constraintStart_toStartOf="parent"
  110.         app:layout_constraintTop_toTopOf="parent"
  111.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  112.         />
  113.     <androidx.viewpager2.widget.ViewPager2
  114.         android:id="@+id/myviepage2"
  115.         android:layout_width="match_parent"
  116.         android:layout_height="0dp"
  117.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  118.         app:layout_constraintBottom_toBottomOf="parent"
  119.         app:layout_constraintStart_toStartOf="parent"
  120.         />
  121. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  122. <?xml version="1.0" encoding="utf-8"?>
  123. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  124.     xmlns:tools="http://schemas.android.com/tools"
  125.     android:layout_width="match_parent"
  126.     android:layout_height="match_parent"
  127.     xmlns:app="http://schemas.android.com/apk/res-auto"
  128.     tools:context=".tablayout.TabLayoutHomeFragment">
  129.     <com.google.android.material.tabs.TabLayout
  130.         android:id="@+id/mytablayout2"
  131.         android:layout_width="match_parent"
  132.         android:layout_height="wrap_content"
  133.         app:tabMode="auto"
  134.         app:tabGravity="start"
  135.         app:tabBackground="@color/pink"
  136.         app:tabTextColor="@color/white"
  137.         app:layout_constraintStart_toStartOf="parent"
  138.         app:layout_constraintTop_toTopOf="parent"
  139.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  140.         />
  141.     <androidx.viewpager2.widget.ViewPager2
  142.         android:id="@+id/myviepage2"
  143.         android:layout_width="match_parent"
  144.         android:layout_height="0dp"
  145.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  146.         app:layout_constraintBottom_toBottomOf="parent"
  147.         app:layout_constraintStart_toStartOf="parent"
  148.         />
  149. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  150.     <com.google.android.material.bottomnavigation.BottomNavigationView
  151. <?xml version="1.0" encoding="utf-8"?>
  152. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  153.     xmlns:tools="http://schemas.android.com/tools"
  154.     android:layout_width="match_parent"
  155.     android:layout_height="match_parent"
  156.     xmlns:app="http://schemas.android.com/apk/res-auto"
  157.     tools:context=".tablayout.TabLayoutHomeFragment">
  158.     <com.google.android.material.tabs.TabLayout
  159.         android:id="@+id/mytablayout2"
  160.         android:layout_width="match_parent"
  161.         android:layout_height="wrap_content"
  162.         app:tabMode="auto"
  163.         app:tabGravity="start"
  164.         app:tabBackground="@color/pink"
  165.         app:tabTextColor="@color/white"
  166.         app:layout_constraintStart_toStartOf="parent"
  167.         app:layout_constraintTop_toTopOf="parent"
  168.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  169.         />
  170.     <androidx.viewpager2.widget.ViewPager2
  171.         android:id="@+id/myviepage2"
  172.         android:layout_width="match_parent"
  173.         android:layout_height="0dp"
  174.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  175.         app:layout_constraintBottom_toBottomOf="parent"
  176.         app:layout_constraintStart_toStartOf="parent"
  177.         />
  178. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  179. <?xml version="1.0" encoding="utf-8"?>
  180. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  181.     xmlns:tools="http://schemas.android.com/tools"
  182.     android:layout_width="match_parent"
  183.     android:layout_height="match_parent"
  184.     xmlns:app="http://schemas.android.com/apk/res-auto"
  185.     tools:context=".tablayout.TabLayoutHomeFragment">
  186.     <com.google.android.material.tabs.TabLayout
  187.         android:id="@+id/mytablayout2"
  188.         android:layout_width="match_parent"
  189.         android:layout_height="wrap_content"
  190.         app:tabMode="auto"
  191.         app:tabGravity="start"
  192.         app:tabBackground="@color/pink"
  193.         app:tabTextColor="@color/white"
  194.         app:layout_constraintStart_toStartOf="parent"
  195.         app:layout_constraintTop_toTopOf="parent"
  196.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  197.         />
  198.     <androidx.viewpager2.widget.ViewPager2
  199.         android:id="@+id/myviepage2"
  200.         android:layout_width="match_parent"
  201.         android:layout_height="0dp"
  202.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  203.         app:layout_constraintBottom_toBottomOf="parent"
  204.         app:layout_constraintStart_toStartOf="parent"
  205.         />
  206. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  207. <?xml version="1.0" encoding="utf-8"?>
  208. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  209.     xmlns:tools="http://schemas.android.com/tools"
  210.     android:layout_width="match_parent"
  211.     android:layout_height="match_parent"
  212.     xmlns:app="http://schemas.android.com/apk/res-auto"
  213.     tools:context=".tablayout.TabLayoutHomeFragment">
  214.     <com.google.android.material.tabs.TabLayout
  215.         android:id="@+id/mytablayout2"
  216.         android:layout_width="match_parent"
  217.         android:layout_height="wrap_content"
  218.         app:tabMode="auto"
  219.         app:tabGravity="start"
  220.         app:tabBackground="@color/pink"
  221.         app:tabTextColor="@color/white"
  222.         app:layout_constraintStart_toStartOf="parent"
  223.         app:layout_constraintTop_toTopOf="parent"
  224.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  225.         />
  226.     <androidx.viewpager2.widget.ViewPager2
  227.         android:id="@+id/myviepage2"
  228.         android:layout_width="match_parent"
  229.         android:layout_height="0dp"
  230.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  231.         app:layout_constraintBottom_toBottomOf="parent"
  232.         app:layout_constraintStart_toStartOf="parent"
  233.         />
  234. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  235. <?xml version="1.0" encoding="utf-8"?>
  236. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  237.     xmlns:tools="http://schemas.android.com/tools"
  238.     android:layout_width="match_parent"
  239.     android:layout_height="match_parent"
  240.     xmlns:app="http://schemas.android.com/apk/res-auto"
  241.     tools:context=".tablayout.TabLayoutHomeFragment">
  242.     <com.google.android.material.tabs.TabLayout
  243.         android:id="@+id/mytablayout2"
  244.         android:layout_width="match_parent"
  245.         android:layout_height="wrap_content"
  246.         app:tabMode="auto"
  247.         app:tabGravity="start"
  248.         app:tabBackground="@color/pink"
  249.         app:tabTextColor="@color/white"
  250.         app:layout_constraintStart_toStartOf="parent"
  251.         app:layout_constraintTop_toTopOf="parent"
  252.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  253.         />
  254.     <androidx.viewpager2.widget.ViewPager2
  255.         android:id="@+id/myviepage2"
  256.         android:layout_width="match_parent"
  257.         android:layout_height="0dp"
  258.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  259.         app:layout_constraintBottom_toBottomOf="parent"
  260.         app:layout_constraintStart_toStartOf="parent"
  261.         />
  262. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  263. <?xml version="1.0" encoding="utf-8"?>
  264. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  265.     xmlns:tools="http://schemas.android.com/tools"
  266.     android:layout_width="match_parent"
  267.     android:layout_height="match_parent"
  268.     xmlns:app="http://schemas.android.com/apk/res-auto"
  269.     tools:context=".tablayout.TabLayoutHomeFragment">
  270.     <com.google.android.material.tabs.TabLayout
  271.         android:id="@+id/mytablayout2"
  272.         android:layout_width="match_parent"
  273.         android:layout_height="wrap_content"
  274.         app:tabMode="auto"
  275.         app:tabGravity="start"
  276.         app:tabBackground="@color/pink"
  277.         app:tabTextColor="@color/white"
  278.         app:layout_constraintStart_toStartOf="parent"
  279.         app:layout_constraintTop_toTopOf="parent"
  280.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  281.         />
  282.     <androidx.viewpager2.widget.ViewPager2
  283.         android:id="@+id/myviepage2"
  284.         android:layout_width="match_parent"
  285.         android:layout_height="0dp"
  286.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  287.         app:layout_constraintBottom_toBottomOf="parent"
  288.         app:layout_constraintStart_toStartOf="parent"
  289.         />
  290. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  291. <?xml version="1.0" encoding="utf-8"?>
  292. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  293.     xmlns:tools="http://schemas.android.com/tools"
  294.     android:layout_width="match_parent"
  295.     android:layout_height="match_parent"
  296.     xmlns:app="http://schemas.android.com/apk/res-auto"
  297.     tools:context=".tablayout.TabLayoutHomeFragment">
  298.     <com.google.android.material.tabs.TabLayout
  299.         android:id="@+id/mytablayout2"
  300.         android:layout_width="match_parent"
  301.         android:layout_height="wrap_content"
  302.         app:tabMode="auto"
  303.         app:tabGravity="start"
  304.         app:tabBackground="@color/pink"
  305.         app:tabTextColor="@color/white"
  306.         app:layout_constraintStart_toStartOf="parent"
  307.         app:layout_constraintTop_toTopOf="parent"
  308.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  309.         />
  310.     <androidx.viewpager2.widget.ViewPager2
  311.         android:id="@+id/myviepage2"
  312.         android:layout_width="match_parent"
  313.         android:layout_height="0dp"
  314.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  315.         app:layout_constraintBottom_toBottomOf="parent"
  316.         app:layout_constraintStart_toStartOf="parent"
  317.         />
  318. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  319. <?xml version="1.0" encoding="utf-8"?>
  320. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  321.     xmlns:tools="http://schemas.android.com/tools"
  322.     android:layout_width="match_parent"
  323.     android:layout_height="match_parent"
  324.     xmlns:app="http://schemas.android.com/apk/res-auto"
  325.     tools:context=".tablayout.TabLayoutHomeFragment">
  326.     <com.google.android.material.tabs.TabLayout
  327.         android:id="@+id/mytablayout2"
  328.         android:layout_width="match_parent"
  329.         android:layout_height="wrap_content"
  330.         app:tabMode="auto"
  331.         app:tabGravity="start"
  332.         app:tabBackground="@color/pink"
  333.         app:tabTextColor="@color/white"
  334.         app:layout_constraintStart_toStartOf="parent"
  335.         app:layout_constraintTop_toTopOf="parent"
  336.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  337.         />
  338.     <androidx.viewpager2.widget.ViewPager2
  339.         android:id="@+id/myviepage2"
  340.         android:layout_width="match_parent"
  341.         android:layout_height="0dp"
  342.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  343.         app:layout_constraintBottom_toBottomOf="parent"
  344.         app:layout_constraintStart_toStartOf="parent"
  345.         />
  346. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  347. <?xml version="1.0" encoding="utf-8"?>
  348. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  349.     xmlns:tools="http://schemas.android.com/tools"
  350.     android:layout_width="match_parent"
  351.     android:layout_height="match_parent"
  352.     xmlns:app="http://schemas.android.com/apk/res-auto"
  353.     tools:context=".tablayout.TabLayoutHomeFragment">
  354.     <com.google.android.material.tabs.TabLayout
  355.         android:id="@+id/mytablayout2"
  356.         android:layout_width="match_parent"
  357.         android:layout_height="wrap_content"
  358.         app:tabMode="auto"
  359.         app:tabGravity="start"
  360.         app:tabBackground="@color/pink"
  361.         app:tabTextColor="@color/white"
  362.         app:layout_constraintStart_toStartOf="parent"
  363.         app:layout_constraintTop_toTopOf="parent"
  364.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  365.         />
  366.     <androidx.viewpager2.widget.ViewPager2
  367.         android:id="@+id/myviepage2"
  368.         android:layout_width="match_parent"
  369.         android:layout_height="0dp"
  370.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  371.         app:layout_constraintBottom_toBottomOf="parent"
  372.         app:layout_constraintStart_toStartOf="parent"
  373.         />
  374. </androidx.constraintlayout.widget.ConstraintLayout>/>
  375. </androidx.constraintlayout.widget.ConstraintLayout>
复制代码

2.编写 TabLayoutHomeFragment 布局文件

主要想在这个 Home首页 Fragment 中 实现TabLayout 和 ViewPager2滑动功能
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:tools="http://schemas.android.com/tools"
  4.     android:layout_width="match_parent"
  5.     android:layout_height="match_parent"
  6.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7.     tools:context=".tablayout.TabLayoutHomeFragment">
  8.     <com.google.android.material.tabs.TabLayout
  9.         android:id="@+id/mytablayout2"
  10.         android:layout_width="match_parent"
  11.         android:layout_height="wrap_content"
  12.         app:tabMode="auto"
  13.         app:tabGravity="start"
  14.         app:tabBackground="@color/pink"
  15.         app:tabTextColor="@color/white"
  16.         app:layout_constraintStart_toStartOf="parent"
  17.         app:layout_constraintTop_toTopOf="parent"
  18.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  19.         />
  20.     <androidx.viewpager2.widget.ViewPager2
  21.         android:id="@+id/myviepage2"
  22.         android:layout_width="match_parent"
  23.         android:layout_height="0dp"
  24.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  25.         app:layout_constraintBottom_toBottomOf="parent"
  26.         app:layout_constraintStart_toStartOf="parent"
  27.         />
  28. </androidx.constraintlayout.widget.ConstraintLayout>
复制代码
3. 编写 TabLayoutHomeFragment代码部分 用于集成ViewPager2 和TabLayout
  1. package com.johnny.slzzing.tablayout;import android.os.Bundle;import android.util.Log;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import androidx.annotation.NonNull;import androidx.annotation.Nullable;import androidx.fragment.app.Fragment;import androidx.fragment.app.FragmentActivity;import androidx.viewpager2.adapter.FragmentStateAdapter;import androidx.viewpager2.widget.ViewPager2;import com.google.android.material.tabs.TabLayout;import com.google.android.material.tabs.TabLayoutMediator;import com.johnny.slzzing.BottomFragment;import com.johnny.slzzing.R;import com.johnny.slzzing.RecFragment;import java.util.Arrays;import java.util.List;public class TabLayoutHomeFragment2 extends Fragment {    private static final String ARG_PARAM1 = "param1";    private static final String ARG_PARAM2 = "param2";    private static final String TAG = "TabLayoutHomeFragment";    // TODO: Rename and change types of parameters    private String mParam1;    private String mParam2;    private ViewPager2 viewPager2;    private TabLayout tabLayout;    public TabLayoutHomeFragment2() {}    public static TabLayoutHomeFragment2 newInstance(String param1, String param2) {<?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:tools="http://schemas.android.com/tools"
  4.     android:layout_width="match_parent"
  5.     android:layout_height="match_parent"
  6.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7.     tools:context=".tablayout.TabLayoutHomeFragment">
  8.     <com.google.android.material.tabs.TabLayout
  9.         android:id="@+id/mytablayout2"
  10.         android:layout_width="match_parent"
  11.         android:layout_height="wrap_content"
  12.         app:tabMode="auto"
  13.         app:tabGravity="start"
  14.         app:tabBackground="@color/pink"
  15.         app:tabTextColor="@color/white"
  16.         app:layout_constraintStart_toStartOf="parent"
  17.         app:layout_constraintTop_toTopOf="parent"
  18.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  19.         />
  20.     <androidx.viewpager2.widget.ViewPager2
  21.         android:id="@+id/myviepage2"
  22.         android:layout_width="match_parent"
  23.         android:layout_height="0dp"
  24.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  25.         app:layout_constraintBottom_toBottomOf="parent"
  26.         app:layout_constraintStart_toStartOf="parent"
  27.         />
  28. </androidx.constraintlayout.widget.ConstraintLayout>TabLayoutHomeFragment2 fragment = new TabLayoutHomeFragment2();<?xml version="1.0" encoding="utf-8"?>
  29. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  30.     xmlns:tools="http://schemas.android.com/tools"
  31.     android:layout_width="match_parent"
  32.     android:layout_height="match_parent"
  33.     xmlns:app="http://schemas.android.com/apk/res-auto"
  34.     tools:context=".tablayout.TabLayoutHomeFragment">
  35.     <com.google.android.material.tabs.TabLayout
  36.         android:id="@+id/mytablayout2"
  37.         android:layout_width="match_parent"
  38.         android:layout_height="wrap_content"
  39.         app:tabMode="auto"
  40.         app:tabGravity="start"
  41.         app:tabBackground="@color/pink"
  42.         app:tabTextColor="@color/white"
  43.         app:layout_constraintStart_toStartOf="parent"
  44.         app:layout_constraintTop_toTopOf="parent"
  45.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  46.         />
  47.     <androidx.viewpager2.widget.ViewPager2
  48.         android:id="@+id/myviepage2"
  49.         android:layout_width="match_parent"
  50.         android:layout_height="0dp"
  51.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  52.         app:layout_constraintBottom_toBottomOf="parent"
  53.         app:layout_constraintStart_toStartOf="parent"
  54.         />
  55. </androidx.constraintlayout.widget.ConstraintLayout>Bundle args = new Bundle();<?xml version="1.0" encoding="utf-8"?>
  56. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  57.     xmlns:tools="http://schemas.android.com/tools"
  58.     android:layout_width="match_parent"
  59.     android:layout_height="match_parent"
  60.     xmlns:app="http://schemas.android.com/apk/res-auto"
  61.     tools:context=".tablayout.TabLayoutHomeFragment">
  62.     <com.google.android.material.tabs.TabLayout
  63.         android:id="@+id/mytablayout2"
  64.         android:layout_width="match_parent"
  65.         android:layout_height="wrap_content"
  66.         app:tabMode="auto"
  67.         app:tabGravity="start"
  68.         app:tabBackground="@color/pink"
  69.         app:tabTextColor="@color/white"
  70.         app:layout_constraintStart_toStartOf="parent"
  71.         app:layout_constraintTop_toTopOf="parent"
  72.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  73.         />
  74.     <androidx.viewpager2.widget.ViewPager2
  75.         android:id="@+id/myviepage2"
  76.         android:layout_width="match_parent"
  77.         android:layout_height="0dp"
  78.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  79.         app:layout_constraintBottom_toBottomOf="parent"
  80.         app:layout_constraintStart_toStartOf="parent"
  81.         />
  82. </androidx.constraintlayout.widget.ConstraintLayout>args.putString(ARG_PARAM1, param1);<?xml version="1.0" encoding="utf-8"?>
  83. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  84.     xmlns:tools="http://schemas.android.com/tools"
  85.     android:layout_width="match_parent"
  86.     android:layout_height="match_parent"
  87.     xmlns:app="http://schemas.android.com/apk/res-auto"
  88.     tools:context=".tablayout.TabLayoutHomeFragment">
  89.     <com.google.android.material.tabs.TabLayout
  90.         android:id="@+id/mytablayout2"
  91.         android:layout_width="match_parent"
  92.         android:layout_height="wrap_content"
  93.         app:tabMode="auto"
  94.         app:tabGravity="start"
  95.         app:tabBackground="@color/pink"
  96.         app:tabTextColor="@color/white"
  97.         app:layout_constraintStart_toStartOf="parent"
  98.         app:layout_constraintTop_toTopOf="parent"
  99.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  100.         />
  101.     <androidx.viewpager2.widget.ViewPager2
  102.         android:id="@+id/myviepage2"
  103.         android:layout_width="match_parent"
  104.         android:layout_height="0dp"
  105.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  106.         app:layout_constraintBottom_toBottomOf="parent"
  107.         app:layout_constraintStart_toStartOf="parent"
  108.         />
  109. </androidx.constraintlayout.widget.ConstraintLayout>args.putString(ARG_PARAM2, param2);<?xml version="1.0" encoding="utf-8"?>
  110. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  111.     xmlns:tools="http://schemas.android.com/tools"
  112.     android:layout_width="match_parent"
  113.     android:layout_height="match_parent"
  114.     xmlns:app="http://schemas.android.com/apk/res-auto"
  115.     tools:context=".tablayout.TabLayoutHomeFragment">
  116.     <com.google.android.material.tabs.TabLayout
  117.         android:id="@+id/mytablayout2"
  118.         android:layout_width="match_parent"
  119.         android:layout_height="wrap_content"
  120.         app:tabMode="auto"
  121.         app:tabGravity="start"
  122.         app:tabBackground="@color/pink"
  123.         app:tabTextColor="@color/white"
  124.         app:layout_constraintStart_toStartOf="parent"
  125.         app:layout_constraintTop_toTopOf="parent"
  126.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  127.         />
  128.     <androidx.viewpager2.widget.ViewPager2
  129.         android:id="@+id/myviepage2"
  130.         android:layout_width="match_parent"
  131.         android:layout_height="0dp"
  132.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  133.         app:layout_constraintBottom_toBottomOf="parent"
  134.         app:layout_constraintStart_toStartOf="parent"
  135.         />
  136. </androidx.constraintlayout.widget.ConstraintLayout>fragment.setArguments(args);<?xml version="1.0" encoding="utf-8"?>
  137. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  138.     xmlns:tools="http://schemas.android.com/tools"
  139.     android:layout_width="match_parent"
  140.     android:layout_height="match_parent"
  141.     xmlns:app="http://schemas.android.com/apk/res-auto"
  142.     tools:context=".tablayout.TabLayoutHomeFragment">
  143.     <com.google.android.material.tabs.TabLayout
  144.         android:id="@+id/mytablayout2"
  145.         android:layout_width="match_parent"
  146.         android:layout_height="wrap_content"
  147.         app:tabMode="auto"
  148.         app:tabGravity="start"
  149.         app:tabBackground="@color/pink"
  150.         app:tabTextColor="@color/white"
  151.         app:layout_constraintStart_toStartOf="parent"
  152.         app:layout_constraintTop_toTopOf="parent"
  153.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  154.         />
  155.     <androidx.viewpager2.widget.ViewPager2
  156.         android:id="@+id/myviepage2"
  157.         android:layout_width="match_parent"
  158.         android:layout_height="0dp"
  159.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  160.         app:layout_constraintBottom_toBottomOf="parent"
  161.         app:layout_constraintStart_toStartOf="parent"
  162.         />
  163. </androidx.constraintlayout.widget.ConstraintLayout>return fragment;    }    @Override    public void onCreate(Bundle savedInstanceState) {<?xml version="1.0" encoding="utf-8"?>
  164. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  165.     xmlns:tools="http://schemas.android.com/tools"
  166.     android:layout_width="match_parent"
  167.     android:layout_height="match_parent"
  168.     xmlns:app="http://schemas.android.com/apk/res-auto"
  169.     tools:context=".tablayout.TabLayoutHomeFragment">
  170.     <com.google.android.material.tabs.TabLayout
  171.         android:id="@+id/mytablayout2"
  172.         android:layout_width="match_parent"
  173.         android:layout_height="wrap_content"
  174.         app:tabMode="auto"
  175.         app:tabGravity="start"
  176.         app:tabBackground="@color/pink"
  177.         app:tabTextColor="@color/white"
  178.         app:layout_constraintStart_toStartOf="parent"
  179.         app:layout_constraintTop_toTopOf="parent"
  180.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  181.         />
  182.     <androidx.viewpager2.widget.ViewPager2
  183.         android:id="@+id/myviepage2"
  184.         android:layout_width="match_parent"
  185.         android:layout_height="0dp"
  186.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  187.         app:layout_constraintBottom_toBottomOf="parent"
  188.         app:layout_constraintStart_toStartOf="parent"
  189.         />
  190. </androidx.constraintlayout.widget.ConstraintLayout>super.onCreate(savedInstanceState);<?xml version="1.0" encoding="utf-8"?>
  191. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  192.     xmlns:tools="http://schemas.android.com/tools"
  193.     android:layout_width="match_parent"
  194.     android:layout_height="match_parent"
  195.     xmlns:app="http://schemas.android.com/apk/res-auto"
  196.     tools:context=".tablayout.TabLayoutHomeFragment">
  197.     <com.google.android.material.tabs.TabLayout
  198.         android:id="@+id/mytablayout2"
  199.         android:layout_width="match_parent"
  200.         android:layout_height="wrap_content"
  201.         app:tabMode="auto"
  202.         app:tabGravity="start"
  203.         app:tabBackground="@color/pink"
  204.         app:tabTextColor="@color/white"
  205.         app:layout_constraintStart_toStartOf="parent"
  206.         app:layout_constraintTop_toTopOf="parent"
  207.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  208.         />
  209.     <androidx.viewpager2.widget.ViewPager2
  210.         android:id="@+id/myviepage2"
  211.         android:layout_width="match_parent"
  212.         android:layout_height="0dp"
  213.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  214.         app:layout_constraintBottom_toBottomOf="parent"
  215.         app:layout_constraintStart_toStartOf="parent"
  216.         />
  217. </androidx.constraintlayout.widget.ConstraintLayout>if (getArguments() != null) {<?xml version="1.0" encoding="utf-8"?>
  218. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  219.     xmlns:app="http://schemas.android.com/apk/res-auto"
  220.     xmlns:tools="http://schemas.android.com/tools"
  221.     android:layout_width="match_parent"
  222.     android:layout_height="match_parent"
  223.     tools:context=".ViewPager2TabLayoutActivity">
  224.    
  225.     <androidx.fragment.app.FragmentContainerView
  226. <?xml version="1.0" encoding="utf-8"?>
  227. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  228.     xmlns:tools="http://schemas.android.com/tools"
  229.     android:layout_width="match_parent"
  230.     android:layout_height="match_parent"
  231.     xmlns:app="http://schemas.android.com/apk/res-auto"
  232.     tools:context=".tablayout.TabLayoutHomeFragment">
  233.     <com.google.android.material.tabs.TabLayout
  234.         android:id="@+id/mytablayout2"
  235.         android:layout_width="match_parent"
  236.         android:layout_height="wrap_content"
  237.         app:tabMode="auto"
  238.         app:tabGravity="start"
  239.         app:tabBackground="@color/pink"
  240.         app:tabTextColor="@color/white"
  241.         app:layout_constraintStart_toStartOf="parent"
  242.         app:layout_constraintTop_toTopOf="parent"
  243.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  244.         />
  245.     <androidx.viewpager2.widget.ViewPager2
  246.         android:id="@+id/myviepage2"
  247.         android:layout_width="match_parent"
  248.         android:layout_height="0dp"
  249.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  250.         app:layout_constraintBottom_toBottomOf="parent"
  251.         app:layout_constraintStart_toStartOf="parent"
  252.         />
  253. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  254. <?xml version="1.0" encoding="utf-8"?>
  255. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  256.     xmlns:tools="http://schemas.android.com/tools"
  257.     android:layout_width="match_parent"
  258.     android:layout_height="match_parent"
  259.     xmlns:app="http://schemas.android.com/apk/res-auto"
  260.     tools:context=".tablayout.TabLayoutHomeFragment">
  261.     <com.google.android.material.tabs.TabLayout
  262.         android:id="@+id/mytablayout2"
  263.         android:layout_width="match_parent"
  264.         android:layout_height="wrap_content"
  265.         app:tabMode="auto"
  266.         app:tabGravity="start"
  267.         app:tabBackground="@color/pink"
  268.         app:tabTextColor="@color/white"
  269.         app:layout_constraintStart_toStartOf="parent"
  270.         app:layout_constraintTop_toTopOf="parent"
  271.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  272.         />
  273.     <androidx.viewpager2.widget.ViewPager2
  274.         android:id="@+id/myviepage2"
  275.         android:layout_width="match_parent"
  276.         android:layout_height="0dp"
  277.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  278.         app:layout_constraintBottom_toBottomOf="parent"
  279.         app:layout_constraintStart_toStartOf="parent"
  280.         />
  281. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  282. <?xml version="1.0" encoding="utf-8"?>
  283. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  284.     xmlns:tools="http://schemas.android.com/tools"
  285.     android:layout_width="match_parent"
  286.     android:layout_height="match_parent"
  287.     xmlns:app="http://schemas.android.com/apk/res-auto"
  288.     tools:context=".tablayout.TabLayoutHomeFragment">
  289.     <com.google.android.material.tabs.TabLayout
  290.         android:id="@+id/mytablayout2"
  291.         android:layout_width="match_parent"
  292.         android:layout_height="wrap_content"
  293.         app:tabMode="auto"
  294.         app:tabGravity="start"
  295.         app:tabBackground="@color/pink"
  296.         app:tabTextColor="@color/white"
  297.         app:layout_constraintStart_toStartOf="parent"
  298.         app:layout_constraintTop_toTopOf="parent"
  299.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  300.         />
  301.     <androidx.viewpager2.widget.ViewPager2
  302.         android:id="@+id/myviepage2"
  303.         android:layout_width="match_parent"
  304.         android:layout_height="0dp"
  305.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  306.         app:layout_constraintBottom_toBottomOf="parent"
  307.         app:layout_constraintStart_toStartOf="parent"
  308.         />
  309. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  310. <?xml version="1.0" encoding="utf-8"?>
  311. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  312.     xmlns:tools="http://schemas.android.com/tools"
  313.     android:layout_width="match_parent"
  314.     android:layout_height="match_parent"
  315.     xmlns:app="http://schemas.android.com/apk/res-auto"
  316.     tools:context=".tablayout.TabLayoutHomeFragment">
  317.     <com.google.android.material.tabs.TabLayout
  318.         android:id="@+id/mytablayout2"
  319.         android:layout_width="match_parent"
  320.         android:layout_height="wrap_content"
  321.         app:tabMode="auto"
  322.         app:tabGravity="start"
  323.         app:tabBackground="@color/pink"
  324.         app:tabTextColor="@color/white"
  325.         app:layout_constraintStart_toStartOf="parent"
  326.         app:layout_constraintTop_toTopOf="parent"
  327.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  328.         />
  329.     <androidx.viewpager2.widget.ViewPager2
  330.         android:id="@+id/myviepage2"
  331.         android:layout_width="match_parent"
  332.         android:layout_height="0dp"
  333.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  334.         app:layout_constraintBottom_toBottomOf="parent"
  335.         app:layout_constraintStart_toStartOf="parent"
  336.         />
  337. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  338. <?xml version="1.0" encoding="utf-8"?>
  339. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  340.     xmlns:tools="http://schemas.android.com/tools"
  341.     android:layout_width="match_parent"
  342.     android:layout_height="match_parent"
  343.     xmlns:app="http://schemas.android.com/apk/res-auto"
  344.     tools:context=".tablayout.TabLayoutHomeFragment">
  345.     <com.google.android.material.tabs.TabLayout
  346.         android:id="@+id/mytablayout2"
  347.         android:layout_width="match_parent"
  348.         android:layout_height="wrap_content"
  349.         app:tabMode="auto"
  350.         app:tabGravity="start"
  351.         app:tabBackground="@color/pink"
  352.         app:tabTextColor="@color/white"
  353.         app:layout_constraintStart_toStartOf="parent"
  354.         app:layout_constraintTop_toTopOf="parent"
  355.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  356.         />
  357.     <androidx.viewpager2.widget.ViewPager2
  358.         android:id="@+id/myviepage2"
  359.         android:layout_width="match_parent"
  360.         android:layout_height="0dp"
  361.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  362.         app:layout_constraintBottom_toBottomOf="parent"
  363.         app:layout_constraintStart_toStartOf="parent"
  364.         />
  365. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  366.     <com.google.android.material.bottomnavigation.BottomNavigationView
  367. <?xml version="1.0" encoding="utf-8"?>
  368. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  369.     xmlns:tools="http://schemas.android.com/tools"
  370.     android:layout_width="match_parent"
  371.     android:layout_height="match_parent"
  372.     xmlns:app="http://schemas.android.com/apk/res-auto"
  373.     tools:context=".tablayout.TabLayoutHomeFragment">
  374.     <com.google.android.material.tabs.TabLayout
  375.         android:id="@+id/mytablayout2"
  376.         android:layout_width="match_parent"
  377.         android:layout_height="wrap_content"
  378.         app:tabMode="auto"
  379.         app:tabGravity="start"
  380.         app:tabBackground="@color/pink"
  381.         app:tabTextColor="@color/white"
  382.         app:layout_constraintStart_toStartOf="parent"
  383.         app:layout_constraintTop_toTopOf="parent"
  384.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  385.         />
  386.     <androidx.viewpager2.widget.ViewPager2
  387.         android:id="@+id/myviepage2"
  388.         android:layout_width="match_parent"
  389.         android:layout_height="0dp"
  390.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  391.         app:layout_constraintBottom_toBottomOf="parent"
  392.         app:layout_constraintStart_toStartOf="parent"
  393.         />
  394. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  395. <?xml version="1.0" encoding="utf-8"?>
  396. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  397.     xmlns:tools="http://schemas.android.com/tools"
  398.     android:layout_width="match_parent"
  399.     android:layout_height="match_parent"
  400.     xmlns:app="http://schemas.android.com/apk/res-auto"
  401.     tools:context=".tablayout.TabLayoutHomeFragment">
  402.     <com.google.android.material.tabs.TabLayout
  403.         android:id="@+id/mytablayout2"
  404.         android:layout_width="match_parent"
  405.         android:layout_height="wrap_content"
  406.         app:tabMode="auto"
  407.         app:tabGravity="start"
  408.         app:tabBackground="@color/pink"
  409.         app:tabTextColor="@color/white"
  410.         app:layout_constraintStart_toStartOf="parent"
  411.         app:layout_constraintTop_toTopOf="parent"
  412.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  413.         />
  414.     <androidx.viewpager2.widget.ViewPager2
  415.         android:id="@+id/myviepage2"
  416.         android:layout_width="match_parent"
  417.         android:layout_height="0dp"
  418.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  419.         app:layout_constraintBottom_toBottomOf="parent"
  420.         app:layout_constraintStart_toStartOf="parent"
  421.         />
  422. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  423. <?xml version="1.0" encoding="utf-8"?>
  424. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  425.     xmlns:tools="http://schemas.android.com/tools"
  426.     android:layout_width="match_parent"
  427.     android:layout_height="match_parent"
  428.     xmlns:app="http://schemas.android.com/apk/res-auto"
  429.     tools:context=".tablayout.TabLayoutHomeFragment">
  430.     <com.google.android.material.tabs.TabLayout
  431.         android:id="@+id/mytablayout2"
  432.         android:layout_width="match_parent"
  433.         android:layout_height="wrap_content"
  434.         app:tabMode="auto"
  435.         app:tabGravity="start"
  436.         app:tabBackground="@color/pink"
  437.         app:tabTextColor="@color/white"
  438.         app:layout_constraintStart_toStartOf="parent"
  439.         app:layout_constraintTop_toTopOf="parent"
  440.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  441.         />
  442.     <androidx.viewpager2.widget.ViewPager2
  443.         android:id="@+id/myviepage2"
  444.         android:layout_width="match_parent"
  445.         android:layout_height="0dp"
  446.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  447.         app:layout_constraintBottom_toBottomOf="parent"
  448.         app:layout_constraintStart_toStartOf="parent"
  449.         />
  450. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  451. <?xml version="1.0" encoding="utf-8"?>
  452. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  453.     xmlns:tools="http://schemas.android.com/tools"
  454.     android:layout_width="match_parent"
  455.     android:layout_height="match_parent"
  456.     xmlns:app="http://schemas.android.com/apk/res-auto"
  457.     tools:context=".tablayout.TabLayoutHomeFragment">
  458.     <com.google.android.material.tabs.TabLayout
  459.         android:id="@+id/mytablayout2"
  460.         android:layout_width="match_parent"
  461.         android:layout_height="wrap_content"
  462.         app:tabMode="auto"
  463.         app:tabGravity="start"
  464.         app:tabBackground="@color/pink"
  465.         app:tabTextColor="@color/white"
  466.         app:layout_constraintStart_toStartOf="parent"
  467.         app:layout_constraintTop_toTopOf="parent"
  468.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  469.         />
  470.     <androidx.viewpager2.widget.ViewPager2
  471.         android:id="@+id/myviepage2"
  472.         android:layout_width="match_parent"
  473.         android:layout_height="0dp"
  474.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  475.         app:layout_constraintBottom_toBottomOf="parent"
  476.         app:layout_constraintStart_toStartOf="parent"
  477.         />
  478. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  479. <?xml version="1.0" encoding="utf-8"?>
  480. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  481.     xmlns:tools="http://schemas.android.com/tools"
  482.     android:layout_width="match_parent"
  483.     android:layout_height="match_parent"
  484.     xmlns:app="http://schemas.android.com/apk/res-auto"
  485.     tools:context=".tablayout.TabLayoutHomeFragment">
  486.     <com.google.android.material.tabs.TabLayout
  487.         android:id="@+id/mytablayout2"
  488.         android:layout_width="match_parent"
  489.         android:layout_height="wrap_content"
  490.         app:tabMode="auto"
  491.         app:tabGravity="start"
  492.         app:tabBackground="@color/pink"
  493.         app:tabTextColor="@color/white"
  494.         app:layout_constraintStart_toStartOf="parent"
  495.         app:layout_constraintTop_toTopOf="parent"
  496.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  497.         />
  498.     <androidx.viewpager2.widget.ViewPager2
  499.         android:id="@+id/myviepage2"
  500.         android:layout_width="match_parent"
  501.         android:layout_height="0dp"
  502.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  503.         app:layout_constraintBottom_toBottomOf="parent"
  504.         app:layout_constraintStart_toStartOf="parent"
  505.         />
  506. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  507. <?xml version="1.0" encoding="utf-8"?>
  508. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  509.     xmlns:tools="http://schemas.android.com/tools"
  510.     android:layout_width="match_parent"
  511.     android:layout_height="match_parent"
  512.     xmlns:app="http://schemas.android.com/apk/res-auto"
  513.     tools:context=".tablayout.TabLayoutHomeFragment">
  514.     <com.google.android.material.tabs.TabLayout
  515.         android:id="@+id/mytablayout2"
  516.         android:layout_width="match_parent"
  517.         android:layout_height="wrap_content"
  518.         app:tabMode="auto"
  519.         app:tabGravity="start"
  520.         app:tabBackground="@color/pink"
  521.         app:tabTextColor="@color/white"
  522.         app:layout_constraintStart_toStartOf="parent"
  523.         app:layout_constraintTop_toTopOf="parent"
  524.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  525.         />
  526.     <androidx.viewpager2.widget.ViewPager2
  527.         android:id="@+id/myviepage2"
  528.         android:layout_width="match_parent"
  529.         android:layout_height="0dp"
  530.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  531.         app:layout_constraintBottom_toBottomOf="parent"
  532.         app:layout_constraintStart_toStartOf="parent"
  533.         />
  534. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  535. <?xml version="1.0" encoding="utf-8"?>
  536. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  537.     xmlns:tools="http://schemas.android.com/tools"
  538.     android:layout_width="match_parent"
  539.     android:layout_height="match_parent"
  540.     xmlns:app="http://schemas.android.com/apk/res-auto"
  541.     tools:context=".tablayout.TabLayoutHomeFragment">
  542.     <com.google.android.material.tabs.TabLayout
  543.         android:id="@+id/mytablayout2"
  544.         android:layout_width="match_parent"
  545.         android:layout_height="wrap_content"
  546.         app:tabMode="auto"
  547.         app:tabGravity="start"
  548.         app:tabBackground="@color/pink"
  549.         app:tabTextColor="@color/white"
  550.         app:layout_constraintStart_toStartOf="parent"
  551.         app:layout_constraintTop_toTopOf="parent"
  552.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  553.         />
  554.     <androidx.viewpager2.widget.ViewPager2
  555.         android:id="@+id/myviepage2"
  556.         android:layout_width="match_parent"
  557.         android:layout_height="0dp"
  558.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  559.         app:layout_constraintBottom_toBottomOf="parent"
  560.         app:layout_constraintStart_toStartOf="parent"
  561.         />
  562. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  563. <?xml version="1.0" encoding="utf-8"?>
  564. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  565.     xmlns:tools="http://schemas.android.com/tools"
  566.     android:layout_width="match_parent"
  567.     android:layout_height="match_parent"
  568.     xmlns:app="http://schemas.android.com/apk/res-auto"
  569.     tools:context=".tablayout.TabLayoutHomeFragment">
  570.     <com.google.android.material.tabs.TabLayout
  571.         android:id="@+id/mytablayout2"
  572.         android:layout_width="match_parent"
  573.         android:layout_height="wrap_content"
  574.         app:tabMode="auto"
  575.         app:tabGravity="start"
  576.         app:tabBackground="@color/pink"
  577.         app:tabTextColor="@color/white"
  578.         app:layout_constraintStart_toStartOf="parent"
  579.         app:layout_constraintTop_toTopOf="parent"
  580.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  581.         />
  582.     <androidx.viewpager2.widget.ViewPager2
  583.         android:id="@+id/myviepage2"
  584.         android:layout_width="match_parent"
  585.         android:layout_height="0dp"
  586.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  587.         app:layout_constraintBottom_toBottomOf="parent"
  588.         app:layout_constraintStart_toStartOf="parent"
  589.         />
  590. </androidx.constraintlayout.widget.ConstraintLayout>/>
  591. </androidx.constraintlayout.widget.ConstraintLayout>mParam1 = getArguments().getString(ARG_PARAM1);<?xml version="1.0" encoding="utf-8"?>
  592. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  593.     xmlns:app="http://schemas.android.com/apk/res-auto"
  594.     xmlns:tools="http://schemas.android.com/tools"
  595.     android:layout_width="match_parent"
  596.     android:layout_height="match_parent"
  597.     tools:context=".ViewPager2TabLayoutActivity">
  598.    
  599.     <androidx.fragment.app.FragmentContainerView
  600. <?xml version="1.0" encoding="utf-8"?>
  601. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  602.     xmlns:tools="http://schemas.android.com/tools"
  603.     android:layout_width="match_parent"
  604.     android:layout_height="match_parent"
  605.     xmlns:app="http://schemas.android.com/apk/res-auto"
  606.     tools:context=".tablayout.TabLayoutHomeFragment">
  607.     <com.google.android.material.tabs.TabLayout
  608.         android:id="@+id/mytablayout2"
  609.         android:layout_width="match_parent"
  610.         android:layout_height="wrap_content"
  611.         app:tabMode="auto"
  612.         app:tabGravity="start"
  613.         app:tabBackground="@color/pink"
  614.         app:tabTextColor="@color/white"
  615.         app:layout_constraintStart_toStartOf="parent"
  616.         app:layout_constraintTop_toTopOf="parent"
  617.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  618.         />
  619.     <androidx.viewpager2.widget.ViewPager2
  620.         android:id="@+id/myviepage2"
  621.         android:layout_width="match_parent"
  622.         android:layout_height="0dp"
  623.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  624.         app:layout_constraintBottom_toBottomOf="parent"
  625.         app:layout_constraintStart_toStartOf="parent"
  626.         />
  627. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  628. <?xml version="1.0" encoding="utf-8"?>
  629. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  630.     xmlns:tools="http://schemas.android.com/tools"
  631.     android:layout_width="match_parent"
  632.     android:layout_height="match_parent"
  633.     xmlns:app="http://schemas.android.com/apk/res-auto"
  634.     tools:context=".tablayout.TabLayoutHomeFragment">
  635.     <com.google.android.material.tabs.TabLayout
  636.         android:id="@+id/mytablayout2"
  637.         android:layout_width="match_parent"
  638.         android:layout_height="wrap_content"
  639.         app:tabMode="auto"
  640.         app:tabGravity="start"
  641.         app:tabBackground="@color/pink"
  642.         app:tabTextColor="@color/white"
  643.         app:layout_constraintStart_toStartOf="parent"
  644.         app:layout_constraintTop_toTopOf="parent"
  645.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  646.         />
  647.     <androidx.viewpager2.widget.ViewPager2
  648.         android:id="@+id/myviepage2"
  649.         android:layout_width="match_parent"
  650.         android:layout_height="0dp"
  651.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  652.         app:layout_constraintBottom_toBottomOf="parent"
  653.         app:layout_constraintStart_toStartOf="parent"
  654.         />
  655. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  656. <?xml version="1.0" encoding="utf-8"?>
  657. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  658.     xmlns:tools="http://schemas.android.com/tools"
  659.     android:layout_width="match_parent"
  660.     android:layout_height="match_parent"
  661.     xmlns:app="http://schemas.android.com/apk/res-auto"
  662.     tools:context=".tablayout.TabLayoutHomeFragment">
  663.     <com.google.android.material.tabs.TabLayout
  664.         android:id="@+id/mytablayout2"
  665.         android:layout_width="match_parent"
  666.         android:layout_height="wrap_content"
  667.         app:tabMode="auto"
  668.         app:tabGravity="start"
  669.         app:tabBackground="@color/pink"
  670.         app:tabTextColor="@color/white"
  671.         app:layout_constraintStart_toStartOf="parent"
  672.         app:layout_constraintTop_toTopOf="parent"
  673.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  674.         />
  675.     <androidx.viewpager2.widget.ViewPager2
  676.         android:id="@+id/myviepage2"
  677.         android:layout_width="match_parent"
  678.         android:layout_height="0dp"
  679.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  680.         app:layout_constraintBottom_toBottomOf="parent"
  681.         app:layout_constraintStart_toStartOf="parent"
  682.         />
  683. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  684. <?xml version="1.0" encoding="utf-8"?>
  685. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  686.     xmlns:tools="http://schemas.android.com/tools"
  687.     android:layout_width="match_parent"
  688.     android:layout_height="match_parent"
  689.     xmlns:app="http://schemas.android.com/apk/res-auto"
  690.     tools:context=".tablayout.TabLayoutHomeFragment">
  691.     <com.google.android.material.tabs.TabLayout
  692.         android:id="@+id/mytablayout2"
  693.         android:layout_width="match_parent"
  694.         android:layout_height="wrap_content"
  695.         app:tabMode="auto"
  696.         app:tabGravity="start"
  697.         app:tabBackground="@color/pink"
  698.         app:tabTextColor="@color/white"
  699.         app:layout_constraintStart_toStartOf="parent"
  700.         app:layout_constraintTop_toTopOf="parent"
  701.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  702.         />
  703.     <androidx.viewpager2.widget.ViewPager2
  704.         android:id="@+id/myviepage2"
  705.         android:layout_width="match_parent"
  706.         android:layout_height="0dp"
  707.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  708.         app:layout_constraintBottom_toBottomOf="parent"
  709.         app:layout_constraintStart_toStartOf="parent"
  710.         />
  711. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  712. <?xml version="1.0" encoding="utf-8"?>
  713. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  714.     xmlns:tools="http://schemas.android.com/tools"
  715.     android:layout_width="match_parent"
  716.     android:layout_height="match_parent"
  717.     xmlns:app="http://schemas.android.com/apk/res-auto"
  718.     tools:context=".tablayout.TabLayoutHomeFragment">
  719.     <com.google.android.material.tabs.TabLayout
  720.         android:id="@+id/mytablayout2"
  721.         android:layout_width="match_parent"
  722.         android:layout_height="wrap_content"
  723.         app:tabMode="auto"
  724.         app:tabGravity="start"
  725.         app:tabBackground="@color/pink"
  726.         app:tabTextColor="@color/white"
  727.         app:layout_constraintStart_toStartOf="parent"
  728.         app:layout_constraintTop_toTopOf="parent"
  729.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  730.         />
  731.     <androidx.viewpager2.widget.ViewPager2
  732.         android:id="@+id/myviepage2"
  733.         android:layout_width="match_parent"
  734.         android:layout_height="0dp"
  735.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  736.         app:layout_constraintBottom_toBottomOf="parent"
  737.         app:layout_constraintStart_toStartOf="parent"
  738.         />
  739. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  740.     <com.google.android.material.bottomnavigation.BottomNavigationView
  741. <?xml version="1.0" encoding="utf-8"?>
  742. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  743.     xmlns:tools="http://schemas.android.com/tools"
  744.     android:layout_width="match_parent"
  745.     android:layout_height="match_parent"
  746.     xmlns:app="http://schemas.android.com/apk/res-auto"
  747.     tools:context=".tablayout.TabLayoutHomeFragment">
  748.     <com.google.android.material.tabs.TabLayout
  749.         android:id="@+id/mytablayout2"
  750.         android:layout_width="match_parent"
  751.         android:layout_height="wrap_content"
  752.         app:tabMode="auto"
  753.         app:tabGravity="start"
  754.         app:tabBackground="@color/pink"
  755.         app:tabTextColor="@color/white"
  756.         app:layout_constraintStart_toStartOf="parent"
  757.         app:layout_constraintTop_toTopOf="parent"
  758.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  759.         />
  760.     <androidx.viewpager2.widget.ViewPager2
  761.         android:id="@+id/myviepage2"
  762.         android:layout_width="match_parent"
  763.         android:layout_height="0dp"
  764.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  765.         app:layout_constraintBottom_toBottomOf="parent"
  766.         app:layout_constraintStart_toStartOf="parent"
  767.         />
  768. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  769. <?xml version="1.0" encoding="utf-8"?>
  770. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  771.     xmlns:tools="http://schemas.android.com/tools"
  772.     android:layout_width="match_parent"
  773.     android:layout_height="match_parent"
  774.     xmlns:app="http://schemas.android.com/apk/res-auto"
  775.     tools:context=".tablayout.TabLayoutHomeFragment">
  776.     <com.google.android.material.tabs.TabLayout
  777.         android:id="@+id/mytablayout2"
  778.         android:layout_width="match_parent"
  779.         android:layout_height="wrap_content"
  780.         app:tabMode="auto"
  781.         app:tabGravity="start"
  782.         app:tabBackground="@color/pink"
  783.         app:tabTextColor="@color/white"
  784.         app:layout_constraintStart_toStartOf="parent"
  785.         app:layout_constraintTop_toTopOf="parent"
  786.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  787.         />
  788.     <androidx.viewpager2.widget.ViewPager2
  789.         android:id="@+id/myviepage2"
  790.         android:layout_width="match_parent"
  791.         android:layout_height="0dp"
  792.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  793.         app:layout_constraintBottom_toBottomOf="parent"
  794.         app:layout_constraintStart_toStartOf="parent"
  795.         />
  796. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  797. <?xml version="1.0" encoding="utf-8"?>
  798. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  799.     xmlns:tools="http://schemas.android.com/tools"
  800.     android:layout_width="match_parent"
  801.     android:layout_height="match_parent"
  802.     xmlns:app="http://schemas.android.com/apk/res-auto"
  803.     tools:context=".tablayout.TabLayoutHomeFragment">
  804.     <com.google.android.material.tabs.TabLayout
  805.         android:id="@+id/mytablayout2"
  806.         android:layout_width="match_parent"
  807.         android:layout_height="wrap_content"
  808.         app:tabMode="auto"
  809.         app:tabGravity="start"
  810.         app:tabBackground="@color/pink"
  811.         app:tabTextColor="@color/white"
  812.         app:layout_constraintStart_toStartOf="parent"
  813.         app:layout_constraintTop_toTopOf="parent"
  814.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  815.         />
  816.     <androidx.viewpager2.widget.ViewPager2
  817.         android:id="@+id/myviepage2"
  818.         android:layout_width="match_parent"
  819.         android:layout_height="0dp"
  820.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  821.         app:layout_constraintBottom_toBottomOf="parent"
  822.         app:layout_constraintStart_toStartOf="parent"
  823.         />
  824. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  825. <?xml version="1.0" encoding="utf-8"?>
  826. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  827.     xmlns:tools="http://schemas.android.com/tools"
  828.     android:layout_width="match_parent"
  829.     android:layout_height="match_parent"
  830.     xmlns:app="http://schemas.android.com/apk/res-auto"
  831.     tools:context=".tablayout.TabLayoutHomeFragment">
  832.     <com.google.android.material.tabs.TabLayout
  833.         android:id="@+id/mytablayout2"
  834.         android:layout_width="match_parent"
  835.         android:layout_height="wrap_content"
  836.         app:tabMode="auto"
  837.         app:tabGravity="start"
  838.         app:tabBackground="@color/pink"
  839.         app:tabTextColor="@color/white"
  840.         app:layout_constraintStart_toStartOf="parent"
  841.         app:layout_constraintTop_toTopOf="parent"
  842.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  843.         />
  844.     <androidx.viewpager2.widget.ViewPager2
  845.         android:id="@+id/myviepage2"
  846.         android:layout_width="match_parent"
  847.         android:layout_height="0dp"
  848.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  849.         app:layout_constraintBottom_toBottomOf="parent"
  850.         app:layout_constraintStart_toStartOf="parent"
  851.         />
  852. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  853. <?xml version="1.0" encoding="utf-8"?>
  854. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  855.     xmlns:tools="http://schemas.android.com/tools"
  856.     android:layout_width="match_parent"
  857.     android:layout_height="match_parent"
  858.     xmlns:app="http://schemas.android.com/apk/res-auto"
  859.     tools:context=".tablayout.TabLayoutHomeFragment">
  860.     <com.google.android.material.tabs.TabLayout
  861.         android:id="@+id/mytablayout2"
  862.         android:layout_width="match_parent"
  863.         android:layout_height="wrap_content"
  864.         app:tabMode="auto"
  865.         app:tabGravity="start"
  866.         app:tabBackground="@color/pink"
  867.         app:tabTextColor="@color/white"
  868.         app:layout_constraintStart_toStartOf="parent"
  869.         app:layout_constraintTop_toTopOf="parent"
  870.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  871.         />
  872.     <androidx.viewpager2.widget.ViewPager2
  873.         android:id="@+id/myviepage2"
  874.         android:layout_width="match_parent"
  875.         android:layout_height="0dp"
  876.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  877.         app:layout_constraintBottom_toBottomOf="parent"
  878.         app:layout_constraintStart_toStartOf="parent"
  879.         />
  880. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  881. <?xml version="1.0" encoding="utf-8"?>
  882. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  883.     xmlns:tools="http://schemas.android.com/tools"
  884.     android:layout_width="match_parent"
  885.     android:layout_height="match_parent"
  886.     xmlns:app="http://schemas.android.com/apk/res-auto"
  887.     tools:context=".tablayout.TabLayoutHomeFragment">
  888.     <com.google.android.material.tabs.TabLayout
  889.         android:id="@+id/mytablayout2"
  890.         android:layout_width="match_parent"
  891.         android:layout_height="wrap_content"
  892.         app:tabMode="auto"
  893.         app:tabGravity="start"
  894.         app:tabBackground="@color/pink"
  895.         app:tabTextColor="@color/white"
  896.         app:layout_constraintStart_toStartOf="parent"
  897.         app:layout_constraintTop_toTopOf="parent"
  898.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  899.         />
  900.     <androidx.viewpager2.widget.ViewPager2
  901.         android:id="@+id/myviepage2"
  902.         android:layout_width="match_parent"
  903.         android:layout_height="0dp"
  904.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  905.         app:layout_constraintBottom_toBottomOf="parent"
  906.         app:layout_constraintStart_toStartOf="parent"
  907.         />
  908. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  909. <?xml version="1.0" encoding="utf-8"?>
  910. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  911.     xmlns:tools="http://schemas.android.com/tools"
  912.     android:layout_width="match_parent"
  913.     android:layout_height="match_parent"
  914.     xmlns:app="http://schemas.android.com/apk/res-auto"
  915.     tools:context=".tablayout.TabLayoutHomeFragment">
  916.     <com.google.android.material.tabs.TabLayout
  917.         android:id="@+id/mytablayout2"
  918.         android:layout_width="match_parent"
  919.         android:layout_height="wrap_content"
  920.         app:tabMode="auto"
  921.         app:tabGravity="start"
  922.         app:tabBackground="@color/pink"
  923.         app:tabTextColor="@color/white"
  924.         app:layout_constraintStart_toStartOf="parent"
  925.         app:layout_constraintTop_toTopOf="parent"
  926.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  927.         />
  928.     <androidx.viewpager2.widget.ViewPager2
  929.         android:id="@+id/myviepage2"
  930.         android:layout_width="match_parent"
  931.         android:layout_height="0dp"
  932.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  933.         app:layout_constraintBottom_toBottomOf="parent"
  934.         app:layout_constraintStart_toStartOf="parent"
  935.         />
  936. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  937. <?xml version="1.0" encoding="utf-8"?>
  938. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  939.     xmlns:tools="http://schemas.android.com/tools"
  940.     android:layout_width="match_parent"
  941.     android:layout_height="match_parent"
  942.     xmlns:app="http://schemas.android.com/apk/res-auto"
  943.     tools:context=".tablayout.TabLayoutHomeFragment">
  944.     <com.google.android.material.tabs.TabLayout
  945.         android:id="@+id/mytablayout2"
  946.         android:layout_width="match_parent"
  947.         android:layout_height="wrap_content"
  948.         app:tabMode="auto"
  949.         app:tabGravity="start"
  950.         app:tabBackground="@color/pink"
  951.         app:tabTextColor="@color/white"
  952.         app:layout_constraintStart_toStartOf="parent"
  953.         app:layout_constraintTop_toTopOf="parent"
  954.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  955.         />
  956.     <androidx.viewpager2.widget.ViewPager2
  957.         android:id="@+id/myviepage2"
  958.         android:layout_width="match_parent"
  959.         android:layout_height="0dp"
  960.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  961.         app:layout_constraintBottom_toBottomOf="parent"
  962.         app:layout_constraintStart_toStartOf="parent"
  963.         />
  964. </androidx.constraintlayout.widget.ConstraintLayout>/>
  965. </androidx.constraintlayout.widget.ConstraintLayout>mParam2 = getArguments().getString(ARG_PARAM2);<?xml version="1.0" encoding="utf-8"?>
  966. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  967.     xmlns:tools="http://schemas.android.com/tools"
  968.     android:layout_width="match_parent"
  969.     android:layout_height="match_parent"
  970.     xmlns:app="http://schemas.android.com/apk/res-auto"
  971.     tools:context=".tablayout.TabLayoutHomeFragment">
  972.     <com.google.android.material.tabs.TabLayout
  973.         android:id="@+id/mytablayout2"
  974.         android:layout_width="match_parent"
  975.         android:layout_height="wrap_content"
  976.         app:tabMode="auto"
  977.         app:tabGravity="start"
  978.         app:tabBackground="@color/pink"
  979.         app:tabTextColor="@color/white"
  980.         app:layout_constraintStart_toStartOf="parent"
  981.         app:layout_constraintTop_toTopOf="parent"
  982.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  983.         />
  984.     <androidx.viewpager2.widget.ViewPager2
  985.         android:id="@+id/myviepage2"
  986.         android:layout_width="match_parent"
  987.         android:layout_height="0dp"
  988.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  989.         app:layout_constraintBottom_toBottomOf="parent"
  990.         app:layout_constraintStart_toStartOf="parent"
  991.         />
  992. </androidx.constraintlayout.widget.ConstraintLayout>}    }    @Override    public View onCreateView(<?xml version="1.0" encoding="utf-8"?>
  993. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  994.     xmlns:app="http://schemas.android.com/apk/res-auto"
  995.     xmlns:tools="http://schemas.android.com/tools"
  996.     android:layout_width="match_parent"
  997.     android:layout_height="match_parent"
  998.     tools:context=".ViewPager2TabLayoutActivity">
  999.    
  1000.     <androidx.fragment.app.FragmentContainerView
  1001. <?xml version="1.0" encoding="utf-8"?>
  1002. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1003.     xmlns:tools="http://schemas.android.com/tools"
  1004.     android:layout_width="match_parent"
  1005.     android:layout_height="match_parent"
  1006.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1007.     tools:context=".tablayout.TabLayoutHomeFragment">
  1008.     <com.google.android.material.tabs.TabLayout
  1009.         android:id="@+id/mytablayout2"
  1010.         android:layout_width="match_parent"
  1011.         android:layout_height="wrap_content"
  1012.         app:tabMode="auto"
  1013.         app:tabGravity="start"
  1014.         app:tabBackground="@color/pink"
  1015.         app:tabTextColor="@color/white"
  1016.         app:layout_constraintStart_toStartOf="parent"
  1017.         app:layout_constraintTop_toTopOf="parent"
  1018.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1019.         />
  1020.     <androidx.viewpager2.widget.ViewPager2
  1021.         android:id="@+id/myviepage2"
  1022.         android:layout_width="match_parent"
  1023.         android:layout_height="0dp"
  1024.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1025.         app:layout_constraintBottom_toBottomOf="parent"
  1026.         app:layout_constraintStart_toStartOf="parent"
  1027.         />
  1028. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  1029. <?xml version="1.0" encoding="utf-8"?>
  1030. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1031.     xmlns:tools="http://schemas.android.com/tools"
  1032.     android:layout_width="match_parent"
  1033.     android:layout_height="match_parent"
  1034.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1035.     tools:context=".tablayout.TabLayoutHomeFragment">
  1036.     <com.google.android.material.tabs.TabLayout
  1037.         android:id="@+id/mytablayout2"
  1038.         android:layout_width="match_parent"
  1039.         android:layout_height="wrap_content"
  1040.         app:tabMode="auto"
  1041.         app:tabGravity="start"
  1042.         app:tabBackground="@color/pink"
  1043.         app:tabTextColor="@color/white"
  1044.         app:layout_constraintStart_toStartOf="parent"
  1045.         app:layout_constraintTop_toTopOf="parent"
  1046.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1047.         />
  1048.     <androidx.viewpager2.widget.ViewPager2
  1049.         android:id="@+id/myviepage2"
  1050.         android:layout_width="match_parent"
  1051.         android:layout_height="0dp"
  1052.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1053.         app:layout_constraintBottom_toBottomOf="parent"
  1054.         app:layout_constraintStart_toStartOf="parent"
  1055.         />
  1056. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1057. <?xml version="1.0" encoding="utf-8"?>
  1058. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1059.     xmlns:tools="http://schemas.android.com/tools"
  1060.     android:layout_width="match_parent"
  1061.     android:layout_height="match_parent"
  1062.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1063.     tools:context=".tablayout.TabLayoutHomeFragment">
  1064.     <com.google.android.material.tabs.TabLayout
  1065.         android:id="@+id/mytablayout2"
  1066.         android:layout_width="match_parent"
  1067.         android:layout_height="wrap_content"
  1068.         app:tabMode="auto"
  1069.         app:tabGravity="start"
  1070.         app:tabBackground="@color/pink"
  1071.         app:tabTextColor="@color/white"
  1072.         app:layout_constraintStart_toStartOf="parent"
  1073.         app:layout_constraintTop_toTopOf="parent"
  1074.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1075.         />
  1076.     <androidx.viewpager2.widget.ViewPager2
  1077.         android:id="@+id/myviepage2"
  1078.         android:layout_width="match_parent"
  1079.         android:layout_height="0dp"
  1080.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1081.         app:layout_constraintBottom_toBottomOf="parent"
  1082.         app:layout_constraintStart_toStartOf="parent"
  1083.         />
  1084. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1085. <?xml version="1.0" encoding="utf-8"?>
  1086. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1087.     xmlns:tools="http://schemas.android.com/tools"
  1088.     android:layout_width="match_parent"
  1089.     android:layout_height="match_parent"
  1090.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1091.     tools:context=".tablayout.TabLayoutHomeFragment">
  1092.     <com.google.android.material.tabs.TabLayout
  1093.         android:id="@+id/mytablayout2"
  1094.         android:layout_width="match_parent"
  1095.         android:layout_height="wrap_content"
  1096.         app:tabMode="auto"
  1097.         app:tabGravity="start"
  1098.         app:tabBackground="@color/pink"
  1099.         app:tabTextColor="@color/white"
  1100.         app:layout_constraintStart_toStartOf="parent"
  1101.         app:layout_constraintTop_toTopOf="parent"
  1102.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1103.         />
  1104.     <androidx.viewpager2.widget.ViewPager2
  1105.         android:id="@+id/myviepage2"
  1106.         android:layout_width="match_parent"
  1107.         android:layout_height="0dp"
  1108.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1109.         app:layout_constraintBottom_toBottomOf="parent"
  1110.         app:layout_constraintStart_toStartOf="parent"
  1111.         />
  1112. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  1113. <?xml version="1.0" encoding="utf-8"?>
  1114. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1115.     xmlns:tools="http://schemas.android.com/tools"
  1116.     android:layout_width="match_parent"
  1117.     android:layout_height="match_parent"
  1118.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1119.     tools:context=".tablayout.TabLayoutHomeFragment">
  1120.     <com.google.android.material.tabs.TabLayout
  1121.         android:id="@+id/mytablayout2"
  1122.         android:layout_width="match_parent"
  1123.         android:layout_height="wrap_content"
  1124.         app:tabMode="auto"
  1125.         app:tabGravity="start"
  1126.         app:tabBackground="@color/pink"
  1127.         app:tabTextColor="@color/white"
  1128.         app:layout_constraintStart_toStartOf="parent"
  1129.         app:layout_constraintTop_toTopOf="parent"
  1130.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1131.         />
  1132.     <androidx.viewpager2.widget.ViewPager2
  1133.         android:id="@+id/myviepage2"
  1134.         android:layout_width="match_parent"
  1135.         android:layout_height="0dp"
  1136.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1137.         app:layout_constraintBottom_toBottomOf="parent"
  1138.         app:layout_constraintStart_toStartOf="parent"
  1139.         />
  1140. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  1141.     <com.google.android.material.bottomnavigation.BottomNavigationView
  1142. <?xml version="1.0" encoding="utf-8"?>
  1143. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1144.     xmlns:tools="http://schemas.android.com/tools"
  1145.     android:layout_width="match_parent"
  1146.     android:layout_height="match_parent"
  1147.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1148.     tools:context=".tablayout.TabLayoutHomeFragment">
  1149.     <com.google.android.material.tabs.TabLayout
  1150.         android:id="@+id/mytablayout2"
  1151.         android:layout_width="match_parent"
  1152.         android:layout_height="wrap_content"
  1153.         app:tabMode="auto"
  1154.         app:tabGravity="start"
  1155.         app:tabBackground="@color/pink"
  1156.         app:tabTextColor="@color/white"
  1157.         app:layout_constraintStart_toStartOf="parent"
  1158.         app:layout_constraintTop_toTopOf="parent"
  1159.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1160.         />
  1161.     <androidx.viewpager2.widget.ViewPager2
  1162.         android:id="@+id/myviepage2"
  1163.         android:layout_width="match_parent"
  1164.         android:layout_height="0dp"
  1165.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1166.         app:layout_constraintBottom_toBottomOf="parent"
  1167.         app:layout_constraintStart_toStartOf="parent"
  1168.         />
  1169. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  1170. <?xml version="1.0" encoding="utf-8"?>
  1171. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1172.     xmlns:tools="http://schemas.android.com/tools"
  1173.     android:layout_width="match_parent"
  1174.     android:layout_height="match_parent"
  1175.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1176.     tools:context=".tablayout.TabLayoutHomeFragment">
  1177.     <com.google.android.material.tabs.TabLayout
  1178.         android:id="@+id/mytablayout2"
  1179.         android:layout_width="match_parent"
  1180.         android:layout_height="wrap_content"
  1181.         app:tabMode="auto"
  1182.         app:tabGravity="start"
  1183.         app:tabBackground="@color/pink"
  1184.         app:tabTextColor="@color/white"
  1185.         app:layout_constraintStart_toStartOf="parent"
  1186.         app:layout_constraintTop_toTopOf="parent"
  1187.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1188.         />
  1189.     <androidx.viewpager2.widget.ViewPager2
  1190.         android:id="@+id/myviepage2"
  1191.         android:layout_width="match_parent"
  1192.         android:layout_height="0dp"
  1193.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1194.         app:layout_constraintBottom_toBottomOf="parent"
  1195.         app:layout_constraintStart_toStartOf="parent"
  1196.         />
  1197. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1198. <?xml version="1.0" encoding="utf-8"?>
  1199. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1200.     xmlns:tools="http://schemas.android.com/tools"
  1201.     android:layout_width="match_parent"
  1202.     android:layout_height="match_parent"
  1203.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1204.     tools:context=".tablayout.TabLayoutHomeFragment">
  1205.     <com.google.android.material.tabs.TabLayout
  1206.         android:id="@+id/mytablayout2"
  1207.         android:layout_width="match_parent"
  1208.         android:layout_height="wrap_content"
  1209.         app:tabMode="auto"
  1210.         app:tabGravity="start"
  1211.         app:tabBackground="@color/pink"
  1212.         app:tabTextColor="@color/white"
  1213.         app:layout_constraintStart_toStartOf="parent"
  1214.         app:layout_constraintTop_toTopOf="parent"
  1215.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1216.         />
  1217.     <androidx.viewpager2.widget.ViewPager2
  1218.         android:id="@+id/myviepage2"
  1219.         android:layout_width="match_parent"
  1220.         android:layout_height="0dp"
  1221.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1222.         app:layout_constraintBottom_toBottomOf="parent"
  1223.         app:layout_constraintStart_toStartOf="parent"
  1224.         />
  1225. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1226. <?xml version="1.0" encoding="utf-8"?>
  1227. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1228.     xmlns:tools="http://schemas.android.com/tools"
  1229.     android:layout_width="match_parent"
  1230.     android:layout_height="match_parent"
  1231.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1232.     tools:context=".tablayout.TabLayoutHomeFragment">
  1233.     <com.google.android.material.tabs.TabLayout
  1234.         android:id="@+id/mytablayout2"
  1235.         android:layout_width="match_parent"
  1236.         android:layout_height="wrap_content"
  1237.         app:tabMode="auto"
  1238.         app:tabGravity="start"
  1239.         app:tabBackground="@color/pink"
  1240.         app:tabTextColor="@color/white"
  1241.         app:layout_constraintStart_toStartOf="parent"
  1242.         app:layout_constraintTop_toTopOf="parent"
  1243.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1244.         />
  1245.     <androidx.viewpager2.widget.ViewPager2
  1246.         android:id="@+id/myviepage2"
  1247.         android:layout_width="match_parent"
  1248.         android:layout_height="0dp"
  1249.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1250.         app:layout_constraintBottom_toBottomOf="parent"
  1251.         app:layout_constraintStart_toStartOf="parent"
  1252.         />
  1253. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  1254. <?xml version="1.0" encoding="utf-8"?>
  1255. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1256.     xmlns:tools="http://schemas.android.com/tools"
  1257.     android:layout_width="match_parent"
  1258.     android:layout_height="match_parent"
  1259.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1260.     tools:context=".tablayout.TabLayoutHomeFragment">
  1261.     <com.google.android.material.tabs.TabLayout
  1262.         android:id="@+id/mytablayout2"
  1263.         android:layout_width="match_parent"
  1264.         android:layout_height="wrap_content"
  1265.         app:tabMode="auto"
  1266.         app:tabGravity="start"
  1267.         app:tabBackground="@color/pink"
  1268.         app:tabTextColor="@color/white"
  1269.         app:layout_constraintStart_toStartOf="parent"
  1270.         app:layout_constraintTop_toTopOf="parent"
  1271.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1272.         />
  1273.     <androidx.viewpager2.widget.ViewPager2
  1274.         android:id="@+id/myviepage2"
  1275.         android:layout_width="match_parent"
  1276.         android:layout_height="0dp"
  1277.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1278.         app:layout_constraintBottom_toBottomOf="parent"
  1279.         app:layout_constraintStart_toStartOf="parent"
  1280.         />
  1281. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  1282. <?xml version="1.0" encoding="utf-8"?>
  1283. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1284.     xmlns:tools="http://schemas.android.com/tools"
  1285.     android:layout_width="match_parent"
  1286.     android:layout_height="match_parent"
  1287.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1288.     tools:context=".tablayout.TabLayoutHomeFragment">
  1289.     <com.google.android.material.tabs.TabLayout
  1290.         android:id="@+id/mytablayout2"
  1291.         android:layout_width="match_parent"
  1292.         android:layout_height="wrap_content"
  1293.         app:tabMode="auto"
  1294.         app:tabGravity="start"
  1295.         app:tabBackground="@color/pink"
  1296.         app:tabTextColor="@color/white"
  1297.         app:layout_constraintStart_toStartOf="parent"
  1298.         app:layout_constraintTop_toTopOf="parent"
  1299.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1300.         />
  1301.     <androidx.viewpager2.widget.ViewPager2
  1302.         android:id="@+id/myviepage2"
  1303.         android:layout_width="match_parent"
  1304.         android:layout_height="0dp"
  1305.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1306.         app:layout_constraintBottom_toBottomOf="parent"
  1307.         app:layout_constraintStart_toStartOf="parent"
  1308.         />
  1309. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  1310. <?xml version="1.0" encoding="utf-8"?>
  1311. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1312.     xmlns:tools="http://schemas.android.com/tools"
  1313.     android:layout_width="match_parent"
  1314.     android:layout_height="match_parent"
  1315.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1316.     tools:context=".tablayout.TabLayoutHomeFragment">
  1317.     <com.google.android.material.tabs.TabLayout
  1318.         android:id="@+id/mytablayout2"
  1319.         android:layout_width="match_parent"
  1320.         android:layout_height="wrap_content"
  1321.         app:tabMode="auto"
  1322.         app:tabGravity="start"
  1323.         app:tabBackground="@color/pink"
  1324.         app:tabTextColor="@color/white"
  1325.         app:layout_constraintStart_toStartOf="parent"
  1326.         app:layout_constraintTop_toTopOf="parent"
  1327.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1328.         />
  1329.     <androidx.viewpager2.widget.ViewPager2
  1330.         android:id="@+id/myviepage2"
  1331.         android:layout_width="match_parent"
  1332.         android:layout_height="0dp"
  1333.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1334.         app:layout_constraintBottom_toBottomOf="parent"
  1335.         app:layout_constraintStart_toStartOf="parent"
  1336.         />
  1337. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  1338. <?xml version="1.0" encoding="utf-8"?>
  1339. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1340.     xmlns:tools="http://schemas.android.com/tools"
  1341.     android:layout_width="match_parent"
  1342.     android:layout_height="match_parent"
  1343.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1344.     tools:context=".tablayout.TabLayoutHomeFragment">
  1345.     <com.google.android.material.tabs.TabLayout
  1346.         android:id="@+id/mytablayout2"
  1347.         android:layout_width="match_parent"
  1348.         android:layout_height="wrap_content"
  1349.         app:tabMode="auto"
  1350.         app:tabGravity="start"
  1351.         app:tabBackground="@color/pink"
  1352.         app:tabTextColor="@color/white"
  1353.         app:layout_constraintStart_toStartOf="parent"
  1354.         app:layout_constraintTop_toTopOf="parent"
  1355.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1356.         />
  1357.     <androidx.viewpager2.widget.ViewPager2
  1358.         android:id="@+id/myviepage2"
  1359.         android:layout_width="match_parent"
  1360.         android:layout_height="0dp"
  1361.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1362.         app:layout_constraintBottom_toBottomOf="parent"
  1363.         app:layout_constraintStart_toStartOf="parent"
  1364.         />
  1365. </androidx.constraintlayout.widget.ConstraintLayout>/>
  1366. </androidx.constraintlayout.widget.ConstraintLayout>LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<?xml version="1.0" encoding="utf-8"?>
  1367. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1368.     xmlns:tools="http://schemas.android.com/tools"
  1369.     android:layout_width="match_parent"
  1370.     android:layout_height="match_parent"
  1371.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1372.     tools:context=".tablayout.TabLayoutHomeFragment">
  1373.     <com.google.android.material.tabs.TabLayout
  1374.         android:id="@+id/mytablayout2"
  1375.         android:layout_width="match_parent"
  1376.         android:layout_height="wrap_content"
  1377.         app:tabMode="auto"
  1378.         app:tabGravity="start"
  1379.         app:tabBackground="@color/pink"
  1380.         app:tabTextColor="@color/white"
  1381.         app:layout_constraintStart_toStartOf="parent"
  1382.         app:layout_constraintTop_toTopOf="parent"
  1383.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1384.         />
  1385.     <androidx.viewpager2.widget.ViewPager2
  1386.         android:id="@+id/myviepage2"
  1387.         android:layout_width="match_parent"
  1388.         android:layout_height="0dp"
  1389.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1390.         app:layout_constraintBottom_toBottomOf="parent"
  1391.         app:layout_constraintStart_toStartOf="parent"
  1392.         />
  1393. </androidx.constraintlayout.widget.ConstraintLayout>return inflater.inflate(R.layout.fragment_tab_layout_home2, container, false);    }    @Override    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<?xml version="1.0" encoding="utf-8"?>
  1394. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1395.     xmlns:tools="http://schemas.android.com/tools"
  1396.     android:layout_width="match_parent"
  1397.     android:layout_height="match_parent"
  1398.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1399.     tools:context=".tablayout.TabLayoutHomeFragment">
  1400.     <com.google.android.material.tabs.TabLayout
  1401.         android:id="@+id/mytablayout2"
  1402.         android:layout_width="match_parent"
  1403.         android:layout_height="wrap_content"
  1404.         app:tabMode="auto"
  1405.         app:tabGravity="start"
  1406.         app:tabBackground="@color/pink"
  1407.         app:tabTextColor="@color/white"
  1408.         app:layout_constraintStart_toStartOf="parent"
  1409.         app:layout_constraintTop_toTopOf="parent"
  1410.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1411.         />
  1412.     <androidx.viewpager2.widget.ViewPager2
  1413.         android:id="@+id/myviepage2"
  1414.         android:layout_width="match_parent"
  1415.         android:layout_height="0dp"
  1416.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1417.         app:layout_constraintBottom_toBottomOf="parent"
  1418.         app:layout_constraintStart_toStartOf="parent"
  1419.         />
  1420. </androidx.constraintlayout.widget.ConstraintLayout>super.onViewCreated(view, savedInstanceState);<?xml version="1.0" encoding="utf-8"?>
  1421. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1422.     xmlns:tools="http://schemas.android.com/tools"
  1423.     android:layout_width="match_parent"
  1424.     android:layout_height="match_parent"
  1425.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1426.     tools:context=".tablayout.TabLayoutHomeFragment">
  1427.     <com.google.android.material.tabs.TabLayout
  1428.         android:id="@+id/mytablayout2"
  1429.         android:layout_width="match_parent"
  1430.         android:layout_height="wrap_content"
  1431.         app:tabMode="auto"
  1432.         app:tabGravity="start"
  1433.         app:tabBackground="@color/pink"
  1434.         app:tabTextColor="@color/white"
  1435.         app:layout_constraintStart_toStartOf="parent"
  1436.         app:layout_constraintTop_toTopOf="parent"
  1437.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1438.         />
  1439.     <androidx.viewpager2.widget.ViewPager2
  1440.         android:id="@+id/myviepage2"
  1441.         android:layout_width="match_parent"
  1442.         android:layout_height="0dp"
  1443.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1444.         app:layout_constraintBottom_toBottomOf="parent"
  1445.         app:layout_constraintStart_toStartOf="parent"
  1446.         />
  1447. </androidx.constraintlayout.widget.ConstraintLayout>viewPager2 = view.findViewById(R.id.myviepage2);<?xml version="1.0" encoding="utf-8"?>
  1448. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1449.     xmlns:tools="http://schemas.android.com/tools"
  1450.     android:layout_width="match_parent"
  1451.     android:layout_height="match_parent"
  1452.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1453.     tools:context=".tablayout.TabLayoutHomeFragment">
  1454.     <com.google.android.material.tabs.TabLayout
  1455.         android:id="@+id/mytablayout2"
  1456.         android:layout_width="match_parent"
  1457.         android:layout_height="wrap_content"
  1458.         app:tabMode="auto"
  1459.         app:tabGravity="start"
  1460.         app:tabBackground="@color/pink"
  1461.         app:tabTextColor="@color/white"
  1462.         app:layout_constraintStart_toStartOf="parent"
  1463.         app:layout_constraintTop_toTopOf="parent"
  1464.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1465.         />
  1466.     <androidx.viewpager2.widget.ViewPager2
  1467.         android:id="@+id/myviepage2"
  1468.         android:layout_width="match_parent"
  1469.         android:layout_height="0dp"
  1470.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1471.         app:layout_constraintBottom_toBottomOf="parent"
  1472.         app:layout_constraintStart_toStartOf="parent"
  1473.         />
  1474. </androidx.constraintlayout.widget.ConstraintLayout>viewPager2.setSaveEnabled(false);<?xml version="1.0" encoding="utf-8"?>
  1475. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1476.     xmlns:tools="http://schemas.android.com/tools"
  1477.     android:layout_width="match_parent"
  1478.     android:layout_height="match_parent"
  1479.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1480.     tools:context=".tablayout.TabLayoutHomeFragment">
  1481.     <com.google.android.material.tabs.TabLayout
  1482.         android:id="@+id/mytablayout2"
  1483.         android:layout_width="match_parent"
  1484.         android:layout_height="wrap_content"
  1485.         app:tabMode="auto"
  1486.         app:tabGravity="start"
  1487.         app:tabBackground="@color/pink"
  1488.         app:tabTextColor="@color/white"
  1489.         app:layout_constraintStart_toStartOf="parent"
  1490.         app:layout_constraintTop_toTopOf="parent"
  1491.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1492.         />
  1493.     <androidx.viewpager2.widget.ViewPager2
  1494.         android:id="@+id/myviepage2"
  1495.         android:layout_width="match_parent"
  1496.         android:layout_height="0dp"
  1497.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1498.         app:layout_constraintBottom_toBottomOf="parent"
  1499.         app:layout_constraintStart_toStartOf="parent"
  1500.         />
  1501. </androidx.constraintlayout.widget.ConstraintLayout>tabLayout = view.findViewById(R.id.mytablayout2);<?xml version="1.0" encoding="utf-8"?>
  1502. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1503.     xmlns:tools="http://schemas.android.com/tools"
  1504.     android:layout_width="match_parent"
  1505.     android:layout_height="match_parent"
  1506.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1507.     tools:context=".tablayout.TabLayoutHomeFragment">
  1508.     <com.google.android.material.tabs.TabLayout
  1509.         android:id="@+id/mytablayout2"
  1510.         android:layout_width="match_parent"
  1511.         android:layout_height="wrap_content"
  1512.         app:tabMode="auto"
  1513.         app:tabGravity="start"
  1514.         app:tabBackground="@color/pink"
  1515.         app:tabTextColor="@color/white"
  1516.         app:layout_constraintStart_toStartOf="parent"
  1517.         app:layout_constraintTop_toTopOf="parent"
  1518.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1519.         />
  1520.     <androidx.viewpager2.widget.ViewPager2
  1521.         android:id="@+id/myviepage2"
  1522.         android:layout_width="match_parent"
  1523.         android:layout_height="0dp"
  1524.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1525.         app:layout_constraintBottom_toBottomOf="parent"
  1526.         app:layout_constraintStart_toStartOf="parent"
  1527.         />
  1528. </androidx.constraintlayout.widget.ConstraintLayout>List titleList = initPageTitleList();<?xml version="1.0" encoding="utf-8"?>
  1529. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1530.     xmlns:tools="http://schemas.android.com/tools"
  1531.     android:layout_width="match_parent"
  1532.     android:layout_height="match_parent"
  1533.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1534.     tools:context=".tablayout.TabLayoutHomeFragment">
  1535.     <com.google.android.material.tabs.TabLayout
  1536.         android:id="@+id/mytablayout2"
  1537.         android:layout_width="match_parent"
  1538.         android:layout_height="wrap_content"
  1539.         app:tabMode="auto"
  1540.         app:tabGravity="start"
  1541.         app:tabBackground="@color/pink"
  1542.         app:tabTextColor="@color/white"
  1543.         app:layout_constraintStart_toStartOf="parent"
  1544.         app:layout_constraintTop_toTopOf="parent"
  1545.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1546.         />
  1547.     <androidx.viewpager2.widget.ViewPager2
  1548.         android:id="@+id/myviepage2"
  1549.         android:layout_width="match_parent"
  1550.         android:layout_height="0dp"
  1551.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1552.         app:layout_constraintBottom_toBottomOf="parent"
  1553.         app:layout_constraintStart_toStartOf="parent"
  1554.         />
  1555. </androidx.constraintlayout.widget.ConstraintLayout>TabLayoutChildViewPager tabLayoutChildViewPager =<?xml version="1.0" encoding="utf-8"?>
  1556. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1557.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1558.     xmlns:tools="http://schemas.android.com/tools"
  1559.     android:layout_width="match_parent"
  1560.     android:layout_height="match_parent"
  1561.     tools:context=".ViewPager2TabLayoutActivity">
  1562.    
  1563.     <androidx.fragment.app.FragmentContainerView
  1564. <?xml version="1.0" encoding="utf-8"?>
  1565. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1566.     xmlns:tools="http://schemas.android.com/tools"
  1567.     android:layout_width="match_parent"
  1568.     android:layout_height="match_parent"
  1569.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1570.     tools:context=".tablayout.TabLayoutHomeFragment">
  1571.     <com.google.android.material.tabs.TabLayout
  1572.         android:id="@+id/mytablayout2"
  1573.         android:layout_width="match_parent"
  1574.         android:layout_height="wrap_content"
  1575.         app:tabMode="auto"
  1576.         app:tabGravity="start"
  1577.         app:tabBackground="@color/pink"
  1578.         app:tabTextColor="@color/white"
  1579.         app:layout_constraintStart_toStartOf="parent"
  1580.         app:layout_constraintTop_toTopOf="parent"
  1581.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1582.         />
  1583.     <androidx.viewpager2.widget.ViewPager2
  1584.         android:id="@+id/myviepage2"
  1585.         android:layout_width="match_parent"
  1586.         android:layout_height="0dp"
  1587.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1588.         app:layout_constraintBottom_toBottomOf="parent"
  1589.         app:layout_constraintStart_toStartOf="parent"
  1590.         />
  1591. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  1592. <?xml version="1.0" encoding="utf-8"?>
  1593. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1594.     xmlns:tools="http://schemas.android.com/tools"
  1595.     android:layout_width="match_parent"
  1596.     android:layout_height="match_parent"
  1597.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1598.     tools:context=".tablayout.TabLayoutHomeFragment">
  1599.     <com.google.android.material.tabs.TabLayout
  1600.         android:id="@+id/mytablayout2"
  1601.         android:layout_width="match_parent"
  1602.         android:layout_height="wrap_content"
  1603.         app:tabMode="auto"
  1604.         app:tabGravity="start"
  1605.         app:tabBackground="@color/pink"
  1606.         app:tabTextColor="@color/white"
  1607.         app:layout_constraintStart_toStartOf="parent"
  1608.         app:layout_constraintTop_toTopOf="parent"
  1609.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1610.         />
  1611.     <androidx.viewpager2.widget.ViewPager2
  1612.         android:id="@+id/myviepage2"
  1613.         android:layout_width="match_parent"
  1614.         android:layout_height="0dp"
  1615.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1616.         app:layout_constraintBottom_toBottomOf="parent"
  1617.         app:layout_constraintStart_toStartOf="parent"
  1618.         />
  1619. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1620. <?xml version="1.0" encoding="utf-8"?>
  1621. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1622.     xmlns:tools="http://schemas.android.com/tools"
  1623.     android:layout_width="match_parent"
  1624.     android:layout_height="match_parent"
  1625.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1626.     tools:context=".tablayout.TabLayoutHomeFragment">
  1627.     <com.google.android.material.tabs.TabLayout
  1628.         android:id="@+id/mytablayout2"
  1629.         android:layout_width="match_parent"
  1630.         android:layout_height="wrap_content"
  1631.         app:tabMode="auto"
  1632.         app:tabGravity="start"
  1633.         app:tabBackground="@color/pink"
  1634.         app:tabTextColor="@color/white"
  1635.         app:layout_constraintStart_toStartOf="parent"
  1636.         app:layout_constraintTop_toTopOf="parent"
  1637.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1638.         />
  1639.     <androidx.viewpager2.widget.ViewPager2
  1640.         android:id="@+id/myviepage2"
  1641.         android:layout_width="match_parent"
  1642.         android:layout_height="0dp"
  1643.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1644.         app:layout_constraintBottom_toBottomOf="parent"
  1645.         app:layout_constraintStart_toStartOf="parent"
  1646.         />
  1647. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1648. <?xml version="1.0" encoding="utf-8"?>
  1649. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1650.     xmlns:tools="http://schemas.android.com/tools"
  1651.     android:layout_width="match_parent"
  1652.     android:layout_height="match_parent"
  1653.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1654.     tools:context=".tablayout.TabLayoutHomeFragment">
  1655.     <com.google.android.material.tabs.TabLayout
  1656.         android:id="@+id/mytablayout2"
  1657.         android:layout_width="match_parent"
  1658.         android:layout_height="wrap_content"
  1659.         app:tabMode="auto"
  1660.         app:tabGravity="start"
  1661.         app:tabBackground="@color/pink"
  1662.         app:tabTextColor="@color/white"
  1663.         app:layout_constraintStart_toStartOf="parent"
  1664.         app:layout_constraintTop_toTopOf="parent"
  1665.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1666.         />
  1667.     <androidx.viewpager2.widget.ViewPager2
  1668.         android:id="@+id/myviepage2"
  1669.         android:layout_width="match_parent"
  1670.         android:layout_height="0dp"
  1671.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1672.         app:layout_constraintBottom_toBottomOf="parent"
  1673.         app:layout_constraintStart_toStartOf="parent"
  1674.         />
  1675. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  1676. <?xml version="1.0" encoding="utf-8"?>
  1677. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1678.     xmlns:tools="http://schemas.android.com/tools"
  1679.     android:layout_width="match_parent"
  1680.     android:layout_height="match_parent"
  1681.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1682.     tools:context=".tablayout.TabLayoutHomeFragment">
  1683.     <com.google.android.material.tabs.TabLayout
  1684.         android:id="@+id/mytablayout2"
  1685.         android:layout_width="match_parent"
  1686.         android:layout_height="wrap_content"
  1687.         app:tabMode="auto"
  1688.         app:tabGravity="start"
  1689.         app:tabBackground="@color/pink"
  1690.         app:tabTextColor="@color/white"
  1691.         app:layout_constraintStart_toStartOf="parent"
  1692.         app:layout_constraintTop_toTopOf="parent"
  1693.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1694.         />
  1695.     <androidx.viewpager2.widget.ViewPager2
  1696.         android:id="@+id/myviepage2"
  1697.         android:layout_width="match_parent"
  1698.         android:layout_height="0dp"
  1699.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1700.         app:layout_constraintBottom_toBottomOf="parent"
  1701.         app:layout_constraintStart_toStartOf="parent"
  1702.         />
  1703. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  1704.     <com.google.android.material.bottomnavigation.BottomNavigationView
  1705. <?xml version="1.0" encoding="utf-8"?>
  1706. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1707.     xmlns:tools="http://schemas.android.com/tools"
  1708.     android:layout_width="match_parent"
  1709.     android:layout_height="match_parent"
  1710.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1711.     tools:context=".tablayout.TabLayoutHomeFragment">
  1712.     <com.google.android.material.tabs.TabLayout
  1713.         android:id="@+id/mytablayout2"
  1714.         android:layout_width="match_parent"
  1715.         android:layout_height="wrap_content"
  1716.         app:tabMode="auto"
  1717.         app:tabGravity="start"
  1718.         app:tabBackground="@color/pink"
  1719.         app:tabTextColor="@color/white"
  1720.         app:layout_constraintStart_toStartOf="parent"
  1721.         app:layout_constraintTop_toTopOf="parent"
  1722.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1723.         />
  1724.     <androidx.viewpager2.widget.ViewPager2
  1725.         android:id="@+id/myviepage2"
  1726.         android:layout_width="match_parent"
  1727.         android:layout_height="0dp"
  1728.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1729.         app:layout_constraintBottom_toBottomOf="parent"
  1730.         app:layout_constraintStart_toStartOf="parent"
  1731.         />
  1732. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  1733. <?xml version="1.0" encoding="utf-8"?>
  1734. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1735.     xmlns:tools="http://schemas.android.com/tools"
  1736.     android:layout_width="match_parent"
  1737.     android:layout_height="match_parent"
  1738.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1739.     tools:context=".tablayout.TabLayoutHomeFragment">
  1740.     <com.google.android.material.tabs.TabLayout
  1741.         android:id="@+id/mytablayout2"
  1742.         android:layout_width="match_parent"
  1743.         android:layout_height="wrap_content"
  1744.         app:tabMode="auto"
  1745.         app:tabGravity="start"
  1746.         app:tabBackground="@color/pink"
  1747.         app:tabTextColor="@color/white"
  1748.         app:layout_constraintStart_toStartOf="parent"
  1749.         app:layout_constraintTop_toTopOf="parent"
  1750.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1751.         />
  1752.     <androidx.viewpager2.widget.ViewPager2
  1753.         android:id="@+id/myviepage2"
  1754.         android:layout_width="match_parent"
  1755.         android:layout_height="0dp"
  1756.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1757.         app:layout_constraintBottom_toBottomOf="parent"
  1758.         app:layout_constraintStart_toStartOf="parent"
  1759.         />
  1760. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1761. <?xml version="1.0" encoding="utf-8"?>
  1762. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1763.     xmlns:tools="http://schemas.android.com/tools"
  1764.     android:layout_width="match_parent"
  1765.     android:layout_height="match_parent"
  1766.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1767.     tools:context=".tablayout.TabLayoutHomeFragment">
  1768.     <com.google.android.material.tabs.TabLayout
  1769.         android:id="@+id/mytablayout2"
  1770.         android:layout_width="match_parent"
  1771.         android:layout_height="wrap_content"
  1772.         app:tabMode="auto"
  1773.         app:tabGravity="start"
  1774.         app:tabBackground="@color/pink"
  1775.         app:tabTextColor="@color/white"
  1776.         app:layout_constraintStart_toStartOf="parent"
  1777.         app:layout_constraintTop_toTopOf="parent"
  1778.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1779.         />
  1780.     <androidx.viewpager2.widget.ViewPager2
  1781.         android:id="@+id/myviepage2"
  1782.         android:layout_width="match_parent"
  1783.         android:layout_height="0dp"
  1784.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1785.         app:layout_constraintBottom_toBottomOf="parent"
  1786.         app:layout_constraintStart_toStartOf="parent"
  1787.         />
  1788. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1789. <?xml version="1.0" encoding="utf-8"?>
  1790. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1791.     xmlns:tools="http://schemas.android.com/tools"
  1792.     android:layout_width="match_parent"
  1793.     android:layout_height="match_parent"
  1794.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1795.     tools:context=".tablayout.TabLayoutHomeFragment">
  1796.     <com.google.android.material.tabs.TabLayout
  1797.         android:id="@+id/mytablayout2"
  1798.         android:layout_width="match_parent"
  1799.         android:layout_height="wrap_content"
  1800.         app:tabMode="auto"
  1801.         app:tabGravity="start"
  1802.         app:tabBackground="@color/pink"
  1803.         app:tabTextColor="@color/white"
  1804.         app:layout_constraintStart_toStartOf="parent"
  1805.         app:layout_constraintTop_toTopOf="parent"
  1806.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1807.         />
  1808.     <androidx.viewpager2.widget.ViewPager2
  1809.         android:id="@+id/myviepage2"
  1810.         android:layout_width="match_parent"
  1811.         android:layout_height="0dp"
  1812.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1813.         app:layout_constraintBottom_toBottomOf="parent"
  1814.         app:layout_constraintStart_toStartOf="parent"
  1815.         />
  1816. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  1817. <?xml version="1.0" encoding="utf-8"?>
  1818. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1819.     xmlns:tools="http://schemas.android.com/tools"
  1820.     android:layout_width="match_parent"
  1821.     android:layout_height="match_parent"
  1822.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1823.     tools:context=".tablayout.TabLayoutHomeFragment">
  1824.     <com.google.android.material.tabs.TabLayout
  1825.         android:id="@+id/mytablayout2"
  1826.         android:layout_width="match_parent"
  1827.         android:layout_height="wrap_content"
  1828.         app:tabMode="auto"
  1829.         app:tabGravity="start"
  1830.         app:tabBackground="@color/pink"
  1831.         app:tabTextColor="@color/white"
  1832.         app:layout_constraintStart_toStartOf="parent"
  1833.         app:layout_constraintTop_toTopOf="parent"
  1834.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1835.         />
  1836.     <androidx.viewpager2.widget.ViewPager2
  1837.         android:id="@+id/myviepage2"
  1838.         android:layout_width="match_parent"
  1839.         android:layout_height="0dp"
  1840.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1841.         app:layout_constraintBottom_toBottomOf="parent"
  1842.         app:layout_constraintStart_toStartOf="parent"
  1843.         />
  1844. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  1845. <?xml version="1.0" encoding="utf-8"?>
  1846. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1847.     xmlns:tools="http://schemas.android.com/tools"
  1848.     android:layout_width="match_parent"
  1849.     android:layout_height="match_parent"
  1850.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1851.     tools:context=".tablayout.TabLayoutHomeFragment">
  1852.     <com.google.android.material.tabs.TabLayout
  1853.         android:id="@+id/mytablayout2"
  1854.         android:layout_width="match_parent"
  1855.         android:layout_height="wrap_content"
  1856.         app:tabMode="auto"
  1857.         app:tabGravity="start"
  1858.         app:tabBackground="@color/pink"
  1859.         app:tabTextColor="@color/white"
  1860.         app:layout_constraintStart_toStartOf="parent"
  1861.         app:layout_constraintTop_toTopOf="parent"
  1862.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1863.         />
  1864.     <androidx.viewpager2.widget.ViewPager2
  1865.         android:id="@+id/myviepage2"
  1866.         android:layout_width="match_parent"
  1867.         android:layout_height="0dp"
  1868.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1869.         app:layout_constraintBottom_toBottomOf="parent"
  1870.         app:layout_constraintStart_toStartOf="parent"
  1871.         />
  1872. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  1873. <?xml version="1.0" encoding="utf-8"?>
  1874. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1875.     xmlns:tools="http://schemas.android.com/tools"
  1876.     android:layout_width="match_parent"
  1877.     android:layout_height="match_parent"
  1878.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1879.     tools:context=".tablayout.TabLayoutHomeFragment">
  1880.     <com.google.android.material.tabs.TabLayout
  1881.         android:id="@+id/mytablayout2"
  1882.         android:layout_width="match_parent"
  1883.         android:layout_height="wrap_content"
  1884.         app:tabMode="auto"
  1885.         app:tabGravity="start"
  1886.         app:tabBackground="@color/pink"
  1887.         app:tabTextColor="@color/white"
  1888.         app:layout_constraintStart_toStartOf="parent"
  1889.         app:layout_constraintTop_toTopOf="parent"
  1890.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1891.         />
  1892.     <androidx.viewpager2.widget.ViewPager2
  1893.         android:id="@+id/myviepage2"
  1894.         android:layout_width="match_parent"
  1895.         android:layout_height="0dp"
  1896.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1897.         app:layout_constraintBottom_toBottomOf="parent"
  1898.         app:layout_constraintStart_toStartOf="parent"
  1899.         />
  1900. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  1901. <?xml version="1.0" encoding="utf-8"?>
  1902. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1903.     xmlns:tools="http://schemas.android.com/tools"
  1904.     android:layout_width="match_parent"
  1905.     android:layout_height="match_parent"
  1906.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1907.     tools:context=".tablayout.TabLayoutHomeFragment">
  1908.     <com.google.android.material.tabs.TabLayout
  1909.         android:id="@+id/mytablayout2"
  1910.         android:layout_width="match_parent"
  1911.         android:layout_height="wrap_content"
  1912.         app:tabMode="auto"
  1913.         app:tabGravity="start"
  1914.         app:tabBackground="@color/pink"
  1915.         app:tabTextColor="@color/white"
  1916.         app:layout_constraintStart_toStartOf="parent"
  1917.         app:layout_constraintTop_toTopOf="parent"
  1918.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1919.         />
  1920.     <androidx.viewpager2.widget.ViewPager2
  1921.         android:id="@+id/myviepage2"
  1922.         android:layout_width="match_parent"
  1923.         android:layout_height="0dp"
  1924.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1925.         app:layout_constraintBottom_toBottomOf="parent"
  1926.         app:layout_constraintStart_toStartOf="parent"
  1927.         />
  1928. </androidx.constraintlayout.widget.ConstraintLayout>/>
  1929. </androidx.constraintlayout.widget.ConstraintLayout>    new TabLayoutChildViewPager(getActivity(),initChildFragmentList());<?xml version="1.0" encoding="utf-8"?>
  1930. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1931.     xmlns:tools="http://schemas.android.com/tools"
  1932.     android:layout_width="match_parent"
  1933.     android:layout_height="match_parent"
  1934.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1935.     tools:context=".tablayout.TabLayoutHomeFragment">
  1936.     <com.google.android.material.tabs.TabLayout
  1937.         android:id="@+id/mytablayout2"
  1938.         android:layout_width="match_parent"
  1939.         android:layout_height="wrap_content"
  1940.         app:tabMode="auto"
  1941.         app:tabGravity="start"
  1942.         app:tabBackground="@color/pink"
  1943.         app:tabTextColor="@color/white"
  1944.         app:layout_constraintStart_toStartOf="parent"
  1945.         app:layout_constraintTop_toTopOf="parent"
  1946.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1947.         />
  1948.     <androidx.viewpager2.widget.ViewPager2
  1949.         android:id="@+id/myviepage2"
  1950.         android:layout_width="match_parent"
  1951.         android:layout_height="0dp"
  1952.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1953.         app:layout_constraintBottom_toBottomOf="parent"
  1954.         app:layout_constraintStart_toStartOf="parent"
  1955.         />
  1956. </androidx.constraintlayout.widget.ConstraintLayout> //重点!! ViewPager2绑定Adapter<?xml version="1.0" encoding="utf-8"?>
  1957. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1958.     xmlns:tools="http://schemas.android.com/tools"
  1959.     android:layout_width="match_parent"
  1960.     android:layout_height="match_parent"
  1961.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1962.     tools:context=".tablayout.TabLayoutHomeFragment">
  1963.     <com.google.android.material.tabs.TabLayout
  1964.         android:id="@+id/mytablayout2"
  1965.         android:layout_width="match_parent"
  1966.         android:layout_height="wrap_content"
  1967.         app:tabMode="auto"
  1968.         app:tabGravity="start"
  1969.         app:tabBackground="@color/pink"
  1970.         app:tabTextColor="@color/white"
  1971.         app:layout_constraintStart_toStartOf="parent"
  1972.         app:layout_constraintTop_toTopOf="parent"
  1973.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1974.         />
  1975.     <androidx.viewpager2.widget.ViewPager2
  1976.         android:id="@+id/myviepage2"
  1977.         android:layout_width="match_parent"
  1978.         android:layout_height="0dp"
  1979.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1980.         app:layout_constraintBottom_toBottomOf="parent"
  1981.         app:layout_constraintStart_toStartOf="parent"
  1982.         />
  1983. </androidx.constraintlayout.widget.ConstraintLayout>viewPager2.setAdapter(tabLayoutChildViewPager);<?xml version="1.0" encoding="utf-8"?>
  1984. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1985.     xmlns:tools="http://schemas.android.com/tools"
  1986.     android:layout_width="match_parent"
  1987.     android:layout_height="match_parent"
  1988.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1989.     tools:context=".tablayout.TabLayoutHomeFragment">
  1990.     <com.google.android.material.tabs.TabLayout
  1991.         android:id="@+id/mytablayout2"
  1992.         android:layout_width="match_parent"
  1993.         android:layout_height="wrap_content"
  1994.         app:tabMode="auto"
  1995.         app:tabGravity="start"
  1996.         app:tabBackground="@color/pink"
  1997.         app:tabTextColor="@color/white"
  1998.         app:layout_constraintStart_toStartOf="parent"
  1999.         app:layout_constraintTop_toTopOf="parent"
  2000.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2001.         />
  2002.     <androidx.viewpager2.widget.ViewPager2
  2003.         android:id="@+id/myviepage2"
  2004.         android:layout_width="match_parent"
  2005.         android:layout_height="0dp"
  2006.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2007.         app:layout_constraintBottom_toBottomOf="parent"
  2008.         app:layout_constraintStart_toStartOf="parent"
  2009.         />
  2010. </androidx.constraintlayout.widget.ConstraintLayout> //重点!! 关联 TabLayout 和 ViewPager2<?xml version="1.0" encoding="utf-8"?>
  2011. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2012.     xmlns:tools="http://schemas.android.com/tools"
  2013.     android:layout_width="match_parent"
  2014.     android:layout_height="match_parent"
  2015.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2016.     tools:context=".tablayout.TabLayoutHomeFragment">
  2017.     <com.google.android.material.tabs.TabLayout
  2018.         android:id="@+id/mytablayout2"
  2019.         android:layout_width="match_parent"
  2020.         android:layout_height="wrap_content"
  2021.         app:tabMode="auto"
  2022.         app:tabGravity="start"
  2023.         app:tabBackground="@color/pink"
  2024.         app:tabTextColor="@color/white"
  2025.         app:layout_constraintStart_toStartOf="parent"
  2026.         app:layout_constraintTop_toTopOf="parent"
  2027.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2028.         />
  2029.     <androidx.viewpager2.widget.ViewPager2
  2030.         android:id="@+id/myviepage2"
  2031.         android:layout_width="match_parent"
  2032.         android:layout_height="0dp"
  2033.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2034.         app:layout_constraintBottom_toBottomOf="parent"
  2035.         app:layout_constraintStart_toStartOf="parent"
  2036.         />
  2037. </androidx.constraintlayout.widget.ConstraintLayout>new TabLayoutMediator(tabLayout, viewPager2, true,<?xml version="1.0" encoding="utf-8"?>
  2038. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2039.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2040.     xmlns:tools="http://schemas.android.com/tools"
  2041.     android:layout_width="match_parent"
  2042.     android:layout_height="match_parent"
  2043.     tools:context=".ViewPager2TabLayoutActivity">
  2044.    
  2045.     <androidx.fragment.app.FragmentContainerView
  2046. <?xml version="1.0" encoding="utf-8"?>
  2047. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2048.     xmlns:tools="http://schemas.android.com/tools"
  2049.     android:layout_width="match_parent"
  2050.     android:layout_height="match_parent"
  2051.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2052.     tools:context=".tablayout.TabLayoutHomeFragment">
  2053.     <com.google.android.material.tabs.TabLayout
  2054.         android:id="@+id/mytablayout2"
  2055.         android:layout_width="match_parent"
  2056.         android:layout_height="wrap_content"
  2057.         app:tabMode="auto"
  2058.         app:tabGravity="start"
  2059.         app:tabBackground="@color/pink"
  2060.         app:tabTextColor="@color/white"
  2061.         app:layout_constraintStart_toStartOf="parent"
  2062.         app:layout_constraintTop_toTopOf="parent"
  2063.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2064.         />
  2065.     <androidx.viewpager2.widget.ViewPager2
  2066.         android:id="@+id/myviepage2"
  2067.         android:layout_width="match_parent"
  2068.         android:layout_height="0dp"
  2069.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2070.         app:layout_constraintBottom_toBottomOf="parent"
  2071.         app:layout_constraintStart_toStartOf="parent"
  2072.         />
  2073. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  2074. <?xml version="1.0" encoding="utf-8"?>
  2075. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2076.     xmlns:tools="http://schemas.android.com/tools"
  2077.     android:layout_width="match_parent"
  2078.     android:layout_height="match_parent"
  2079.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2080.     tools:context=".tablayout.TabLayoutHomeFragment">
  2081.     <com.google.android.material.tabs.TabLayout
  2082.         android:id="@+id/mytablayout2"
  2083.         android:layout_width="match_parent"
  2084.         android:layout_height="wrap_content"
  2085.         app:tabMode="auto"
  2086.         app:tabGravity="start"
  2087.         app:tabBackground="@color/pink"
  2088.         app:tabTextColor="@color/white"
  2089.         app:layout_constraintStart_toStartOf="parent"
  2090.         app:layout_constraintTop_toTopOf="parent"
  2091.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2092.         />
  2093.     <androidx.viewpager2.widget.ViewPager2
  2094.         android:id="@+id/myviepage2"
  2095.         android:layout_width="match_parent"
  2096.         android:layout_height="0dp"
  2097.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2098.         app:layout_constraintBottom_toBottomOf="parent"
  2099.         app:layout_constraintStart_toStartOf="parent"
  2100.         />
  2101. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  2102. <?xml version="1.0" encoding="utf-8"?>
  2103. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2104.     xmlns:tools="http://schemas.android.com/tools"
  2105.     android:layout_width="match_parent"
  2106.     android:layout_height="match_parent"
  2107.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2108.     tools:context=".tablayout.TabLayoutHomeFragment">
  2109.     <com.google.android.material.tabs.TabLayout
  2110.         android:id="@+id/mytablayout2"
  2111.         android:layout_width="match_parent"
  2112.         android:layout_height="wrap_content"
  2113.         app:tabMode="auto"
  2114.         app:tabGravity="start"
  2115.         app:tabBackground="@color/pink"
  2116.         app:tabTextColor="@color/white"
  2117.         app:layout_constraintStart_toStartOf="parent"
  2118.         app:layout_constraintTop_toTopOf="parent"
  2119.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2120.         />
  2121.     <androidx.viewpager2.widget.ViewPager2
  2122.         android:id="@+id/myviepage2"
  2123.         android:layout_width="match_parent"
  2124.         android:layout_height="0dp"
  2125.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2126.         app:layout_constraintBottom_toBottomOf="parent"
  2127.         app:layout_constraintStart_toStartOf="parent"
  2128.         />
  2129. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  2130. <?xml version="1.0" encoding="utf-8"?>
  2131. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2132.     xmlns:tools="http://schemas.android.com/tools"
  2133.     android:layout_width="match_parent"
  2134.     android:layout_height="match_parent"
  2135.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2136.     tools:context=".tablayout.TabLayoutHomeFragment">
  2137.     <com.google.android.material.tabs.TabLayout
  2138.         android:id="@+id/mytablayout2"
  2139.         android:layout_width="match_parent"
  2140.         android:layout_height="wrap_content"
  2141.         app:tabMode="auto"
  2142.         app:tabGravity="start"
  2143.         app:tabBackground="@color/pink"
  2144.         app:tabTextColor="@color/white"
  2145.         app:layout_constraintStart_toStartOf="parent"
  2146.         app:layout_constraintTop_toTopOf="parent"
  2147.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2148.         />
  2149.     <androidx.viewpager2.widget.ViewPager2
  2150.         android:id="@+id/myviepage2"
  2151.         android:layout_width="match_parent"
  2152.         android:layout_height="0dp"
  2153.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2154.         app:layout_constraintBottom_toBottomOf="parent"
  2155.         app:layout_constraintStart_toStartOf="parent"
  2156.         />
  2157. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  2158. <?xml version="1.0" encoding="utf-8"?>
  2159. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2160.     xmlns:tools="http://schemas.android.com/tools"
  2161.     android:layout_width="match_parent"
  2162.     android:layout_height="match_parent"
  2163.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2164.     tools:context=".tablayout.TabLayoutHomeFragment">
  2165.     <com.google.android.material.tabs.TabLayout
  2166.         android:id="@+id/mytablayout2"
  2167.         android:layout_width="match_parent"
  2168.         android:layout_height="wrap_content"
  2169.         app:tabMode="auto"
  2170.         app:tabGravity="start"
  2171.         app:tabBackground="@color/pink"
  2172.         app:tabTextColor="@color/white"
  2173.         app:layout_constraintStart_toStartOf="parent"
  2174.         app:layout_constraintTop_toTopOf="parent"
  2175.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2176.         />
  2177.     <androidx.viewpager2.widget.ViewPager2
  2178.         android:id="@+id/myviepage2"
  2179.         android:layout_width="match_parent"
  2180.         android:layout_height="0dp"
  2181.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2182.         app:layout_constraintBottom_toBottomOf="parent"
  2183.         app:layout_constraintStart_toStartOf="parent"
  2184.         />
  2185. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  2186.     <com.google.android.material.bottomnavigation.BottomNavigationView
  2187. <?xml version="1.0" encoding="utf-8"?>
  2188. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2189.     xmlns:tools="http://schemas.android.com/tools"
  2190.     android:layout_width="match_parent"
  2191.     android:layout_height="match_parent"
  2192.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2193.     tools:context=".tablayout.TabLayoutHomeFragment">
  2194.     <com.google.android.material.tabs.TabLayout
  2195.         android:id="@+id/mytablayout2"
  2196.         android:layout_width="match_parent"
  2197.         android:layout_height="wrap_content"
  2198.         app:tabMode="auto"
  2199.         app:tabGravity="start"
  2200.         app:tabBackground="@color/pink"
  2201.         app:tabTextColor="@color/white"
  2202.         app:layout_constraintStart_toStartOf="parent"
  2203.         app:layout_constraintTop_toTopOf="parent"
  2204.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2205.         />
  2206.     <androidx.viewpager2.widget.ViewPager2
  2207.         android:id="@+id/myviepage2"
  2208.         android:layout_width="match_parent"
  2209.         android:layout_height="0dp"
  2210.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2211.         app:layout_constraintBottom_toBottomOf="parent"
  2212.         app:layout_constraintStart_toStartOf="parent"
  2213.         />
  2214. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  2215. <?xml version="1.0" encoding="utf-8"?>
  2216. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2217.     xmlns:tools="http://schemas.android.com/tools"
  2218.     android:layout_width="match_parent"
  2219.     android:layout_height="match_parent"
  2220.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2221.     tools:context=".tablayout.TabLayoutHomeFragment">
  2222.     <com.google.android.material.tabs.TabLayout
  2223.         android:id="@+id/mytablayout2"
  2224.         android:layout_width="match_parent"
  2225.         android:layout_height="wrap_content"
  2226.         app:tabMode="auto"
  2227.         app:tabGravity="start"
  2228.         app:tabBackground="@color/pink"
  2229.         app:tabTextColor="@color/white"
  2230.         app:layout_constraintStart_toStartOf="parent"
  2231.         app:layout_constraintTop_toTopOf="parent"
  2232.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2233.         />
  2234.     <androidx.viewpager2.widget.ViewPager2
  2235.         android:id="@+id/myviepage2"
  2236.         android:layout_width="match_parent"
  2237.         android:layout_height="0dp"
  2238.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2239.         app:layout_constraintBottom_toBottomOf="parent"
  2240.         app:layout_constraintStart_toStartOf="parent"
  2241.         />
  2242. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  2243. <?xml version="1.0" encoding="utf-8"?>
  2244. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2245.     xmlns:tools="http://schemas.android.com/tools"
  2246.     android:layout_width="match_parent"
  2247.     android:layout_height="match_parent"
  2248.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2249.     tools:context=".tablayout.TabLayoutHomeFragment">
  2250.     <com.google.android.material.tabs.TabLayout
  2251.         android:id="@+id/mytablayout2"
  2252.         android:layout_width="match_parent"
  2253.         android:layout_height="wrap_content"
  2254.         app:tabMode="auto"
  2255.         app:tabGravity="start"
  2256.         app:tabBackground="@color/pink"
  2257.         app:tabTextColor="@color/white"
  2258.         app:layout_constraintStart_toStartOf="parent"
  2259.         app:layout_constraintTop_toTopOf="parent"
  2260.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2261.         />
  2262.     <androidx.viewpager2.widget.ViewPager2
  2263.         android:id="@+id/myviepage2"
  2264.         android:layout_width="match_parent"
  2265.         android:layout_height="0dp"
  2266.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2267.         app:layout_constraintBottom_toBottomOf="parent"
  2268.         app:layout_constraintStart_toStartOf="parent"
  2269.         />
  2270. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  2271. <?xml version="1.0" encoding="utf-8"?>
  2272. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2273.     xmlns:tools="http://schemas.android.com/tools"
  2274.     android:layout_width="match_parent"
  2275.     android:layout_height="match_parent"
  2276.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2277.     tools:context=".tablayout.TabLayoutHomeFragment">
  2278.     <com.google.android.material.tabs.TabLayout
  2279.         android:id="@+id/mytablayout2"
  2280.         android:layout_width="match_parent"
  2281.         android:layout_height="wrap_content"
  2282.         app:tabMode="auto"
  2283.         app:tabGravity="start"
  2284.         app:tabBackground="@color/pink"
  2285.         app:tabTextColor="@color/white"
  2286.         app:layout_constraintStart_toStartOf="parent"
  2287.         app:layout_constraintTop_toTopOf="parent"
  2288.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2289.         />
  2290.     <androidx.viewpager2.widget.ViewPager2
  2291.         android:id="@+id/myviepage2"
  2292.         android:layout_width="match_parent"
  2293.         android:layout_height="0dp"
  2294.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2295.         app:layout_constraintBottom_toBottomOf="parent"
  2296.         app:layout_constraintStart_toStartOf="parent"
  2297.         />
  2298. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  2299. <?xml version="1.0" encoding="utf-8"?>
  2300. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2301.     xmlns:tools="http://schemas.android.com/tools"
  2302.     android:layout_width="match_parent"
  2303.     android:layout_height="match_parent"
  2304.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2305.     tools:context=".tablayout.TabLayoutHomeFragment">
  2306.     <com.google.android.material.tabs.TabLayout
  2307.         android:id="@+id/mytablayout2"
  2308.         android:layout_width="match_parent"
  2309.         android:layout_height="wrap_content"
  2310.         app:tabMode="auto"
  2311.         app:tabGravity="start"
  2312.         app:tabBackground="@color/pink"
  2313.         app:tabTextColor="@color/white"
  2314.         app:layout_constraintStart_toStartOf="parent"
  2315.         app:layout_constraintTop_toTopOf="parent"
  2316.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2317.         />
  2318.     <androidx.viewpager2.widget.ViewPager2
  2319.         android:id="@+id/myviepage2"
  2320.         android:layout_width="match_parent"
  2321.         android:layout_height="0dp"
  2322.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2323.         app:layout_constraintBottom_toBottomOf="parent"
  2324.         app:layout_constraintStart_toStartOf="parent"
  2325.         />
  2326. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  2327. <?xml version="1.0" encoding="utf-8"?>
  2328. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2329.     xmlns:tools="http://schemas.android.com/tools"
  2330.     android:layout_width="match_parent"
  2331.     android:layout_height="match_parent"
  2332.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2333.     tools:context=".tablayout.TabLayoutHomeFragment">
  2334.     <com.google.android.material.tabs.TabLayout
  2335.         android:id="@+id/mytablayout2"
  2336.         android:layout_width="match_parent"
  2337.         android:layout_height="wrap_content"
  2338.         app:tabMode="auto"
  2339.         app:tabGravity="start"
  2340.         app:tabBackground="@color/pink"
  2341.         app:tabTextColor="@color/white"
  2342.         app:layout_constraintStart_toStartOf="parent"
  2343.         app:layout_constraintTop_toTopOf="parent"
  2344.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2345.         />
  2346.     <androidx.viewpager2.widget.ViewPager2
  2347.         android:id="@+id/myviepage2"
  2348.         android:layout_width="match_parent"
  2349.         android:layout_height="0dp"
  2350.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2351.         app:layout_constraintBottom_toBottomOf="parent"
  2352.         app:layout_constraintStart_toStartOf="parent"
  2353.         />
  2354. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  2355. <?xml version="1.0" encoding="utf-8"?>
  2356. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2357.     xmlns:tools="http://schemas.android.com/tools"
  2358.     android:layout_width="match_parent"
  2359.     android:layout_height="match_parent"
  2360.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2361.     tools:context=".tablayout.TabLayoutHomeFragment">
  2362.     <com.google.android.material.tabs.TabLayout
  2363.         android:id="@+id/mytablayout2"
  2364.         android:layout_width="match_parent"
  2365.         android:layout_height="wrap_content"
  2366.         app:tabMode="auto"
  2367.         app:tabGravity="start"
  2368.         app:tabBackground="@color/pink"
  2369.         app:tabTextColor="@color/white"
  2370.         app:layout_constraintStart_toStartOf="parent"
  2371.         app:layout_constraintTop_toTopOf="parent"
  2372.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2373.         />
  2374.     <androidx.viewpager2.widget.ViewPager2
  2375.         android:id="@+id/myviepage2"
  2376.         android:layout_width="match_parent"
  2377.         android:layout_height="0dp"
  2378.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2379.         app:layout_constraintBottom_toBottomOf="parent"
  2380.         app:layout_constraintStart_toStartOf="parent"
  2381.         />
  2382. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  2383. <?xml version="1.0" encoding="utf-8"?>
  2384. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2385.     xmlns:tools="http://schemas.android.com/tools"
  2386.     android:layout_width="match_parent"
  2387.     android:layout_height="match_parent"
  2388.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2389.     tools:context=".tablayout.TabLayoutHomeFragment">
  2390.     <com.google.android.material.tabs.TabLayout
  2391.         android:id="@+id/mytablayout2"
  2392.         android:layout_width="match_parent"
  2393.         android:layout_height="wrap_content"
  2394.         app:tabMode="auto"
  2395.         app:tabGravity="start"
  2396.         app:tabBackground="@color/pink"
  2397.         app:tabTextColor="@color/white"
  2398.         app:layout_constraintStart_toStartOf="parent"
  2399.         app:layout_constraintTop_toTopOf="parent"
  2400.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2401.         />
  2402.     <androidx.viewpager2.widget.ViewPager2
  2403.         android:id="@+id/myviepage2"
  2404.         android:layout_width="match_parent"
  2405.         android:layout_height="0dp"
  2406.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2407.         app:layout_constraintBottom_toBottomOf="parent"
  2408.         app:layout_constraintStart_toStartOf="parent"
  2409.         />
  2410. </androidx.constraintlayout.widget.ConstraintLayout>/>
  2411. </androidx.constraintlayout.widget.ConstraintLayout>    (tab, position) -> tab.setText(titleList.get(position)))<?xml version="1.0" encoding="utf-8"?>
  2412. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2413.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2414.     xmlns:tools="http://schemas.android.com/tools"
  2415.     android:layout_width="match_parent"
  2416.     android:layout_height="match_parent"
  2417.     tools:context=".ViewPager2TabLayoutActivity">
  2418.    
  2419.     <androidx.fragment.app.FragmentContainerView
  2420. <?xml version="1.0" encoding="utf-8"?>
  2421. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2422.     xmlns:tools="http://schemas.android.com/tools"
  2423.     android:layout_width="match_parent"
  2424.     android:layout_height="match_parent"
  2425.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2426.     tools:context=".tablayout.TabLayoutHomeFragment">
  2427.     <com.google.android.material.tabs.TabLayout
  2428.         android:id="@+id/mytablayout2"
  2429.         android:layout_width="match_parent"
  2430.         android:layout_height="wrap_content"
  2431.         app:tabMode="auto"
  2432.         app:tabGravity="start"
  2433.         app:tabBackground="@color/pink"
  2434.         app:tabTextColor="@color/white"
  2435.         app:layout_constraintStart_toStartOf="parent"
  2436.         app:layout_constraintTop_toTopOf="parent"
  2437.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2438.         />
  2439.     <androidx.viewpager2.widget.ViewPager2
  2440.         android:id="@+id/myviepage2"
  2441.         android:layout_width="match_parent"
  2442.         android:layout_height="0dp"
  2443.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2444.         app:layout_constraintBottom_toBottomOf="parent"
  2445.         app:layout_constraintStart_toStartOf="parent"
  2446.         />
  2447. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  2448. <?xml version="1.0" encoding="utf-8"?>
  2449. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2450.     xmlns:tools="http://schemas.android.com/tools"
  2451.     android:layout_width="match_parent"
  2452.     android:layout_height="match_parent"
  2453.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2454.     tools:context=".tablayout.TabLayoutHomeFragment">
  2455.     <com.google.android.material.tabs.TabLayout
  2456.         android:id="@+id/mytablayout2"
  2457.         android:layout_width="match_parent"
  2458.         android:layout_height="wrap_content"
  2459.         app:tabMode="auto"
  2460.         app:tabGravity="start"
  2461.         app:tabBackground="@color/pink"
  2462.         app:tabTextColor="@color/white"
  2463.         app:layout_constraintStart_toStartOf="parent"
  2464.         app:layout_constraintTop_toTopOf="parent"
  2465.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2466.         />
  2467.     <androidx.viewpager2.widget.ViewPager2
  2468.         android:id="@+id/myviepage2"
  2469.         android:layout_width="match_parent"
  2470.         android:layout_height="0dp"
  2471.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2472.         app:layout_constraintBottom_toBottomOf="parent"
  2473.         app:layout_constraintStart_toStartOf="parent"
  2474.         />
  2475. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  2476. <?xml version="1.0" encoding="utf-8"?>
  2477. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2478.     xmlns:tools="http://schemas.android.com/tools"
  2479.     android:layout_width="match_parent"
  2480.     android:layout_height="match_parent"
  2481.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2482.     tools:context=".tablayout.TabLayoutHomeFragment">
  2483.     <com.google.android.material.tabs.TabLayout
  2484.         android:id="@+id/mytablayout2"
  2485.         android:layout_width="match_parent"
  2486.         android:layout_height="wrap_content"
  2487.         app:tabMode="auto"
  2488.         app:tabGravity="start"
  2489.         app:tabBackground="@color/pink"
  2490.         app:tabTextColor="@color/white"
  2491.         app:layout_constraintStart_toStartOf="parent"
  2492.         app:layout_constraintTop_toTopOf="parent"
  2493.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2494.         />
  2495.     <androidx.viewpager2.widget.ViewPager2
  2496.         android:id="@+id/myviepage2"
  2497.         android:layout_width="match_parent"
  2498.         android:layout_height="0dp"
  2499.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2500.         app:layout_constraintBottom_toBottomOf="parent"
  2501.         app:layout_constraintStart_toStartOf="parent"
  2502.         />
  2503. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  2504. <?xml version="1.0" encoding="utf-8"?>
  2505. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2506.     xmlns:tools="http://schemas.android.com/tools"
  2507.     android:layout_width="match_parent"
  2508.     android:layout_height="match_parent"
  2509.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2510.     tools:context=".tablayout.TabLayoutHomeFragment">
  2511.     <com.google.android.material.tabs.TabLayout
  2512.         android:id="@+id/mytablayout2"
  2513.         android:layout_width="match_parent"
  2514.         android:layout_height="wrap_content"
  2515.         app:tabMode="auto"
  2516.         app:tabGravity="start"
  2517.         app:tabBackground="@color/pink"
  2518.         app:tabTextColor="@color/white"
  2519.         app:layout_constraintStart_toStartOf="parent"
  2520.         app:layout_constraintTop_toTopOf="parent"
  2521.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2522.         />
  2523.     <androidx.viewpager2.widget.ViewPager2
  2524.         android:id="@+id/myviepage2"
  2525.         android:layout_width="match_parent"
  2526.         android:layout_height="0dp"
  2527.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2528.         app:layout_constraintBottom_toBottomOf="parent"
  2529.         app:layout_constraintStart_toStartOf="parent"
  2530.         />
  2531. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  2532. <?xml version="1.0" encoding="utf-8"?>
  2533. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2534.     xmlns:tools="http://schemas.android.com/tools"
  2535.     android:layout_width="match_parent"
  2536.     android:layout_height="match_parent"
  2537.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2538.     tools:context=".tablayout.TabLayoutHomeFragment">
  2539.     <com.google.android.material.tabs.TabLayout
  2540.         android:id="@+id/mytablayout2"
  2541.         android:layout_width="match_parent"
  2542.         android:layout_height="wrap_content"
  2543.         app:tabMode="auto"
  2544.         app:tabGravity="start"
  2545.         app:tabBackground="@color/pink"
  2546.         app:tabTextColor="@color/white"
  2547.         app:layout_constraintStart_toStartOf="parent"
  2548.         app:layout_constraintTop_toTopOf="parent"
  2549.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2550.         />
  2551.     <androidx.viewpager2.widget.ViewPager2
  2552.         android:id="@+id/myviepage2"
  2553.         android:layout_width="match_parent"
  2554.         android:layout_height="0dp"
  2555.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2556.         app:layout_constraintBottom_toBottomOf="parent"
  2557.         app:layout_constraintStart_toStartOf="parent"
  2558.         />
  2559. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  2560.     <com.google.android.material.bottomnavigation.BottomNavigationView
  2561. <?xml version="1.0" encoding="utf-8"?>
  2562. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2563.     xmlns:tools="http://schemas.android.com/tools"
  2564.     android:layout_width="match_parent"
  2565.     android:layout_height="match_parent"
  2566.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2567.     tools:context=".tablayout.TabLayoutHomeFragment">
  2568.     <com.google.android.material.tabs.TabLayout
  2569.         android:id="@+id/mytablayout2"
  2570.         android:layout_width="match_parent"
  2571.         android:layout_height="wrap_content"
  2572.         app:tabMode="auto"
  2573.         app:tabGravity="start"
  2574.         app:tabBackground="@color/pink"
  2575.         app:tabTextColor="@color/white"
  2576.         app:layout_constraintStart_toStartOf="parent"
  2577.         app:layout_constraintTop_toTopOf="parent"
  2578.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2579.         />
  2580.     <androidx.viewpager2.widget.ViewPager2
  2581.         android:id="@+id/myviepage2"
  2582.         android:layout_width="match_parent"
  2583.         android:layout_height="0dp"
  2584.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2585.         app:layout_constraintBottom_toBottomOf="parent"
  2586.         app:layout_constraintStart_toStartOf="parent"
  2587.         />
  2588. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  2589. <?xml version="1.0" encoding="utf-8"?>
  2590. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2591.     xmlns:tools="http://schemas.android.com/tools"
  2592.     android:layout_width="match_parent"
  2593.     android:layout_height="match_parent"
  2594.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2595.     tools:context=".tablayout.TabLayoutHomeFragment">
  2596.     <com.google.android.material.tabs.TabLayout
  2597.         android:id="@+id/mytablayout2"
  2598.         android:layout_width="match_parent"
  2599.         android:layout_height="wrap_content"
  2600.         app:tabMode="auto"
  2601.         app:tabGravity="start"
  2602.         app:tabBackground="@color/pink"
  2603.         app:tabTextColor="@color/white"
  2604.         app:layout_constraintStart_toStartOf="parent"
  2605.         app:layout_constraintTop_toTopOf="parent"
  2606.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2607.         />
  2608.     <androidx.viewpager2.widget.ViewPager2
  2609.         android:id="@+id/myviepage2"
  2610.         android:layout_width="match_parent"
  2611.         android:layout_height="0dp"
  2612.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2613.         app:layout_constraintBottom_toBottomOf="parent"
  2614.         app:layout_constraintStart_toStartOf="parent"
  2615.         />
  2616. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  2617. <?xml version="1.0" encoding="utf-8"?>
  2618. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2619.     xmlns:tools="http://schemas.android.com/tools"
  2620.     android:layout_width="match_parent"
  2621.     android:layout_height="match_parent"
  2622.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2623.     tools:context=".tablayout.TabLayoutHomeFragment">
  2624.     <com.google.android.material.tabs.TabLayout
  2625.         android:id="@+id/mytablayout2"
  2626.         android:layout_width="match_parent"
  2627.         android:layout_height="wrap_content"
  2628.         app:tabMode="auto"
  2629.         app:tabGravity="start"
  2630.         app:tabBackground="@color/pink"
  2631.         app:tabTextColor="@color/white"
  2632.         app:layout_constraintStart_toStartOf="parent"
  2633.         app:layout_constraintTop_toTopOf="parent"
  2634.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2635.         />
  2636.     <androidx.viewpager2.widget.ViewPager2
  2637.         android:id="@+id/myviepage2"
  2638.         android:layout_width="match_parent"
  2639.         android:layout_height="0dp"
  2640.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2641.         app:layout_constraintBottom_toBottomOf="parent"
  2642.         app:layout_constraintStart_toStartOf="parent"
  2643.         />
  2644. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  2645. <?xml version="1.0" encoding="utf-8"?>
  2646. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2647.     xmlns:tools="http://schemas.android.com/tools"
  2648.     android:layout_width="match_parent"
  2649.     android:layout_height="match_parent"
  2650.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2651.     tools:context=".tablayout.TabLayoutHomeFragment">
  2652.     <com.google.android.material.tabs.TabLayout
  2653.         android:id="@+id/mytablayout2"
  2654.         android:layout_width="match_parent"
  2655.         android:layout_height="wrap_content"
  2656.         app:tabMode="auto"
  2657.         app:tabGravity="start"
  2658.         app:tabBackground="@color/pink"
  2659.         app:tabTextColor="@color/white"
  2660.         app:layout_constraintStart_toStartOf="parent"
  2661.         app:layout_constraintTop_toTopOf="parent"
  2662.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2663.         />
  2664.     <androidx.viewpager2.widget.ViewPager2
  2665.         android:id="@+id/myviepage2"
  2666.         android:layout_width="match_parent"
  2667.         android:layout_height="0dp"
  2668.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2669.         app:layout_constraintBottom_toBottomOf="parent"
  2670.         app:layout_constraintStart_toStartOf="parent"
  2671.         />
  2672. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  2673. <?xml version="1.0" encoding="utf-8"?>
  2674. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2675.     xmlns:tools="http://schemas.android.com/tools"
  2676.     android:layout_width="match_parent"
  2677.     android:layout_height="match_parent"
  2678.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2679.     tools:context=".tablayout.TabLayoutHomeFragment">
  2680.     <com.google.android.material.tabs.TabLayout
  2681.         android:id="@+id/mytablayout2"
  2682.         android:layout_width="match_parent"
  2683.         android:layout_height="wrap_content"
  2684.         app:tabMode="auto"
  2685.         app:tabGravity="start"
  2686.         app:tabBackground="@color/pink"
  2687.         app:tabTextColor="@color/white"
  2688.         app:layout_constraintStart_toStartOf="parent"
  2689.         app:layout_constraintTop_toTopOf="parent"
  2690.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2691.         />
  2692.     <androidx.viewpager2.widget.ViewPager2
  2693.         android:id="@+id/myviepage2"
  2694.         android:layout_width="match_parent"
  2695.         android:layout_height="0dp"
  2696.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2697.         app:layout_constraintBottom_toBottomOf="parent"
  2698.         app:layout_constraintStart_toStartOf="parent"
  2699.         />
  2700. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  2701. <?xml version="1.0" encoding="utf-8"?>
  2702. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2703.     xmlns:tools="http://schemas.android.com/tools"
  2704.     android:layout_width="match_parent"
  2705.     android:layout_height="match_parent"
  2706.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2707.     tools:context=".tablayout.TabLayoutHomeFragment">
  2708.     <com.google.android.material.tabs.TabLayout
  2709.         android:id="@+id/mytablayout2"
  2710.         android:layout_width="match_parent"
  2711.         android:layout_height="wrap_content"
  2712.         app:tabMode="auto"
  2713.         app:tabGravity="start"
  2714.         app:tabBackground="@color/pink"
  2715.         app:tabTextColor="@color/white"
  2716.         app:layout_constraintStart_toStartOf="parent"
  2717.         app:layout_constraintTop_toTopOf="parent"
  2718.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2719.         />
  2720.     <androidx.viewpager2.widget.ViewPager2
  2721.         android:id="@+id/myviepage2"
  2722.         android:layout_width="match_parent"
  2723.         android:layout_height="0dp"
  2724.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2725.         app:layout_constraintBottom_toBottomOf="parent"
  2726.         app:layout_constraintStart_toStartOf="parent"
  2727.         />
  2728. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  2729. <?xml version="1.0" encoding="utf-8"?>
  2730. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2731.     xmlns:tools="http://schemas.android.com/tools"
  2732.     android:layout_width="match_parent"
  2733.     android:layout_height="match_parent"
  2734.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2735.     tools:context=".tablayout.TabLayoutHomeFragment">
  2736.     <com.google.android.material.tabs.TabLayout
  2737.         android:id="@+id/mytablayout2"
  2738.         android:layout_width="match_parent"
  2739.         android:layout_height="wrap_content"
  2740.         app:tabMode="auto"
  2741.         app:tabGravity="start"
  2742.         app:tabBackground="@color/pink"
  2743.         app:tabTextColor="@color/white"
  2744.         app:layout_constraintStart_toStartOf="parent"
  2745.         app:layout_constraintTop_toTopOf="parent"
  2746.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2747.         />
  2748.     <androidx.viewpager2.widget.ViewPager2
  2749.         android:id="@+id/myviepage2"
  2750.         android:layout_width="match_parent"
  2751.         android:layout_height="0dp"
  2752.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2753.         app:layout_constraintBottom_toBottomOf="parent"
  2754.         app:layout_constraintStart_toStartOf="parent"
  2755.         />
  2756. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  2757. <?xml version="1.0" encoding="utf-8"?>
  2758. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2759.     xmlns:tools="http://schemas.android.com/tools"
  2760.     android:layout_width="match_parent"
  2761.     android:layout_height="match_parent"
  2762.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2763.     tools:context=".tablayout.TabLayoutHomeFragment">
  2764.     <com.google.android.material.tabs.TabLayout
  2765.         android:id="@+id/mytablayout2"
  2766.         android:layout_width="match_parent"
  2767.         android:layout_height="wrap_content"
  2768.         app:tabMode="auto"
  2769.         app:tabGravity="start"
  2770.         app:tabBackground="@color/pink"
  2771.         app:tabTextColor="@color/white"
  2772.         app:layout_constraintStart_toStartOf="parent"
  2773.         app:layout_constraintTop_toTopOf="parent"
  2774.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2775.         />
  2776.     <androidx.viewpager2.widget.ViewPager2
  2777.         android:id="@+id/myviepage2"
  2778.         android:layout_width="match_parent"
  2779.         android:layout_height="0dp"
  2780.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2781.         app:layout_constraintBottom_toBottomOf="parent"
  2782.         app:layout_constraintStart_toStartOf="parent"
  2783.         />
  2784. </androidx.constraintlayout.widget.ConstraintLayout>/>
  2785. </androidx.constraintlayout.widget.ConstraintLayout>    .attach();    }    private List initPageTitleList() {       return Arrays.asList("推荐","关注","娱乐","游戏","电影", "电视剧","实时新闻");    }    private List initChildFragmentList() {<?xml version="1.0" encoding="utf-8"?>
  2786. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2787.     xmlns:tools="http://schemas.android.com/tools"
  2788.     android:layout_width="match_parent"
  2789.     android:layout_height="match_parent"
  2790.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2791.     tools:context=".tablayout.TabLayoutHomeFragment">
  2792.     <com.google.android.material.tabs.TabLayout
  2793.         android:id="@+id/mytablayout2"
  2794.         android:layout_width="match_parent"
  2795.         android:layout_height="wrap_content"
  2796.         app:tabMode="auto"
  2797.         app:tabGravity="start"
  2798.         app:tabBackground="@color/pink"
  2799.         app:tabTextColor="@color/white"
  2800.         app:layout_constraintStart_toStartOf="parent"
  2801.         app:layout_constraintTop_toTopOf="parent"
  2802.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2803.         />
  2804.     <androidx.viewpager2.widget.ViewPager2
  2805.         android:id="@+id/myviepage2"
  2806.         android:layout_width="match_parent"
  2807.         android:layout_height="0dp"
  2808.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2809.         app:layout_constraintBottom_toBottomOf="parent"
  2810.         app:layout_constraintStart_toStartOf="parent"
  2811.         />
  2812. </androidx.constraintlayout.widget.ConstraintLayout>//在tablayout 的第一个fragment 中使用 RecycleView 优化一下页面<?xml version="1.0" encoding="utf-8"?>
  2813. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2814.     xmlns:tools="http://schemas.android.com/tools"
  2815.     android:layout_width="match_parent"
  2816.     android:layout_height="match_parent"
  2817.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2818.     tools:context=".tablayout.TabLayoutHomeFragment">
  2819.     <com.google.android.material.tabs.TabLayout
  2820.         android:id="@+id/mytablayout2"
  2821.         android:layout_width="match_parent"
  2822.         android:layout_height="wrap_content"
  2823.         app:tabMode="auto"
  2824.         app:tabGravity="start"
  2825.         app:tabBackground="@color/pink"
  2826.         app:tabTextColor="@color/white"
  2827.         app:layout_constraintStart_toStartOf="parent"
  2828.         app:layout_constraintTop_toTopOf="parent"
  2829.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2830.         />
  2831.     <androidx.viewpager2.widget.ViewPager2
  2832.         android:id="@+id/myviepage2"
  2833.         android:layout_width="match_parent"
  2834.         android:layout_height="0dp"
  2835.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2836.         app:layout_constraintBottom_toBottomOf="parent"
  2837.         app:layout_constraintStart_toStartOf="parent"
  2838.         />
  2839. </androidx.constraintlayout.widget.ConstraintLayout>RecFragment recFragment = new RecFragment();<?xml version="1.0" encoding="utf-8"?>
  2840. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2841.     xmlns:tools="http://schemas.android.com/tools"
  2842.     android:layout_width="match_parent"
  2843.     android:layout_height="match_parent"
  2844.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2845.     tools:context=".tablayout.TabLayoutHomeFragment">
  2846.     <com.google.android.material.tabs.TabLayout
  2847.         android:id="@+id/mytablayout2"
  2848.         android:layout_width="match_parent"
  2849.         android:layout_height="wrap_content"
  2850.         app:tabMode="auto"
  2851.         app:tabGravity="start"
  2852.         app:tabBackground="@color/pink"
  2853.         app:tabTextColor="@color/white"
  2854.         app:layout_constraintStart_toStartOf="parent"
  2855.         app:layout_constraintTop_toTopOf="parent"
  2856.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2857.         />
  2858.     <androidx.viewpager2.widget.ViewPager2
  2859.         android:id="@+id/myviepage2"
  2860.         android:layout_width="match_parent"
  2861.         android:layout_height="0dp"
  2862.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2863.         app:layout_constraintBottom_toBottomOf="parent"
  2864.         app:layout_constraintStart_toStartOf="parent"
  2865.         />
  2866. </androidx.constraintlayout.widget.ConstraintLayout>//BottomFragment bottomFragment = BottomFragment.newInstance("推荐", "");<?xml version="1.0" encoding="utf-8"?>
  2867. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2868.     xmlns:tools="http://schemas.android.com/tools"
  2869.     android:layout_width="match_parent"
  2870.     android:layout_height="match_parent"
  2871.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2872.     tools:context=".tablayout.TabLayoutHomeFragment">
  2873.     <com.google.android.material.tabs.TabLayout
  2874.         android:id="@+id/mytablayout2"
  2875.         android:layout_width="match_parent"
  2876.         android:layout_height="wrap_content"
  2877.         app:tabMode="auto"
  2878.         app:tabGravity="start"
  2879.         app:tabBackground="@color/pink"
  2880.         app:tabTextColor="@color/white"
  2881.         app:layout_constraintStart_toStartOf="parent"
  2882.         app:layout_constraintTop_toTopOf="parent"
  2883.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2884.         />
  2885.     <androidx.viewpager2.widget.ViewPager2
  2886.         android:id="@+id/myviepage2"
  2887.         android:layout_width="match_parent"
  2888.         android:layout_height="0dp"
  2889.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2890.         app:layout_constraintBottom_toBottomOf="parent"
  2891.         app:layout_constraintStart_toStartOf="parent"
  2892.         />
  2893. </androidx.constraintlayout.widget.ConstraintLayout>BottomFragment bottomFragment2 = BottomFragment.newInstance("关注", "");<?xml version="1.0" encoding="utf-8"?>
  2894. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2895.     xmlns:tools="http://schemas.android.com/tools"
  2896.     android:layout_width="match_parent"
  2897.     android:layout_height="match_parent"
  2898.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2899.     tools:context=".tablayout.TabLayoutHomeFragment">
  2900.     <com.google.android.material.tabs.TabLayout
  2901.         android:id="@+id/mytablayout2"
  2902.         android:layout_width="match_parent"
  2903.         android:layout_height="wrap_content"
  2904.         app:tabMode="auto"
  2905.         app:tabGravity="start"
  2906.         app:tabBackground="@color/pink"
  2907.         app:tabTextColor="@color/white"
  2908.         app:layout_constraintStart_toStartOf="parent"
  2909.         app:layout_constraintTop_toTopOf="parent"
  2910.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2911.         />
  2912.     <androidx.viewpager2.widget.ViewPager2
  2913.         android:id="@+id/myviepage2"
  2914.         android:layout_width="match_parent"
  2915.         android:layout_height="0dp"
  2916.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2917.         app:layout_constraintBottom_toBottomOf="parent"
  2918.         app:layout_constraintStart_toStartOf="parent"
  2919.         />
  2920. </androidx.constraintlayout.widget.ConstraintLayout>BottomFragment bottomFragment3 = BottomFragment.newInstance("娱乐", "");<?xml version="1.0" encoding="utf-8"?>
  2921. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2922.     xmlns:tools="http://schemas.android.com/tools"
  2923.     android:layout_width="match_parent"
  2924.     android:layout_height="match_parent"
  2925.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2926.     tools:context=".tablayout.TabLayoutHomeFragment">
  2927.     <com.google.android.material.tabs.TabLayout
  2928.         android:id="@+id/mytablayout2"
  2929.         android:layout_width="match_parent"
  2930.         android:layout_height="wrap_content"
  2931.         app:tabMode="auto"
  2932.         app:tabGravity="start"
  2933.         app:tabBackground="@color/pink"
  2934.         app:tabTextColor="@color/white"
  2935.         app:layout_constraintStart_toStartOf="parent"
  2936.         app:layout_constraintTop_toTopOf="parent"
  2937.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2938.         />
  2939.     <androidx.viewpager2.widget.ViewPager2
  2940.         android:id="@+id/myviepage2"
  2941.         android:layout_width="match_parent"
  2942.         android:layout_height="0dp"
  2943.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2944.         app:layout_constraintBottom_toBottomOf="parent"
  2945.         app:layout_constraintStart_toStartOf="parent"
  2946.         />
  2947. </androidx.constraintlayout.widget.ConstraintLayout>BottomFragment bottomFragment4 = BottomFragment.newInstance("游戏", "");<?xml version="1.0" encoding="utf-8"?>
  2948. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2949.     xmlns:tools="http://schemas.android.com/tools"
  2950.     android:layout_width="match_parent"
  2951.     android:layout_height="match_parent"
  2952.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2953.     tools:context=".tablayout.TabLayoutHomeFragment">
  2954.     <com.google.android.material.tabs.TabLayout
  2955.         android:id="@+id/mytablayout2"
  2956.         android:layout_width="match_parent"
  2957.         android:layout_height="wrap_content"
  2958.         app:tabMode="auto"
  2959.         app:tabGravity="start"
  2960.         app:tabBackground="@color/pink"
  2961.         app:tabTextColor="@color/white"
  2962.         app:layout_constraintStart_toStartOf="parent"
  2963.         app:layout_constraintTop_toTopOf="parent"
  2964.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2965.         />
  2966.     <androidx.viewpager2.widget.ViewPager2
  2967.         android:id="@+id/myviepage2"
  2968.         android:layout_width="match_parent"
  2969.         android:layout_height="0dp"
  2970.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2971.         app:layout_constraintBottom_toBottomOf="parent"
  2972.         app:layout_constraintStart_toStartOf="parent"
  2973.         />
  2974. </androidx.constraintlayout.widget.ConstraintLayout>BottomFragment bottomFragment5 = BottomFragment.newInstance("电影", "");<?xml version="1.0" encoding="utf-8"?>
  2975. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2976.     xmlns:tools="http://schemas.android.com/tools"
  2977.     android:layout_width="match_parent"
  2978.     android:layout_height="match_parent"
  2979.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2980.     tools:context=".tablayout.TabLayoutHomeFragment">
  2981.     <com.google.android.material.tabs.TabLayout
  2982.         android:id="@+id/mytablayout2"
  2983.         android:layout_width="match_parent"
  2984.         android:layout_height="wrap_content"
  2985.         app:tabMode="auto"
  2986.         app:tabGravity="start"
  2987.         app:tabBackground="@color/pink"
  2988.         app:tabTextColor="@color/white"
  2989.         app:layout_constraintStart_toStartOf="parent"
  2990.         app:layout_constraintTop_toTopOf="parent"
  2991.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2992.         />
  2993.     <androidx.viewpager2.widget.ViewPager2
  2994.         android:id="@+id/myviepage2"
  2995.         android:layout_width="match_parent"
  2996.         android:layout_height="0dp"
  2997.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2998.         app:layout_constraintBottom_toBottomOf="parent"
  2999.         app:layout_constraintStart_toStartOf="parent"
  3000.         />
  3001. </androidx.constraintlayout.widget.ConstraintLayout>BottomFragment bottomFragment6 = BottomFragment.newInstance("电视剧", "");<?xml version="1.0" encoding="utf-8"?>
  3002. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3003.     xmlns:tools="http://schemas.android.com/tools"
  3004.     android:layout_width="match_parent"
  3005.     android:layout_height="match_parent"
  3006.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3007.     tools:context=".tablayout.TabLayoutHomeFragment">
  3008.     <com.google.android.material.tabs.TabLayout
  3009.         android:id="@+id/mytablayout2"
  3010.         android:layout_width="match_parent"
  3011.         android:layout_height="wrap_content"
  3012.         app:tabMode="auto"
  3013.         app:tabGravity="start"
  3014.         app:tabBackground="@color/pink"
  3015.         app:tabTextColor="@color/white"
  3016.         app:layout_constraintStart_toStartOf="parent"
  3017.         app:layout_constraintTop_toTopOf="parent"
  3018.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3019.         />
  3020.     <androidx.viewpager2.widget.ViewPager2
  3021.         android:id="@+id/myviepage2"
  3022.         android:layout_width="match_parent"
  3023.         android:layout_height="0dp"
  3024.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3025.         app:layout_constraintBottom_toBottomOf="parent"
  3026.         app:layout_constraintStart_toStartOf="parent"
  3027.         />
  3028. </androidx.constraintlayout.widget.ConstraintLayout>BottomFragment bottomFragment7 = BottomFragment.newInstance("实时新闻", "");<?xml version="1.0" encoding="utf-8"?>
  3029. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3030.     xmlns:tools="http://schemas.android.com/tools"
  3031.     android:layout_width="match_parent"
  3032.     android:layout_height="match_parent"
  3033.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3034.     tools:context=".tablayout.TabLayoutHomeFragment">
  3035.     <com.google.android.material.tabs.TabLayout
  3036.         android:id="@+id/mytablayout2"
  3037.         android:layout_width="match_parent"
  3038.         android:layout_height="wrap_content"
  3039.         app:tabMode="auto"
  3040.         app:tabGravity="start"
  3041.         app:tabBackground="@color/pink"
  3042.         app:tabTextColor="@color/white"
  3043.         app:layout_constraintStart_toStartOf="parent"
  3044.         app:layout_constraintTop_toTopOf="parent"
  3045.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3046.         />
  3047.     <androidx.viewpager2.widget.ViewPager2
  3048.         android:id="@+id/myviepage2"
  3049.         android:layout_width="match_parent"
  3050.         android:layout_height="0dp"
  3051.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3052.         app:layout_constraintBottom_toBottomOf="parent"
  3053.         app:layout_constraintStart_toStartOf="parent"
  3054.         />
  3055. </androidx.constraintlayout.widget.ConstraintLayout>return Arrays.asList(<?xml version="1.0" encoding="utf-8"?>
  3056. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3057.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3058.     xmlns:tools="http://schemas.android.com/tools"
  3059.     android:layout_width="match_parent"
  3060.     android:layout_height="match_parent"
  3061.     tools:context=".ViewPager2TabLayoutActivity">
  3062.    
  3063.     <androidx.fragment.app.FragmentContainerView
  3064. <?xml version="1.0" encoding="utf-8"?>
  3065. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3066.     xmlns:tools="http://schemas.android.com/tools"
  3067.     android:layout_width="match_parent"
  3068.     android:layout_height="match_parent"
  3069.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3070.     tools:context=".tablayout.TabLayoutHomeFragment">
  3071.     <com.google.android.material.tabs.TabLayout
  3072.         android:id="@+id/mytablayout2"
  3073.         android:layout_width="match_parent"
  3074.         android:layout_height="wrap_content"
  3075.         app:tabMode="auto"
  3076.         app:tabGravity="start"
  3077.         app:tabBackground="@color/pink"
  3078.         app:tabTextColor="@color/white"
  3079.         app:layout_constraintStart_toStartOf="parent"
  3080.         app:layout_constraintTop_toTopOf="parent"
  3081.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3082.         />
  3083.     <androidx.viewpager2.widget.ViewPager2
  3084.         android:id="@+id/myviepage2"
  3085.         android:layout_width="match_parent"
  3086.         android:layout_height="0dp"
  3087.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3088.         app:layout_constraintBottom_toBottomOf="parent"
  3089.         app:layout_constraintStart_toStartOf="parent"
  3090.         />
  3091. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  3092. <?xml version="1.0" encoding="utf-8"?>
  3093. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3094.     xmlns:tools="http://schemas.android.com/tools"
  3095.     android:layout_width="match_parent"
  3096.     android:layout_height="match_parent"
  3097.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3098.     tools:context=".tablayout.TabLayoutHomeFragment">
  3099.     <com.google.android.material.tabs.TabLayout
  3100.         android:id="@+id/mytablayout2"
  3101.         android:layout_width="match_parent"
  3102.         android:layout_height="wrap_content"
  3103.         app:tabMode="auto"
  3104.         app:tabGravity="start"
  3105.         app:tabBackground="@color/pink"
  3106.         app:tabTextColor="@color/white"
  3107.         app:layout_constraintStart_toStartOf="parent"
  3108.         app:layout_constraintTop_toTopOf="parent"
  3109.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3110.         />
  3111.     <androidx.viewpager2.widget.ViewPager2
  3112.         android:id="@+id/myviepage2"
  3113.         android:layout_width="match_parent"
  3114.         android:layout_height="0dp"
  3115.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3116.         app:layout_constraintBottom_toBottomOf="parent"
  3117.         app:layout_constraintStart_toStartOf="parent"
  3118.         />
  3119. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  3120. <?xml version="1.0" encoding="utf-8"?>
  3121. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3122.     xmlns:tools="http://schemas.android.com/tools"
  3123.     android:layout_width="match_parent"
  3124.     android:layout_height="match_parent"
  3125.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3126.     tools:context=".tablayout.TabLayoutHomeFragment">
  3127.     <com.google.android.material.tabs.TabLayout
  3128.         android:id="@+id/mytablayout2"
  3129.         android:layout_width="match_parent"
  3130.         android:layout_height="wrap_content"
  3131.         app:tabMode="auto"
  3132.         app:tabGravity="start"
  3133.         app:tabBackground="@color/pink"
  3134.         app:tabTextColor="@color/white"
  3135.         app:layout_constraintStart_toStartOf="parent"
  3136.         app:layout_constraintTop_toTopOf="parent"
  3137.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3138.         />
  3139.     <androidx.viewpager2.widget.ViewPager2
  3140.         android:id="@+id/myviepage2"
  3141.         android:layout_width="match_parent"
  3142.         android:layout_height="0dp"
  3143.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3144.         app:layout_constraintBottom_toBottomOf="parent"
  3145.         app:layout_constraintStart_toStartOf="parent"
  3146.         />
  3147. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  3148. <?xml version="1.0" encoding="utf-8"?>
  3149. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3150.     xmlns:tools="http://schemas.android.com/tools"
  3151.     android:layout_width="match_parent"
  3152.     android:layout_height="match_parent"
  3153.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3154.     tools:context=".tablayout.TabLayoutHomeFragment">
  3155.     <com.google.android.material.tabs.TabLayout
  3156.         android:id="@+id/mytablayout2"
  3157.         android:layout_width="match_parent"
  3158.         android:layout_height="wrap_content"
  3159.         app:tabMode="auto"
  3160.         app:tabGravity="start"
  3161.         app:tabBackground="@color/pink"
  3162.         app:tabTextColor="@color/white"
  3163.         app:layout_constraintStart_toStartOf="parent"
  3164.         app:layout_constraintTop_toTopOf="parent"
  3165.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3166.         />
  3167.     <androidx.viewpager2.widget.ViewPager2
  3168.         android:id="@+id/myviepage2"
  3169.         android:layout_width="match_parent"
  3170.         android:layout_height="0dp"
  3171.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3172.         app:layout_constraintBottom_toBottomOf="parent"
  3173.         app:layout_constraintStart_toStartOf="parent"
  3174.         />
  3175. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  3176. <?xml version="1.0" encoding="utf-8"?>
  3177. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3178.     xmlns:tools="http://schemas.android.com/tools"
  3179.     android:layout_width="match_parent"
  3180.     android:layout_height="match_parent"
  3181.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3182.     tools:context=".tablayout.TabLayoutHomeFragment">
  3183.     <com.google.android.material.tabs.TabLayout
  3184.         android:id="@+id/mytablayout2"
  3185.         android:layout_width="match_parent"
  3186.         android:layout_height="wrap_content"
  3187.         app:tabMode="auto"
  3188.         app:tabGravity="start"
  3189.         app:tabBackground="@color/pink"
  3190.         app:tabTextColor="@color/white"
  3191.         app:layout_constraintStart_toStartOf="parent"
  3192.         app:layout_constraintTop_toTopOf="parent"
  3193.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3194.         />
  3195.     <androidx.viewpager2.widget.ViewPager2
  3196.         android:id="@+id/myviepage2"
  3197.         android:layout_width="match_parent"
  3198.         android:layout_height="0dp"
  3199.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3200.         app:layout_constraintBottom_toBottomOf="parent"
  3201.         app:layout_constraintStart_toStartOf="parent"
  3202.         />
  3203. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  3204.     <com.google.android.material.bottomnavigation.BottomNavigationView
  3205. <?xml version="1.0" encoding="utf-8"?>
  3206. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3207.     xmlns:tools="http://schemas.android.com/tools"
  3208.     android:layout_width="match_parent"
  3209.     android:layout_height="match_parent"
  3210.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3211.     tools:context=".tablayout.TabLayoutHomeFragment">
  3212.     <com.google.android.material.tabs.TabLayout
  3213.         android:id="@+id/mytablayout2"
  3214.         android:layout_width="match_parent"
  3215.         android:layout_height="wrap_content"
  3216.         app:tabMode="auto"
  3217.         app:tabGravity="start"
  3218.         app:tabBackground="@color/pink"
  3219.         app:tabTextColor="@color/white"
  3220.         app:layout_constraintStart_toStartOf="parent"
  3221.         app:layout_constraintTop_toTopOf="parent"
  3222.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3223.         />
  3224.     <androidx.viewpager2.widget.ViewPager2
  3225.         android:id="@+id/myviepage2"
  3226.         android:layout_width="match_parent"
  3227.         android:layout_height="0dp"
  3228.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3229.         app:layout_constraintBottom_toBottomOf="parent"
  3230.         app:layout_constraintStart_toStartOf="parent"
  3231.         />
  3232. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  3233. <?xml version="1.0" encoding="utf-8"?>
  3234. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3235.     xmlns:tools="http://schemas.android.com/tools"
  3236.     android:layout_width="match_parent"
  3237.     android:layout_height="match_parent"
  3238.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3239.     tools:context=".tablayout.TabLayoutHomeFragment">
  3240.     <com.google.android.material.tabs.TabLayout
  3241.         android:id="@+id/mytablayout2"
  3242.         android:layout_width="match_parent"
  3243.         android:layout_height="wrap_content"
  3244.         app:tabMode="auto"
  3245.         app:tabGravity="start"
  3246.         app:tabBackground="@color/pink"
  3247.         app:tabTextColor="@color/white"
  3248.         app:layout_constraintStart_toStartOf="parent"
  3249.         app:layout_constraintTop_toTopOf="parent"
  3250.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3251.         />
  3252.     <androidx.viewpager2.widget.ViewPager2
  3253.         android:id="@+id/myviepage2"
  3254.         android:layout_width="match_parent"
  3255.         android:layout_height="0dp"
  3256.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3257.         app:layout_constraintBottom_toBottomOf="parent"
  3258.         app:layout_constraintStart_toStartOf="parent"
  3259.         />
  3260. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  3261. <?xml version="1.0" encoding="utf-8"?>
  3262. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3263.     xmlns:tools="http://schemas.android.com/tools"
  3264.     android:layout_width="match_parent"
  3265.     android:layout_height="match_parent"
  3266.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3267.     tools:context=".tablayout.TabLayoutHomeFragment">
  3268.     <com.google.android.material.tabs.TabLayout
  3269.         android:id="@+id/mytablayout2"
  3270.         android:layout_width="match_parent"
  3271.         android:layout_height="wrap_content"
  3272.         app:tabMode="auto"
  3273.         app:tabGravity="start"
  3274.         app:tabBackground="@color/pink"
  3275.         app:tabTextColor="@color/white"
  3276.         app:layout_constraintStart_toStartOf="parent"
  3277.         app:layout_constraintTop_toTopOf="parent"
  3278.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3279.         />
  3280.     <androidx.viewpager2.widget.ViewPager2
  3281.         android:id="@+id/myviepage2"
  3282.         android:layout_width="match_parent"
  3283.         android:layout_height="0dp"
  3284.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3285.         app:layout_constraintBottom_toBottomOf="parent"
  3286.         app:layout_constraintStart_toStartOf="parent"
  3287.         />
  3288. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  3289. <?xml version="1.0" encoding="utf-8"?>
  3290. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3291.     xmlns:tools="http://schemas.android.com/tools"
  3292.     android:layout_width="match_parent"
  3293.     android:layout_height="match_parent"
  3294.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3295.     tools:context=".tablayout.TabLayoutHomeFragment">
  3296.     <com.google.android.material.tabs.TabLayout
  3297.         android:id="@+id/mytablayout2"
  3298.         android:layout_width="match_parent"
  3299.         android:layout_height="wrap_content"
  3300.         app:tabMode="auto"
  3301.         app:tabGravity="start"
  3302.         app:tabBackground="@color/pink"
  3303.         app:tabTextColor="@color/white"
  3304.         app:layout_constraintStart_toStartOf="parent"
  3305.         app:layout_constraintTop_toTopOf="parent"
  3306.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3307.         />
  3308.     <androidx.viewpager2.widget.ViewPager2
  3309.         android:id="@+id/myviepage2"
  3310.         android:layout_width="match_parent"
  3311.         android:layout_height="0dp"
  3312.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3313.         app:layout_constraintBottom_toBottomOf="parent"
  3314.         app:layout_constraintStart_toStartOf="parent"
  3315.         />
  3316. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  3317. <?xml version="1.0" encoding="utf-8"?>
  3318. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3319.     xmlns:tools="http://schemas.android.com/tools"
  3320.     android:layout_width="match_parent"
  3321.     android:layout_height="match_parent"
  3322.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3323.     tools:context=".tablayout.TabLayoutHomeFragment">
  3324.     <com.google.android.material.tabs.TabLayout
  3325.         android:id="@+id/mytablayout2"
  3326.         android:layout_width="match_parent"
  3327.         android:layout_height="wrap_content"
  3328.         app:tabMode="auto"
  3329.         app:tabGravity="start"
  3330.         app:tabBackground="@color/pink"
  3331.         app:tabTextColor="@color/white"
  3332.         app:layout_constraintStart_toStartOf="parent"
  3333.         app:layout_constraintTop_toTopOf="parent"
  3334.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3335.         />
  3336.     <androidx.viewpager2.widget.ViewPager2
  3337.         android:id="@+id/myviepage2"
  3338.         android:layout_width="match_parent"
  3339.         android:layout_height="0dp"
  3340.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3341.         app:layout_constraintBottom_toBottomOf="parent"
  3342.         app:layout_constraintStart_toStartOf="parent"
  3343.         />
  3344. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  3345. <?xml version="1.0" encoding="utf-8"?>
  3346. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3347.     xmlns:tools="http://schemas.android.com/tools"
  3348.     android:layout_width="match_parent"
  3349.     android:layout_height="match_parent"
  3350.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3351.     tools:context=".tablayout.TabLayoutHomeFragment">
  3352.     <com.google.android.material.tabs.TabLayout
  3353.         android:id="@+id/mytablayout2"
  3354.         android:layout_width="match_parent"
  3355.         android:layout_height="wrap_content"
  3356.         app:tabMode="auto"
  3357.         app:tabGravity="start"
  3358.         app:tabBackground="@color/pink"
  3359.         app:tabTextColor="@color/white"
  3360.         app:layout_constraintStart_toStartOf="parent"
  3361.         app:layout_constraintTop_toTopOf="parent"
  3362.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3363.         />
  3364.     <androidx.viewpager2.widget.ViewPager2
  3365.         android:id="@+id/myviepage2"
  3366.         android:layout_width="match_parent"
  3367.         android:layout_height="0dp"
  3368.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3369.         app:layout_constraintBottom_toBottomOf="parent"
  3370.         app:layout_constraintStart_toStartOf="parent"
  3371.         />
  3372. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  3373. <?xml version="1.0" encoding="utf-8"?>
  3374. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3375.     xmlns:tools="http://schemas.android.com/tools"
  3376.     android:layout_width="match_parent"
  3377.     android:layout_height="match_parent"
  3378.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3379.     tools:context=".tablayout.TabLayoutHomeFragment">
  3380.     <com.google.android.material.tabs.TabLayout
  3381.         android:id="@+id/mytablayout2"
  3382.         android:layout_width="match_parent"
  3383.         android:layout_height="wrap_content"
  3384.         app:tabMode="auto"
  3385.         app:tabGravity="start"
  3386.         app:tabBackground="@color/pink"
  3387.         app:tabTextColor="@color/white"
  3388.         app:layout_constraintStart_toStartOf="parent"
  3389.         app:layout_constraintTop_toTopOf="parent"
  3390.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3391.         />
  3392.     <androidx.viewpager2.widget.ViewPager2
  3393.         android:id="@+id/myviepage2"
  3394.         android:layout_width="match_parent"
  3395.         android:layout_height="0dp"
  3396.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3397.         app:layout_constraintBottom_toBottomOf="parent"
  3398.         app:layout_constraintStart_toStartOf="parent"
  3399.         />
  3400. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  3401. <?xml version="1.0" encoding="utf-8"?>
  3402. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3403.     xmlns:tools="http://schemas.android.com/tools"
  3404.     android:layout_width="match_parent"
  3405.     android:layout_height="match_parent"
  3406.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3407.     tools:context=".tablayout.TabLayoutHomeFragment">
  3408.     <com.google.android.material.tabs.TabLayout
  3409.         android:id="@+id/mytablayout2"
  3410.         android:layout_width="match_parent"
  3411.         android:layout_height="wrap_content"
  3412.         app:tabMode="auto"
  3413.         app:tabGravity="start"
  3414.         app:tabBackground="@color/pink"
  3415.         app:tabTextColor="@color/white"
  3416.         app:layout_constraintStart_toStartOf="parent"
  3417.         app:layout_constraintTop_toTopOf="parent"
  3418.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3419.         />
  3420.     <androidx.viewpager2.widget.ViewPager2
  3421.         android:id="@+id/myviepage2"
  3422.         android:layout_width="match_parent"
  3423.         android:layout_height="0dp"
  3424.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3425.         app:layout_constraintBottom_toBottomOf="parent"
  3426.         app:layout_constraintStart_toStartOf="parent"
  3427.         />
  3428. </androidx.constraintlayout.widget.ConstraintLayout>/>
  3429. </androidx.constraintlayout.widget.ConstraintLayout>    recFragment,<?xml version="1.0" encoding="utf-8"?>
  3430. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3431.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3432.     xmlns:tools="http://schemas.android.com/tools"
  3433.     android:layout_width="match_parent"
  3434.     android:layout_height="match_parent"
  3435.     tools:context=".ViewPager2TabLayoutActivity">
  3436.    
  3437.     <androidx.fragment.app.FragmentContainerView
  3438. <?xml version="1.0" encoding="utf-8"?>
  3439. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3440.     xmlns:tools="http://schemas.android.com/tools"
  3441.     android:layout_width="match_parent"
  3442.     android:layout_height="match_parent"
  3443.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3444.     tools:context=".tablayout.TabLayoutHomeFragment">
  3445.     <com.google.android.material.tabs.TabLayout
  3446.         android:id="@+id/mytablayout2"
  3447.         android:layout_width="match_parent"
  3448.         android:layout_height="wrap_content"
  3449.         app:tabMode="auto"
  3450.         app:tabGravity="start"
  3451.         app:tabBackground="@color/pink"
  3452.         app:tabTextColor="@color/white"
  3453.         app:layout_constraintStart_toStartOf="parent"
  3454.         app:layout_constraintTop_toTopOf="parent"
  3455.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3456.         />
  3457.     <androidx.viewpager2.widget.ViewPager2
  3458.         android:id="@+id/myviepage2"
  3459.         android:layout_width="match_parent"
  3460.         android:layout_height="0dp"
  3461.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3462.         app:layout_constraintBottom_toBottomOf="parent"
  3463.         app:layout_constraintStart_toStartOf="parent"
  3464.         />
  3465. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  3466. <?xml version="1.0" encoding="utf-8"?>
  3467. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3468.     xmlns:tools="http://schemas.android.com/tools"
  3469.     android:layout_width="match_parent"
  3470.     android:layout_height="match_parent"
  3471.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3472.     tools:context=".tablayout.TabLayoutHomeFragment">
  3473.     <com.google.android.material.tabs.TabLayout
  3474.         android:id="@+id/mytablayout2"
  3475.         android:layout_width="match_parent"
  3476.         android:layout_height="wrap_content"
  3477.         app:tabMode="auto"
  3478.         app:tabGravity="start"
  3479.         app:tabBackground="@color/pink"
  3480.         app:tabTextColor="@color/white"
  3481.         app:layout_constraintStart_toStartOf="parent"
  3482.         app:layout_constraintTop_toTopOf="parent"
  3483.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3484.         />
  3485.     <androidx.viewpager2.widget.ViewPager2
  3486.         android:id="@+id/myviepage2"
  3487.         android:layout_width="match_parent"
  3488.         android:layout_height="0dp"
  3489.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3490.         app:layout_constraintBottom_toBottomOf="parent"
  3491.         app:layout_constraintStart_toStartOf="parent"
  3492.         />
  3493. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  3494. <?xml version="1.0" encoding="utf-8"?>
  3495. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3496.     xmlns:tools="http://schemas.android.com/tools"
  3497.     android:layout_width="match_parent"
  3498.     android:layout_height="match_parent"
  3499.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3500.     tools:context=".tablayout.TabLayoutHomeFragment">
  3501.     <com.google.android.material.tabs.TabLayout
  3502.         android:id="@+id/mytablayout2"
  3503.         android:layout_width="match_parent"
  3504.         android:layout_height="wrap_content"
  3505.         app:tabMode="auto"
  3506.         app:tabGravity="start"
  3507.         app:tabBackground="@color/pink"
  3508.         app:tabTextColor="@color/white"
  3509.         app:layout_constraintStart_toStartOf="parent"
  3510.         app:layout_constraintTop_toTopOf="parent"
  3511.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3512.         />
  3513.     <androidx.viewpager2.widget.ViewPager2
  3514.         android:id="@+id/myviepage2"
  3515.         android:layout_width="match_parent"
  3516.         android:layout_height="0dp"
  3517.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3518.         app:layout_constraintBottom_toBottomOf="parent"
  3519.         app:layout_constraintStart_toStartOf="parent"
  3520.         />
  3521. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  3522. <?xml version="1.0" encoding="utf-8"?>
  3523. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3524.     xmlns:tools="http://schemas.android.com/tools"
  3525.     android:layout_width="match_parent"
  3526.     android:layout_height="match_parent"
  3527.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3528.     tools:context=".tablayout.TabLayoutHomeFragment">
  3529.     <com.google.android.material.tabs.TabLayout
  3530.         android:id="@+id/mytablayout2"
  3531.         android:layout_width="match_parent"
  3532.         android:layout_height="wrap_content"
  3533.         app:tabMode="auto"
  3534.         app:tabGravity="start"
  3535.         app:tabBackground="@color/pink"
  3536.         app:tabTextColor="@color/white"
  3537.         app:layout_constraintStart_toStartOf="parent"
  3538.         app:layout_constraintTop_toTopOf="parent"
  3539.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3540.         />
  3541.     <androidx.viewpager2.widget.ViewPager2
  3542.         android:id="@+id/myviepage2"
  3543.         android:layout_width="match_parent"
  3544.         android:layout_height="0dp"
  3545.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3546.         app:layout_constraintBottom_toBottomOf="parent"
  3547.         app:layout_constraintStart_toStartOf="parent"
  3548.         />
  3549. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  3550. <?xml version="1.0" encoding="utf-8"?>
  3551. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3552.     xmlns:tools="http://schemas.android.com/tools"
  3553.     android:layout_width="match_parent"
  3554.     android:layout_height="match_parent"
  3555.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3556.     tools:context=".tablayout.TabLayoutHomeFragment">
  3557.     <com.google.android.material.tabs.TabLayout
  3558.         android:id="@+id/mytablayout2"
  3559.         android:layout_width="match_parent"
  3560.         android:layout_height="wrap_content"
  3561.         app:tabMode="auto"
  3562.         app:tabGravity="start"
  3563.         app:tabBackground="@color/pink"
  3564.         app:tabTextColor="@color/white"
  3565.         app:layout_constraintStart_toStartOf="parent"
  3566.         app:layout_constraintTop_toTopOf="parent"
  3567.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3568.         />
  3569.     <androidx.viewpager2.widget.ViewPager2
  3570.         android:id="@+id/myviepage2"
  3571.         android:layout_width="match_parent"
  3572.         android:layout_height="0dp"
  3573.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3574.         app:layout_constraintBottom_toBottomOf="parent"
  3575.         app:layout_constraintStart_toStartOf="parent"
  3576.         />
  3577. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  3578.     <com.google.android.material.bottomnavigation.BottomNavigationView
  3579. <?xml version="1.0" encoding="utf-8"?>
  3580. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3581.     xmlns:tools="http://schemas.android.com/tools"
  3582.     android:layout_width="match_parent"
  3583.     android:layout_height="match_parent"
  3584.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3585.     tools:context=".tablayout.TabLayoutHomeFragment">
  3586.     <com.google.android.material.tabs.TabLayout
  3587.         android:id="@+id/mytablayout2"
  3588.         android:layout_width="match_parent"
  3589.         android:layout_height="wrap_content"
  3590.         app:tabMode="auto"
  3591.         app:tabGravity="start"
  3592.         app:tabBackground="@color/pink"
  3593.         app:tabTextColor="@color/white"
  3594.         app:layout_constraintStart_toStartOf="parent"
  3595.         app:layout_constraintTop_toTopOf="parent"
  3596.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3597.         />
  3598.     <androidx.viewpager2.widget.ViewPager2
  3599.         android:id="@+id/myviepage2"
  3600.         android:layout_width="match_parent"
  3601.         android:layout_height="0dp"
  3602.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3603.         app:layout_constraintBottom_toBottomOf="parent"
  3604.         app:layout_constraintStart_toStartOf="parent"
  3605.         />
  3606. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  3607. <?xml version="1.0" encoding="utf-8"?>
  3608. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3609.     xmlns:tools="http://schemas.android.com/tools"
  3610.     android:layout_width="match_parent"
  3611.     android:layout_height="match_parent"
  3612.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3613.     tools:context=".tablayout.TabLayoutHomeFragment">
  3614.     <com.google.android.material.tabs.TabLayout
  3615.         android:id="@+id/mytablayout2"
  3616.         android:layout_width="match_parent"
  3617.         android:layout_height="wrap_content"
  3618.         app:tabMode="auto"
  3619.         app:tabGravity="start"
  3620.         app:tabBackground="@color/pink"
  3621.         app:tabTextColor="@color/white"
  3622.         app:layout_constraintStart_toStartOf="parent"
  3623.         app:layout_constraintTop_toTopOf="parent"
  3624.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3625.         />
  3626.     <androidx.viewpager2.widget.ViewPager2
  3627.         android:id="@+id/myviepage2"
  3628.         android:layout_width="match_parent"
  3629.         android:layout_height="0dp"
  3630.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3631.         app:layout_constraintBottom_toBottomOf="parent"
  3632.         app:layout_constraintStart_toStartOf="parent"
  3633.         />
  3634. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  3635. <?xml version="1.0" encoding="utf-8"?>
  3636. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3637.     xmlns:tools="http://schemas.android.com/tools"
  3638.     android:layout_width="match_parent"
  3639.     android:layout_height="match_parent"
  3640.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3641.     tools:context=".tablayout.TabLayoutHomeFragment">
  3642.     <com.google.android.material.tabs.TabLayout
  3643.         android:id="@+id/mytablayout2"
  3644.         android:layout_width="match_parent"
  3645.         android:layout_height="wrap_content"
  3646.         app:tabMode="auto"
  3647.         app:tabGravity="start"
  3648.         app:tabBackground="@color/pink"
  3649.         app:tabTextColor="@color/white"
  3650.         app:layout_constraintStart_toStartOf="parent"
  3651.         app:layout_constraintTop_toTopOf="parent"
  3652.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3653.         />
  3654.     <androidx.viewpager2.widget.ViewPager2
  3655.         android:id="@+id/myviepage2"
  3656.         android:layout_width="match_parent"
  3657.         android:layout_height="0dp"
  3658.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3659.         app:layout_constraintBottom_toBottomOf="parent"
  3660.         app:layout_constraintStart_toStartOf="parent"
  3661.         />
  3662. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  3663. <?xml version="1.0" encoding="utf-8"?>
  3664. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3665.     xmlns:tools="http://schemas.android.com/tools"
  3666.     android:layout_width="match_parent"
  3667.     android:layout_height="match_parent"
  3668.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3669.     tools:context=".tablayout.TabLayoutHomeFragment">
  3670.     <com.google.android.material.tabs.TabLayout
  3671.         android:id="@+id/mytablayout2"
  3672.         android:layout_width="match_parent"
  3673.         android:layout_height="wrap_content"
  3674.         app:tabMode="auto"
  3675.         app:tabGravity="start"
  3676.         app:tabBackground="@color/pink"
  3677.         app:tabTextColor="@color/white"
  3678.         app:layout_constraintStart_toStartOf="parent"
  3679.         app:layout_constraintTop_toTopOf="parent"
  3680.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3681.         />
  3682.     <androidx.viewpager2.widget.ViewPager2
  3683.         android:id="@+id/myviepage2"
  3684.         android:layout_width="match_parent"
  3685.         android:layout_height="0dp"
  3686.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3687.         app:layout_constraintBottom_toBottomOf="parent"
  3688.         app:layout_constraintStart_toStartOf="parent"
  3689.         />
  3690. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  3691. <?xml version="1.0" encoding="utf-8"?>
  3692. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3693.     xmlns:tools="http://schemas.android.com/tools"
  3694.     android:layout_width="match_parent"
  3695.     android:layout_height="match_parent"
  3696.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3697.     tools:context=".tablayout.TabLayoutHomeFragment">
  3698.     <com.google.android.material.tabs.TabLayout
  3699.         android:id="@+id/mytablayout2"
  3700.         android:layout_width="match_parent"
  3701.         android:layout_height="wrap_content"
  3702.         app:tabMode="auto"
  3703.         app:tabGravity="start"
  3704.         app:tabBackground="@color/pink"
  3705.         app:tabTextColor="@color/white"
  3706.         app:layout_constraintStart_toStartOf="parent"
  3707.         app:layout_constraintTop_toTopOf="parent"
  3708.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3709.         />
  3710.     <androidx.viewpager2.widget.ViewPager2
  3711.         android:id="@+id/myviepage2"
  3712.         android:layout_width="match_parent"
  3713.         android:layout_height="0dp"
  3714.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3715.         app:layout_constraintBottom_toBottomOf="parent"
  3716.         app:layout_constraintStart_toStartOf="parent"
  3717.         />
  3718. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  3719. <?xml version="1.0" encoding="utf-8"?>
  3720. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3721.     xmlns:tools="http://schemas.android.com/tools"
  3722.     android:layout_width="match_parent"
  3723.     android:layout_height="match_parent"
  3724.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3725.     tools:context=".tablayout.TabLayoutHomeFragment">
  3726.     <com.google.android.material.tabs.TabLayout
  3727.         android:id="@+id/mytablayout2"
  3728.         android:layout_width="match_parent"
  3729.         android:layout_height="wrap_content"
  3730.         app:tabMode="auto"
  3731.         app:tabGravity="start"
  3732.         app:tabBackground="@color/pink"
  3733.         app:tabTextColor="@color/white"
  3734.         app:layout_constraintStart_toStartOf="parent"
  3735.         app:layout_constraintTop_toTopOf="parent"
  3736.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3737.         />
  3738.     <androidx.viewpager2.widget.ViewPager2
  3739.         android:id="@+id/myviepage2"
  3740.         android:layout_width="match_parent"
  3741.         android:layout_height="0dp"
  3742.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3743.         app:layout_constraintBottom_toBottomOf="parent"
  3744.         app:layout_constraintStart_toStartOf="parent"
  3745.         />
  3746. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  3747. <?xml version="1.0" encoding="utf-8"?>
  3748. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3749.     xmlns:tools="http://schemas.android.com/tools"
  3750.     android:layout_width="match_parent"
  3751.     android:layout_height="match_parent"
  3752.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3753.     tools:context=".tablayout.TabLayoutHomeFragment">
  3754.     <com.google.android.material.tabs.TabLayout
  3755.         android:id="@+id/mytablayout2"
  3756.         android:layout_width="match_parent"
  3757.         android:layout_height="wrap_content"
  3758.         app:tabMode="auto"
  3759.         app:tabGravity="start"
  3760.         app:tabBackground="@color/pink"
  3761.         app:tabTextColor="@color/white"
  3762.         app:layout_constraintStart_toStartOf="parent"
  3763.         app:layout_constraintTop_toTopOf="parent"
  3764.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3765.         />
  3766.     <androidx.viewpager2.widget.ViewPager2
  3767.         android:id="@+id/myviepage2"
  3768.         android:layout_width="match_parent"
  3769.         android:layout_height="0dp"
  3770.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3771.         app:layout_constraintBottom_toBottomOf="parent"
  3772.         app:layout_constraintStart_toStartOf="parent"
  3773.         />
  3774. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  3775. <?xml version="1.0" encoding="utf-8"?>
  3776. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3777.     xmlns:tools="http://schemas.android.com/tools"
  3778.     android:layout_width="match_parent"
  3779.     android:layout_height="match_parent"
  3780.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3781.     tools:context=".tablayout.TabLayoutHomeFragment">
  3782.     <com.google.android.material.tabs.TabLayout
  3783.         android:id="@+id/mytablayout2"
  3784.         android:layout_width="match_parent"
  3785.         android:layout_height="wrap_content"
  3786.         app:tabMode="auto"
  3787.         app:tabGravity="start"
  3788.         app:tabBackground="@color/pink"
  3789.         app:tabTextColor="@color/white"
  3790.         app:layout_constraintStart_toStartOf="parent"
  3791.         app:layout_constraintTop_toTopOf="parent"
  3792.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3793.         />
  3794.     <androidx.viewpager2.widget.ViewPager2
  3795.         android:id="@+id/myviepage2"
  3796.         android:layout_width="match_parent"
  3797.         android:layout_height="0dp"
  3798.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3799.         app:layout_constraintBottom_toBottomOf="parent"
  3800.         app:layout_constraintStart_toStartOf="parent"
  3801.         />
  3802. </androidx.constraintlayout.widget.ConstraintLayout>/>
  3803. </androidx.constraintlayout.widget.ConstraintLayout>    bottomFragment2,<?xml version="1.0" encoding="utf-8"?>
  3804. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3805.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3806.     xmlns:tools="http://schemas.android.com/tools"
  3807.     android:layout_width="match_parent"
  3808.     android:layout_height="match_parent"
  3809.     tools:context=".ViewPager2TabLayoutActivity">
  3810.    
  3811.     <androidx.fragment.app.FragmentContainerView
  3812. <?xml version="1.0" encoding="utf-8"?>
  3813. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3814.     xmlns:tools="http://schemas.android.com/tools"
  3815.     android:layout_width="match_parent"
  3816.     android:layout_height="match_parent"
  3817.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3818.     tools:context=".tablayout.TabLayoutHomeFragment">
  3819.     <com.google.android.material.tabs.TabLayout
  3820.         android:id="@+id/mytablayout2"
  3821.         android:layout_width="match_parent"
  3822.         android:layout_height="wrap_content"
  3823.         app:tabMode="auto"
  3824.         app:tabGravity="start"
  3825.         app:tabBackground="@color/pink"
  3826.         app:tabTextColor="@color/white"
  3827.         app:layout_constraintStart_toStartOf="parent"
  3828.         app:layout_constraintTop_toTopOf="parent"
  3829.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3830.         />
  3831.     <androidx.viewpager2.widget.ViewPager2
  3832.         android:id="@+id/myviepage2"
  3833.         android:layout_width="match_parent"
  3834.         android:layout_height="0dp"
  3835.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3836.         app:layout_constraintBottom_toBottomOf="parent"
  3837.         app:layout_constraintStart_toStartOf="parent"
  3838.         />
  3839. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  3840. <?xml version="1.0" encoding="utf-8"?>
  3841. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3842.     xmlns:tools="http://schemas.android.com/tools"
  3843.     android:layout_width="match_parent"
  3844.     android:layout_height="match_parent"
  3845.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3846.     tools:context=".tablayout.TabLayoutHomeFragment">
  3847.     <com.google.android.material.tabs.TabLayout
  3848.         android:id="@+id/mytablayout2"
  3849.         android:layout_width="match_parent"
  3850.         android:layout_height="wrap_content"
  3851.         app:tabMode="auto"
  3852.         app:tabGravity="start"
  3853.         app:tabBackground="@color/pink"
  3854.         app:tabTextColor="@color/white"
  3855.         app:layout_constraintStart_toStartOf="parent"
  3856.         app:layout_constraintTop_toTopOf="parent"
  3857.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3858.         />
  3859.     <androidx.viewpager2.widget.ViewPager2
  3860.         android:id="@+id/myviepage2"
  3861.         android:layout_width="match_parent"
  3862.         android:layout_height="0dp"
  3863.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3864.         app:layout_constraintBottom_toBottomOf="parent"
  3865.         app:layout_constraintStart_toStartOf="parent"
  3866.         />
  3867. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  3868. <?xml version="1.0" encoding="utf-8"?>
  3869. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3870.     xmlns:tools="http://schemas.android.com/tools"
  3871.     android:layout_width="match_parent"
  3872.     android:layout_height="match_parent"
  3873.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3874.     tools:context=".tablayout.TabLayoutHomeFragment">
  3875.     <com.google.android.material.tabs.TabLayout
  3876.         android:id="@+id/mytablayout2"
  3877.         android:layout_width="match_parent"
  3878.         android:layout_height="wrap_content"
  3879.         app:tabMode="auto"
  3880.         app:tabGravity="start"
  3881.         app:tabBackground="@color/pink"
  3882.         app:tabTextColor="@color/white"
  3883.         app:layout_constraintStart_toStartOf="parent"
  3884.         app:layout_constraintTop_toTopOf="parent"
  3885.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3886.         />
  3887.     <androidx.viewpager2.widget.ViewPager2
  3888.         android:id="@+id/myviepage2"
  3889.         android:layout_width="match_parent"
  3890.         android:layout_height="0dp"
  3891.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3892.         app:layout_constraintBottom_toBottomOf="parent"
  3893.         app:layout_constraintStart_toStartOf="parent"
  3894.         />
  3895. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  3896. <?xml version="1.0" encoding="utf-8"?>
  3897. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3898.     xmlns:tools="http://schemas.android.com/tools"
  3899.     android:layout_width="match_parent"
  3900.     android:layout_height="match_parent"
  3901.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3902.     tools:context=".tablayout.TabLayoutHomeFragment">
  3903.     <com.google.android.material.tabs.TabLayout
  3904.         android:id="@+id/mytablayout2"
  3905.         android:layout_width="match_parent"
  3906.         android:layout_height="wrap_content"
  3907.         app:tabMode="auto"
  3908.         app:tabGravity="start"
  3909.         app:tabBackground="@color/pink"
  3910.         app:tabTextColor="@color/white"
  3911.         app:layout_constraintStart_toStartOf="parent"
  3912.         app:layout_constraintTop_toTopOf="parent"
  3913.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3914.         />
  3915.     <androidx.viewpager2.widget.ViewPager2
  3916.         android:id="@+id/myviepage2"
  3917.         android:layout_width="match_parent"
  3918.         android:layout_height="0dp"
  3919.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3920.         app:layout_constraintBottom_toBottomOf="parent"
  3921.         app:layout_constraintStart_toStartOf="parent"
  3922.         />
  3923. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  3924. <?xml version="1.0" encoding="utf-8"?>
  3925. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3926.     xmlns:tools="http://schemas.android.com/tools"
  3927.     android:layout_width="match_parent"
  3928.     android:layout_height="match_parent"
  3929.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3930.     tools:context=".tablayout.TabLayoutHomeFragment">
  3931.     <com.google.android.material.tabs.TabLayout
  3932.         android:id="@+id/mytablayout2"
  3933.         android:layout_width="match_parent"
  3934.         android:layout_height="wrap_content"
  3935.         app:tabMode="auto"
  3936.         app:tabGravity="start"
  3937.         app:tabBackground="@color/pink"
  3938.         app:tabTextColor="@color/white"
  3939.         app:layout_constraintStart_toStartOf="parent"
  3940.         app:layout_constraintTop_toTopOf="parent"
  3941.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3942.         />
  3943.     <androidx.viewpager2.widget.ViewPager2
  3944.         android:id="@+id/myviepage2"
  3945.         android:layout_width="match_parent"
  3946.         android:layout_height="0dp"
  3947.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3948.         app:layout_constraintBottom_toBottomOf="parent"
  3949.         app:layout_constraintStart_toStartOf="parent"
  3950.         />
  3951. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  3952.     <com.google.android.material.bottomnavigation.BottomNavigationView
  3953. <?xml version="1.0" encoding="utf-8"?>
  3954. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3955.     xmlns:tools="http://schemas.android.com/tools"
  3956.     android:layout_width="match_parent"
  3957.     android:layout_height="match_parent"
  3958.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3959.     tools:context=".tablayout.TabLayoutHomeFragment">
  3960.     <com.google.android.material.tabs.TabLayout
  3961.         android:id="@+id/mytablayout2"
  3962.         android:layout_width="match_parent"
  3963.         android:layout_height="wrap_content"
  3964.         app:tabMode="auto"
  3965.         app:tabGravity="start"
  3966.         app:tabBackground="@color/pink"
  3967.         app:tabTextColor="@color/white"
  3968.         app:layout_constraintStart_toStartOf="parent"
  3969.         app:layout_constraintTop_toTopOf="parent"
  3970.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3971.         />
  3972.     <androidx.viewpager2.widget.ViewPager2
  3973.         android:id="@+id/myviepage2"
  3974.         android:layout_width="match_parent"
  3975.         android:layout_height="0dp"
  3976.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3977.         app:layout_constraintBottom_toBottomOf="parent"
  3978.         app:layout_constraintStart_toStartOf="parent"
  3979.         />
  3980. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  3981. <?xml version="1.0" encoding="utf-8"?>
  3982. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3983.     xmlns:tools="http://schemas.android.com/tools"
  3984.     android:layout_width="match_parent"
  3985.     android:layout_height="match_parent"
  3986.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3987.     tools:context=".tablayout.TabLayoutHomeFragment">
  3988.     <com.google.android.material.tabs.TabLayout
  3989.         android:id="@+id/mytablayout2"
  3990.         android:layout_width="match_parent"
  3991.         android:layout_height="wrap_content"
  3992.         app:tabMode="auto"
  3993.         app:tabGravity="start"
  3994.         app:tabBackground="@color/pink"
  3995.         app:tabTextColor="@color/white"
  3996.         app:layout_constraintStart_toStartOf="parent"
  3997.         app:layout_constraintTop_toTopOf="parent"
  3998.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3999.         />
  4000.     <androidx.viewpager2.widget.ViewPager2
  4001.         android:id="@+id/myviepage2"
  4002.         android:layout_width="match_parent"
  4003.         android:layout_height="0dp"
  4004.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4005.         app:layout_constraintBottom_toBottomOf="parent"
  4006.         app:layout_constraintStart_toStartOf="parent"
  4007.         />
  4008. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  4009. <?xml version="1.0" encoding="utf-8"?>
  4010. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4011.     xmlns:tools="http://schemas.android.com/tools"
  4012.     android:layout_width="match_parent"
  4013.     android:layout_height="match_parent"
  4014.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4015.     tools:context=".tablayout.TabLayoutHomeFragment">
  4016.     <com.google.android.material.tabs.TabLayout
  4017.         android:id="@+id/mytablayout2"
  4018.         android:layout_width="match_parent"
  4019.         android:layout_height="wrap_content"
  4020.         app:tabMode="auto"
  4021.         app:tabGravity="start"
  4022.         app:tabBackground="@color/pink"
  4023.         app:tabTextColor="@color/white"
  4024.         app:layout_constraintStart_toStartOf="parent"
  4025.         app:layout_constraintTop_toTopOf="parent"
  4026.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4027.         />
  4028.     <androidx.viewpager2.widget.ViewPager2
  4029.         android:id="@+id/myviepage2"
  4030.         android:layout_width="match_parent"
  4031.         android:layout_height="0dp"
  4032.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4033.         app:layout_constraintBottom_toBottomOf="parent"
  4034.         app:layout_constraintStart_toStartOf="parent"
  4035.         />
  4036. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  4037. <?xml version="1.0" encoding="utf-8"?>
  4038. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4039.     xmlns:tools="http://schemas.android.com/tools"
  4040.     android:layout_width="match_parent"
  4041.     android:layout_height="match_parent"
  4042.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4043.     tools:context=".tablayout.TabLayoutHomeFragment">
  4044.     <com.google.android.material.tabs.TabLayout
  4045.         android:id="@+id/mytablayout2"
  4046.         android:layout_width="match_parent"
  4047.         android:layout_height="wrap_content"
  4048.         app:tabMode="auto"
  4049.         app:tabGravity="start"
  4050.         app:tabBackground="@color/pink"
  4051.         app:tabTextColor="@color/white"
  4052.         app:layout_constraintStart_toStartOf="parent"
  4053.         app:layout_constraintTop_toTopOf="parent"
  4054.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4055.         />
  4056.     <androidx.viewpager2.widget.ViewPager2
  4057.         android:id="@+id/myviepage2"
  4058.         android:layout_width="match_parent"
  4059.         android:layout_height="0dp"
  4060.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4061.         app:layout_constraintBottom_toBottomOf="parent"
  4062.         app:layout_constraintStart_toStartOf="parent"
  4063.         />
  4064. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  4065. <?xml version="1.0" encoding="utf-8"?>
  4066. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4067.     xmlns:tools="http://schemas.android.com/tools"
  4068.     android:layout_width="match_parent"
  4069.     android:layout_height="match_parent"
  4070.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4071.     tools:context=".tablayout.TabLayoutHomeFragment">
  4072.     <com.google.android.material.tabs.TabLayout
  4073.         android:id="@+id/mytablayout2"
  4074.         android:layout_width="match_parent"
  4075.         android:layout_height="wrap_content"
  4076.         app:tabMode="auto"
  4077.         app:tabGravity="start"
  4078.         app:tabBackground="@color/pink"
  4079.         app:tabTextColor="@color/white"
  4080.         app:layout_constraintStart_toStartOf="parent"
  4081.         app:layout_constraintTop_toTopOf="parent"
  4082.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4083.         />
  4084.     <androidx.viewpager2.widget.ViewPager2
  4085.         android:id="@+id/myviepage2"
  4086.         android:layout_width="match_parent"
  4087.         android:layout_height="0dp"
  4088.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4089.         app:layout_constraintBottom_toBottomOf="parent"
  4090.         app:layout_constraintStart_toStartOf="parent"
  4091.         />
  4092. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  4093. <?xml version="1.0" encoding="utf-8"?>
  4094. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4095.     xmlns:tools="http://schemas.android.com/tools"
  4096.     android:layout_width="match_parent"
  4097.     android:layout_height="match_parent"
  4098.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4099.     tools:context=".tablayout.TabLayoutHomeFragment">
  4100.     <com.google.android.material.tabs.TabLayout
  4101.         android:id="@+id/mytablayout2"
  4102.         android:layout_width="match_parent"
  4103.         android:layout_height="wrap_content"
  4104.         app:tabMode="auto"
  4105.         app:tabGravity="start"
  4106.         app:tabBackground="@color/pink"
  4107.         app:tabTextColor="@color/white"
  4108.         app:layout_constraintStart_toStartOf="parent"
  4109.         app:layout_constraintTop_toTopOf="parent"
  4110.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4111.         />
  4112.     <androidx.viewpager2.widget.ViewPager2
  4113.         android:id="@+id/myviepage2"
  4114.         android:layout_width="match_parent"
  4115.         android:layout_height="0dp"
  4116.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4117.         app:layout_constraintBottom_toBottomOf="parent"
  4118.         app:layout_constraintStart_toStartOf="parent"
  4119.         />
  4120. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  4121. <?xml version="1.0" encoding="utf-8"?>
  4122. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4123.     xmlns:tools="http://schemas.android.com/tools"
  4124.     android:layout_width="match_parent"
  4125.     android:layout_height="match_parent"
  4126.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4127.     tools:context=".tablayout.TabLayoutHomeFragment">
  4128.     <com.google.android.material.tabs.TabLayout
  4129.         android:id="@+id/mytablayout2"
  4130.         android:layout_width="match_parent"
  4131.         android:layout_height="wrap_content"
  4132.         app:tabMode="auto"
  4133.         app:tabGravity="start"
  4134.         app:tabBackground="@color/pink"
  4135.         app:tabTextColor="@color/white"
  4136.         app:layout_constraintStart_toStartOf="parent"
  4137.         app:layout_constraintTop_toTopOf="parent"
  4138.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4139.         />
  4140.     <androidx.viewpager2.widget.ViewPager2
  4141.         android:id="@+id/myviepage2"
  4142.         android:layout_width="match_parent"
  4143.         android:layout_height="0dp"
  4144.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4145.         app:layout_constraintBottom_toBottomOf="parent"
  4146.         app:layout_constraintStart_toStartOf="parent"
  4147.         />
  4148. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  4149. <?xml version="1.0" encoding="utf-8"?>
  4150. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4151.     xmlns:tools="http://schemas.android.com/tools"
  4152.     android:layout_width="match_parent"
  4153.     android:layout_height="match_parent"
  4154.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4155.     tools:context=".tablayout.TabLayoutHomeFragment">
  4156.     <com.google.android.material.tabs.TabLayout
  4157.         android:id="@+id/mytablayout2"
  4158.         android:layout_width="match_parent"
  4159.         android:layout_height="wrap_content"
  4160.         app:tabMode="auto"
  4161.         app:tabGravity="start"
  4162.         app:tabBackground="@color/pink"
  4163.         app:tabTextColor="@color/white"
  4164.         app:layout_constraintStart_toStartOf="parent"
  4165.         app:layout_constraintTop_toTopOf="parent"
  4166.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4167.         />
  4168.     <androidx.viewpager2.widget.ViewPager2
  4169.         android:id="@+id/myviepage2"
  4170.         android:layout_width="match_parent"
  4171.         android:layout_height="0dp"
  4172.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4173.         app:layout_constraintBottom_toBottomOf="parent"
  4174.         app:layout_constraintStart_toStartOf="parent"
  4175.         />
  4176. </androidx.constraintlayout.widget.ConstraintLayout>/>
  4177. </androidx.constraintlayout.widget.ConstraintLayout>    bottomFragment3,<?xml version="1.0" encoding="utf-8"?>
  4178. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4179.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4180.     xmlns:tools="http://schemas.android.com/tools"
  4181.     android:layout_width="match_parent"
  4182.     android:layout_height="match_parent"
  4183.     tools:context=".ViewPager2TabLayoutActivity">
  4184.    
  4185.     <androidx.fragment.app.FragmentContainerView
  4186. <?xml version="1.0" encoding="utf-8"?>
  4187. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4188.     xmlns:tools="http://schemas.android.com/tools"
  4189.     android:layout_width="match_parent"
  4190.     android:layout_height="match_parent"
  4191.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4192.     tools:context=".tablayout.TabLayoutHomeFragment">
  4193.     <com.google.android.material.tabs.TabLayout
  4194.         android:id="@+id/mytablayout2"
  4195.         android:layout_width="match_parent"
  4196.         android:layout_height="wrap_content"
  4197.         app:tabMode="auto"
  4198.         app:tabGravity="start"
  4199.         app:tabBackground="@color/pink"
  4200.         app:tabTextColor="@color/white"
  4201.         app:layout_constraintStart_toStartOf="parent"
  4202.         app:layout_constraintTop_toTopOf="parent"
  4203.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4204.         />
  4205.     <androidx.viewpager2.widget.ViewPager2
  4206.         android:id="@+id/myviepage2"
  4207.         android:layout_width="match_parent"
  4208.         android:layout_height="0dp"
  4209.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4210.         app:layout_constraintBottom_toBottomOf="parent"
  4211.         app:layout_constraintStart_toStartOf="parent"
  4212.         />
  4213. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  4214. <?xml version="1.0" encoding="utf-8"?>
  4215. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4216.     xmlns:tools="http://schemas.android.com/tools"
  4217.     android:layout_width="match_parent"
  4218.     android:layout_height="match_parent"
  4219.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4220.     tools:context=".tablayout.TabLayoutHomeFragment">
  4221.     <com.google.android.material.tabs.TabLayout
  4222.         android:id="@+id/mytablayout2"
  4223.         android:layout_width="match_parent"
  4224.         android:layout_height="wrap_content"
  4225.         app:tabMode="auto"
  4226.         app:tabGravity="start"
  4227.         app:tabBackground="@color/pink"
  4228.         app:tabTextColor="@color/white"
  4229.         app:layout_constraintStart_toStartOf="parent"
  4230.         app:layout_constraintTop_toTopOf="parent"
  4231.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4232.         />
  4233.     <androidx.viewpager2.widget.ViewPager2
  4234.         android:id="@+id/myviepage2"
  4235.         android:layout_width="match_parent"
  4236.         android:layout_height="0dp"
  4237.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4238.         app:layout_constraintBottom_toBottomOf="parent"
  4239.         app:layout_constraintStart_toStartOf="parent"
  4240.         />
  4241. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  4242. <?xml version="1.0" encoding="utf-8"?>
  4243. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4244.     xmlns:tools="http://schemas.android.com/tools"
  4245.     android:layout_width="match_parent"
  4246.     android:layout_height="match_parent"
  4247.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4248.     tools:context=".tablayout.TabLayoutHomeFragment">
  4249.     <com.google.android.material.tabs.TabLayout
  4250.         android:id="@+id/mytablayout2"
  4251.         android:layout_width="match_parent"
  4252.         android:layout_height="wrap_content"
  4253.         app:tabMode="auto"
  4254.         app:tabGravity="start"
  4255.         app:tabBackground="@color/pink"
  4256.         app:tabTextColor="@color/white"
  4257.         app:layout_constraintStart_toStartOf="parent"
  4258.         app:layout_constraintTop_toTopOf="parent"
  4259.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4260.         />
  4261.     <androidx.viewpager2.widget.ViewPager2
  4262.         android:id="@+id/myviepage2"
  4263.         android:layout_width="match_parent"
  4264.         android:layout_height="0dp"
  4265.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4266.         app:layout_constraintBottom_toBottomOf="parent"
  4267.         app:layout_constraintStart_toStartOf="parent"
  4268.         />
  4269. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  4270. <?xml version="1.0" encoding="utf-8"?>
  4271. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4272.     xmlns:tools="http://schemas.android.com/tools"
  4273.     android:layout_width="match_parent"
  4274.     android:layout_height="match_parent"
  4275.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4276.     tools:context=".tablayout.TabLayoutHomeFragment">
  4277.     <com.google.android.material.tabs.TabLayout
  4278.         android:id="@+id/mytablayout2"
  4279.         android:layout_width="match_parent"
  4280.         android:layout_height="wrap_content"
  4281.         app:tabMode="auto"
  4282.         app:tabGravity="start"
  4283.         app:tabBackground="@color/pink"
  4284.         app:tabTextColor="@color/white"
  4285.         app:layout_constraintStart_toStartOf="parent"
  4286.         app:layout_constraintTop_toTopOf="parent"
  4287.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4288.         />
  4289.     <androidx.viewpager2.widget.ViewPager2
  4290.         android:id="@+id/myviepage2"
  4291.         android:layout_width="match_parent"
  4292.         android:layout_height="0dp"
  4293.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4294.         app:layout_constraintBottom_toBottomOf="parent"
  4295.         app:layout_constraintStart_toStartOf="parent"
  4296.         />
  4297. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  4298. <?xml version="1.0" encoding="utf-8"?>
  4299. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4300.     xmlns:tools="http://schemas.android.com/tools"
  4301.     android:layout_width="match_parent"
  4302.     android:layout_height="match_parent"
  4303.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4304.     tools:context=".tablayout.TabLayoutHomeFragment">
  4305.     <com.google.android.material.tabs.TabLayout
  4306.         android:id="@+id/mytablayout2"
  4307.         android:layout_width="match_parent"
  4308.         android:layout_height="wrap_content"
  4309.         app:tabMode="auto"
  4310.         app:tabGravity="start"
  4311.         app:tabBackground="@color/pink"
  4312.         app:tabTextColor="@color/white"
  4313.         app:layout_constraintStart_toStartOf="parent"
  4314.         app:layout_constraintTop_toTopOf="parent"
  4315.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4316.         />
  4317.     <androidx.viewpager2.widget.ViewPager2
  4318.         android:id="@+id/myviepage2"
  4319.         android:layout_width="match_parent"
  4320.         android:layout_height="0dp"
  4321.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4322.         app:layout_constraintBottom_toBottomOf="parent"
  4323.         app:layout_constraintStart_toStartOf="parent"
  4324.         />
  4325. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  4326.     <com.google.android.material.bottomnavigation.BottomNavigationView
  4327. <?xml version="1.0" encoding="utf-8"?>
  4328. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4329.     xmlns:tools="http://schemas.android.com/tools"
  4330.     android:layout_width="match_parent"
  4331.     android:layout_height="match_parent"
  4332.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4333.     tools:context=".tablayout.TabLayoutHomeFragment">
  4334.     <com.google.android.material.tabs.TabLayout
  4335.         android:id="@+id/mytablayout2"
  4336.         android:layout_width="match_parent"
  4337.         android:layout_height="wrap_content"
  4338.         app:tabMode="auto"
  4339.         app:tabGravity="start"
  4340.         app:tabBackground="@color/pink"
  4341.         app:tabTextColor="@color/white"
  4342.         app:layout_constraintStart_toStartOf="parent"
  4343.         app:layout_constraintTop_toTopOf="parent"
  4344.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4345.         />
  4346.     <androidx.viewpager2.widget.ViewPager2
  4347.         android:id="@+id/myviepage2"
  4348.         android:layout_width="match_parent"
  4349.         android:layout_height="0dp"
  4350.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4351.         app:layout_constraintBottom_toBottomOf="parent"
  4352.         app:layout_constraintStart_toStartOf="parent"
  4353.         />
  4354. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  4355. <?xml version="1.0" encoding="utf-8"?>
  4356. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4357.     xmlns:tools="http://schemas.android.com/tools"
  4358.     android:layout_width="match_parent"
  4359.     android:layout_height="match_parent"
  4360.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4361.     tools:context=".tablayout.TabLayoutHomeFragment">
  4362.     <com.google.android.material.tabs.TabLayout
  4363.         android:id="@+id/mytablayout2"
  4364.         android:layout_width="match_parent"
  4365.         android:layout_height="wrap_content"
  4366.         app:tabMode="auto"
  4367.         app:tabGravity="start"
  4368.         app:tabBackground="@color/pink"
  4369.         app:tabTextColor="@color/white"
  4370.         app:layout_constraintStart_toStartOf="parent"
  4371.         app:layout_constraintTop_toTopOf="parent"
  4372.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4373.         />
  4374.     <androidx.viewpager2.widget.ViewPager2
  4375.         android:id="@+id/myviepage2"
  4376.         android:layout_width="match_parent"
  4377.         android:layout_height="0dp"
  4378.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4379.         app:layout_constraintBottom_toBottomOf="parent"
  4380.         app:layout_constraintStart_toStartOf="parent"
  4381.         />
  4382. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  4383. <?xml version="1.0" encoding="utf-8"?>
  4384. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4385.     xmlns:tools="http://schemas.android.com/tools"
  4386.     android:layout_width="match_parent"
  4387.     android:layout_height="match_parent"
  4388.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4389.     tools:context=".tablayout.TabLayoutHomeFragment">
  4390.     <com.google.android.material.tabs.TabLayout
  4391.         android:id="@+id/mytablayout2"
  4392.         android:layout_width="match_parent"
  4393.         android:layout_height="wrap_content"
  4394.         app:tabMode="auto"
  4395.         app:tabGravity="start"
  4396.         app:tabBackground="@color/pink"
  4397.         app:tabTextColor="@color/white"
  4398.         app:layout_constraintStart_toStartOf="parent"
  4399.         app:layout_constraintTop_toTopOf="parent"
  4400.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4401.         />
  4402.     <androidx.viewpager2.widget.ViewPager2
  4403.         android:id="@+id/myviepage2"
  4404.         android:layout_width="match_parent"
  4405.         android:layout_height="0dp"
  4406.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4407.         app:layout_constraintBottom_toBottomOf="parent"
  4408.         app:layout_constraintStart_toStartOf="parent"
  4409.         />
  4410. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  4411. <?xml version="1.0" encoding="utf-8"?>
  4412. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4413.     xmlns:tools="http://schemas.android.com/tools"
  4414.     android:layout_width="match_parent"
  4415.     android:layout_height="match_parent"
  4416.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4417.     tools:context=".tablayout.TabLayoutHomeFragment">
  4418.     <com.google.android.material.tabs.TabLayout
  4419.         android:id="@+id/mytablayout2"
  4420.         android:layout_width="match_parent"
  4421.         android:layout_height="wrap_content"
  4422.         app:tabMode="auto"
  4423.         app:tabGravity="start"
  4424.         app:tabBackground="@color/pink"
  4425.         app:tabTextColor="@color/white"
  4426.         app:layout_constraintStart_toStartOf="parent"
  4427.         app:layout_constraintTop_toTopOf="parent"
  4428.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4429.         />
  4430.     <androidx.viewpager2.widget.ViewPager2
  4431.         android:id="@+id/myviepage2"
  4432.         android:layout_width="match_parent"
  4433.         android:layout_height="0dp"
  4434.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4435.         app:layout_constraintBottom_toBottomOf="parent"
  4436.         app:layout_constraintStart_toStartOf="parent"
  4437.         />
  4438. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  4439. <?xml version="1.0" encoding="utf-8"?>
  4440. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4441.     xmlns:tools="http://schemas.android.com/tools"
  4442.     android:layout_width="match_parent"
  4443.     android:layout_height="match_parent"
  4444.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4445.     tools:context=".tablayout.TabLayoutHomeFragment">
  4446.     <com.google.android.material.tabs.TabLayout
  4447.         android:id="@+id/mytablayout2"
  4448.         android:layout_width="match_parent"
  4449.         android:layout_height="wrap_content"
  4450.         app:tabMode="auto"
  4451.         app:tabGravity="start"
  4452.         app:tabBackground="@color/pink"
  4453.         app:tabTextColor="@color/white"
  4454.         app:layout_constraintStart_toStartOf="parent"
  4455.         app:layout_constraintTop_toTopOf="parent"
  4456.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4457.         />
  4458.     <androidx.viewpager2.widget.ViewPager2
  4459.         android:id="@+id/myviepage2"
  4460.         android:layout_width="match_parent"
  4461.         android:layout_height="0dp"
  4462.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4463.         app:layout_constraintBottom_toBottomOf="parent"
  4464.         app:layout_constraintStart_toStartOf="parent"
  4465.         />
  4466. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  4467. <?xml version="1.0" encoding="utf-8"?>
  4468. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4469.     xmlns:tools="http://schemas.android.com/tools"
  4470.     android:layout_width="match_parent"
  4471.     android:layout_height="match_parent"
  4472.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4473.     tools:context=".tablayout.TabLayoutHomeFragment">
  4474.     <com.google.android.material.tabs.TabLayout
  4475.         android:id="@+id/mytablayout2"
  4476.         android:layout_width="match_parent"
  4477.         android:layout_height="wrap_content"
  4478.         app:tabMode="auto"
  4479.         app:tabGravity="start"
  4480.         app:tabBackground="@color/pink"
  4481.         app:tabTextColor="@color/white"
  4482.         app:layout_constraintStart_toStartOf="parent"
  4483.         app:layout_constraintTop_toTopOf="parent"
  4484.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4485.         />
  4486.     <androidx.viewpager2.widget.ViewPager2
  4487.         android:id="@+id/myviepage2"
  4488.         android:layout_width="match_parent"
  4489.         android:layout_height="0dp"
  4490.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4491.         app:layout_constraintBottom_toBottomOf="parent"
  4492.         app:layout_constraintStart_toStartOf="parent"
  4493.         />
  4494. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  4495. <?xml version="1.0" encoding="utf-8"?>
  4496. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4497.     xmlns:tools="http://schemas.android.com/tools"
  4498.     android:layout_width="match_parent"
  4499.     android:layout_height="match_parent"
  4500.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4501.     tools:context=".tablayout.TabLayoutHomeFragment">
  4502.     <com.google.android.material.tabs.TabLayout
  4503.         android:id="@+id/mytablayout2"
  4504.         android:layout_width="match_parent"
  4505.         android:layout_height="wrap_content"
  4506.         app:tabMode="auto"
  4507.         app:tabGravity="start"
  4508.         app:tabBackground="@color/pink"
  4509.         app:tabTextColor="@color/white"
  4510.         app:layout_constraintStart_toStartOf="parent"
  4511.         app:layout_constraintTop_toTopOf="parent"
  4512.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4513.         />
  4514.     <androidx.viewpager2.widget.ViewPager2
  4515.         android:id="@+id/myviepage2"
  4516.         android:layout_width="match_parent"
  4517.         android:layout_height="0dp"
  4518.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4519.         app:layout_constraintBottom_toBottomOf="parent"
  4520.         app:layout_constraintStart_toStartOf="parent"
  4521.         />
  4522. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  4523. <?xml version="1.0" encoding="utf-8"?>
  4524. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4525.     xmlns:tools="http://schemas.android.com/tools"
  4526.     android:layout_width="match_parent"
  4527.     android:layout_height="match_parent"
  4528.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4529.     tools:context=".tablayout.TabLayoutHomeFragment">
  4530.     <com.google.android.material.tabs.TabLayout
  4531.         android:id="@+id/mytablayout2"
  4532.         android:layout_width="match_parent"
  4533.         android:layout_height="wrap_content"
  4534.         app:tabMode="auto"
  4535.         app:tabGravity="start"
  4536.         app:tabBackground="@color/pink"
  4537.         app:tabTextColor="@color/white"
  4538.         app:layout_constraintStart_toStartOf="parent"
  4539.         app:layout_constraintTop_toTopOf="parent"
  4540.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4541.         />
  4542.     <androidx.viewpager2.widget.ViewPager2
  4543.         android:id="@+id/myviepage2"
  4544.         android:layout_width="match_parent"
  4545.         android:layout_height="0dp"
  4546.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4547.         app:layout_constraintBottom_toBottomOf="parent"
  4548.         app:layout_constraintStart_toStartOf="parent"
  4549.         />
  4550. </androidx.constraintlayout.widget.ConstraintLayout>/>
  4551. </androidx.constraintlayout.widget.ConstraintLayout>    bottomFragment4,<?xml version="1.0" encoding="utf-8"?>
  4552. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4553.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4554.     xmlns:tools="http://schemas.android.com/tools"
  4555.     android:layout_width="match_parent"
  4556.     android:layout_height="match_parent"
  4557.     tools:context=".ViewPager2TabLayoutActivity">
  4558.    
  4559.     <androidx.fragment.app.FragmentContainerView
  4560. <?xml version="1.0" encoding="utf-8"?>
  4561. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4562.     xmlns:tools="http://schemas.android.com/tools"
  4563.     android:layout_width="match_parent"
  4564.     android:layout_height="match_parent"
  4565.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4566.     tools:context=".tablayout.TabLayoutHomeFragment">
  4567.     <com.google.android.material.tabs.TabLayout
  4568.         android:id="@+id/mytablayout2"
  4569.         android:layout_width="match_parent"
  4570.         android:layout_height="wrap_content"
  4571.         app:tabMode="auto"
  4572.         app:tabGravity="start"
  4573.         app:tabBackground="@color/pink"
  4574.         app:tabTextColor="@color/white"
  4575.         app:layout_constraintStart_toStartOf="parent"
  4576.         app:layout_constraintTop_toTopOf="parent"
  4577.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4578.         />
  4579.     <androidx.viewpager2.widget.ViewPager2
  4580.         android:id="@+id/myviepage2"
  4581.         android:layout_width="match_parent"
  4582.         android:layout_height="0dp"
  4583.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4584.         app:layout_constraintBottom_toBottomOf="parent"
  4585.         app:layout_constraintStart_toStartOf="parent"
  4586.         />
  4587. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  4588. <?xml version="1.0" encoding="utf-8"?>
  4589. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4590.     xmlns:tools="http://schemas.android.com/tools"
  4591.     android:layout_width="match_parent"
  4592.     android:layout_height="match_parent"
  4593.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4594.     tools:context=".tablayout.TabLayoutHomeFragment">
  4595.     <com.google.android.material.tabs.TabLayout
  4596.         android:id="@+id/mytablayout2"
  4597.         android:layout_width="match_parent"
  4598.         android:layout_height="wrap_content"
  4599.         app:tabMode="auto"
  4600.         app:tabGravity="start"
  4601.         app:tabBackground="@color/pink"
  4602.         app:tabTextColor="@color/white"
  4603.         app:layout_constraintStart_toStartOf="parent"
  4604.         app:layout_constraintTop_toTopOf="parent"
  4605.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4606.         />
  4607.     <androidx.viewpager2.widget.ViewPager2
  4608.         android:id="@+id/myviepage2"
  4609.         android:layout_width="match_parent"
  4610.         android:layout_height="0dp"
  4611.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4612.         app:layout_constraintBottom_toBottomOf="parent"
  4613.         app:layout_constraintStart_toStartOf="parent"
  4614.         />
  4615. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  4616. <?xml version="1.0" encoding="utf-8"?>
  4617. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4618.     xmlns:tools="http://schemas.android.com/tools"
  4619.     android:layout_width="match_parent"
  4620.     android:layout_height="match_parent"
  4621.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4622.     tools:context=".tablayout.TabLayoutHomeFragment">
  4623.     <com.google.android.material.tabs.TabLayout
  4624.         android:id="@+id/mytablayout2"
  4625.         android:layout_width="match_parent"
  4626.         android:layout_height="wrap_content"
  4627.         app:tabMode="auto"
  4628.         app:tabGravity="start"
  4629.         app:tabBackground="@color/pink"
  4630.         app:tabTextColor="@color/white"
  4631.         app:layout_constraintStart_toStartOf="parent"
  4632.         app:layout_constraintTop_toTopOf="parent"
  4633.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4634.         />
  4635.     <androidx.viewpager2.widget.ViewPager2
  4636.         android:id="@+id/myviepage2"
  4637.         android:layout_width="match_parent"
  4638.         android:layout_height="0dp"
  4639.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4640.         app:layout_constraintBottom_toBottomOf="parent"
  4641.         app:layout_constraintStart_toStartOf="parent"
  4642.         />
  4643. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  4644. <?xml version="1.0" encoding="utf-8"?>
  4645. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4646.     xmlns:tools="http://schemas.android.com/tools"
  4647.     android:layout_width="match_parent"
  4648.     android:layout_height="match_parent"
  4649.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4650.     tools:context=".tablayout.TabLayoutHomeFragment">
  4651.     <com.google.android.material.tabs.TabLayout
  4652.         android:id="@+id/mytablayout2"
  4653.         android:layout_width="match_parent"
  4654.         android:layout_height="wrap_content"
  4655.         app:tabMode="auto"
  4656.         app:tabGravity="start"
  4657.         app:tabBackground="@color/pink"
  4658.         app:tabTextColor="@color/white"
  4659.         app:layout_constraintStart_toStartOf="parent"
  4660.         app:layout_constraintTop_toTopOf="parent"
  4661.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4662.         />
  4663.     <androidx.viewpager2.widget.ViewPager2
  4664.         android:id="@+id/myviepage2"
  4665.         android:layout_width="match_parent"
  4666.         android:layout_height="0dp"
  4667.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4668.         app:layout_constraintBottom_toBottomOf="parent"
  4669.         app:layout_constraintStart_toStartOf="parent"
  4670.         />
  4671. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  4672. <?xml version="1.0" encoding="utf-8"?>
  4673. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4674.     xmlns:tools="http://schemas.android.com/tools"
  4675.     android:layout_width="match_parent"
  4676.     android:layout_height="match_parent"
  4677.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4678.     tools:context=".tablayout.TabLayoutHomeFragment">
  4679.     <com.google.android.material.tabs.TabLayout
  4680.         android:id="@+id/mytablayout2"
  4681.         android:layout_width="match_parent"
  4682.         android:layout_height="wrap_content"
  4683.         app:tabMode="auto"
  4684.         app:tabGravity="start"
  4685.         app:tabBackground="@color/pink"
  4686.         app:tabTextColor="@color/white"
  4687.         app:layout_constraintStart_toStartOf="parent"
  4688.         app:layout_constraintTop_toTopOf="parent"
  4689.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4690.         />
  4691.     <androidx.viewpager2.widget.ViewPager2
  4692.         android:id="@+id/myviepage2"
  4693.         android:layout_width="match_parent"
  4694.         android:layout_height="0dp"
  4695.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4696.         app:layout_constraintBottom_toBottomOf="parent"
  4697.         app:layout_constraintStart_toStartOf="parent"
  4698.         />
  4699. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  4700.     <com.google.android.material.bottomnavigation.BottomNavigationView
  4701. <?xml version="1.0" encoding="utf-8"?>
  4702. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4703.     xmlns:tools="http://schemas.android.com/tools"
  4704.     android:layout_width="match_parent"
  4705.     android:layout_height="match_parent"
  4706.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4707.     tools:context=".tablayout.TabLayoutHomeFragment">
  4708.     <com.google.android.material.tabs.TabLayout
  4709.         android:id="@+id/mytablayout2"
  4710.         android:layout_width="match_parent"
  4711.         android:layout_height="wrap_content"
  4712.         app:tabMode="auto"
  4713.         app:tabGravity="start"
  4714.         app:tabBackground="@color/pink"
  4715.         app:tabTextColor="@color/white"
  4716.         app:layout_constraintStart_toStartOf="parent"
  4717.         app:layout_constraintTop_toTopOf="parent"
  4718.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4719.         />
  4720.     <androidx.viewpager2.widget.ViewPager2
  4721.         android:id="@+id/myviepage2"
  4722.         android:layout_width="match_parent"
  4723.         android:layout_height="0dp"
  4724.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4725.         app:layout_constraintBottom_toBottomOf="parent"
  4726.         app:layout_constraintStart_toStartOf="parent"
  4727.         />
  4728. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  4729. <?xml version="1.0" encoding="utf-8"?>
  4730. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4731.     xmlns:tools="http://schemas.android.com/tools"
  4732.     android:layout_width="match_parent"
  4733.     android:layout_height="match_parent"
  4734.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4735.     tools:context=".tablayout.TabLayoutHomeFragment">
  4736.     <com.google.android.material.tabs.TabLayout
  4737.         android:id="@+id/mytablayout2"
  4738.         android:layout_width="match_parent"
  4739.         android:layout_height="wrap_content"
  4740.         app:tabMode="auto"
  4741.         app:tabGravity="start"
  4742.         app:tabBackground="@color/pink"
  4743.         app:tabTextColor="@color/white"
  4744.         app:layout_constraintStart_toStartOf="parent"
  4745.         app:layout_constraintTop_toTopOf="parent"
  4746.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4747.         />
  4748.     <androidx.viewpager2.widget.ViewPager2
  4749.         android:id="@+id/myviepage2"
  4750.         android:layout_width="match_parent"
  4751.         android:layout_height="0dp"
  4752.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4753.         app:layout_constraintBottom_toBottomOf="parent"
  4754.         app:layout_constraintStart_toStartOf="parent"
  4755.         />
  4756. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  4757. <?xml version="1.0" encoding="utf-8"?>
  4758. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4759.     xmlns:tools="http://schemas.android.com/tools"
  4760.     android:layout_width="match_parent"
  4761.     android:layout_height="match_parent"
  4762.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4763.     tools:context=".tablayout.TabLayoutHomeFragment">
  4764.     <com.google.android.material.tabs.TabLayout
  4765.         android:id="@+id/mytablayout2"
  4766.         android:layout_width="match_parent"
  4767.         android:layout_height="wrap_content"
  4768.         app:tabMode="auto"
  4769.         app:tabGravity="start"
  4770.         app:tabBackground="@color/pink"
  4771.         app:tabTextColor="@color/white"
  4772.         app:layout_constraintStart_toStartOf="parent"
  4773.         app:layout_constraintTop_toTopOf="parent"
  4774.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4775.         />
  4776.     <androidx.viewpager2.widget.ViewPager2
  4777.         android:id="@+id/myviepage2"
  4778.         android:layout_width="match_parent"
  4779.         android:layout_height="0dp"
  4780.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4781.         app:layout_constraintBottom_toBottomOf="parent"
  4782.         app:layout_constraintStart_toStartOf="parent"
  4783.         />
  4784. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  4785. <?xml version="1.0" encoding="utf-8"?>
  4786. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4787.     xmlns:tools="http://schemas.android.com/tools"
  4788.     android:layout_width="match_parent"
  4789.     android:layout_height="match_parent"
  4790.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4791.     tools:context=".tablayout.TabLayoutHomeFragment">
  4792.     <com.google.android.material.tabs.TabLayout
  4793.         android:id="@+id/mytablayout2"
  4794.         android:layout_width="match_parent"
  4795.         android:layout_height="wrap_content"
  4796.         app:tabMode="auto"
  4797.         app:tabGravity="start"
  4798.         app:tabBackground="@color/pink"
  4799.         app:tabTextColor="@color/white"
  4800.         app:layout_constraintStart_toStartOf="parent"
  4801.         app:layout_constraintTop_toTopOf="parent"
  4802.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4803.         />
  4804.     <androidx.viewpager2.widget.ViewPager2
  4805.         android:id="@+id/myviepage2"
  4806.         android:layout_width="match_parent"
  4807.         android:layout_height="0dp"
  4808.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4809.         app:layout_constraintBottom_toBottomOf="parent"
  4810.         app:layout_constraintStart_toStartOf="parent"
  4811.         />
  4812. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  4813. <?xml version="1.0" encoding="utf-8"?>
  4814. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4815.     xmlns:tools="http://schemas.android.com/tools"
  4816.     android:layout_width="match_parent"
  4817.     android:layout_height="match_parent"
  4818.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4819.     tools:context=".tablayout.TabLayoutHomeFragment">
  4820.     <com.google.android.material.tabs.TabLayout
  4821.         android:id="@+id/mytablayout2"
  4822.         android:layout_width="match_parent"
  4823.         android:layout_height="wrap_content"
  4824.         app:tabMode="auto"
  4825.         app:tabGravity="start"
  4826.         app:tabBackground="@color/pink"
  4827.         app:tabTextColor="@color/white"
  4828.         app:layout_constraintStart_toStartOf="parent"
  4829.         app:layout_constraintTop_toTopOf="parent"
  4830.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4831.         />
  4832.     <androidx.viewpager2.widget.ViewPager2
  4833.         android:id="@+id/myviepage2"
  4834.         android:layout_width="match_parent"
  4835.         android:layout_height="0dp"
  4836.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4837.         app:layout_constraintBottom_toBottomOf="parent"
  4838.         app:layout_constraintStart_toStartOf="parent"
  4839.         />
  4840. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  4841. <?xml version="1.0" encoding="utf-8"?>
  4842. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4843.     xmlns:tools="http://schemas.android.com/tools"
  4844.     android:layout_width="match_parent"
  4845.     android:layout_height="match_parent"
  4846.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4847.     tools:context=".tablayout.TabLayoutHomeFragment">
  4848.     <com.google.android.material.tabs.TabLayout
  4849.         android:id="@+id/mytablayout2"
  4850.         android:layout_width="match_parent"
  4851.         android:layout_height="wrap_content"
  4852.         app:tabMode="auto"
  4853.         app:tabGravity="start"
  4854.         app:tabBackground="@color/pink"
  4855.         app:tabTextColor="@color/white"
  4856.         app:layout_constraintStart_toStartOf="parent"
  4857.         app:layout_constraintTop_toTopOf="parent"
  4858.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4859.         />
  4860.     <androidx.viewpager2.widget.ViewPager2
  4861.         android:id="@+id/myviepage2"
  4862.         android:layout_width="match_parent"
  4863.         android:layout_height="0dp"
  4864.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4865.         app:layout_constraintBottom_toBottomOf="parent"
  4866.         app:layout_constraintStart_toStartOf="parent"
  4867.         />
  4868. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  4869. <?xml version="1.0" encoding="utf-8"?>
  4870. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4871.     xmlns:tools="http://schemas.android.com/tools"
  4872.     android:layout_width="match_parent"
  4873.     android:layout_height="match_parent"
  4874.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4875.     tools:context=".tablayout.TabLayoutHomeFragment">
  4876.     <com.google.android.material.tabs.TabLayout
  4877.         android:id="@+id/mytablayout2"
  4878.         android:layout_width="match_parent"
  4879.         android:layout_height="wrap_content"
  4880.         app:tabMode="auto"
  4881.         app:tabGravity="start"
  4882.         app:tabBackground="@color/pink"
  4883.         app:tabTextColor="@color/white"
  4884.         app:layout_constraintStart_toStartOf="parent"
  4885.         app:layout_constraintTop_toTopOf="parent"
  4886.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4887.         />
  4888.     <androidx.viewpager2.widget.ViewPager2
  4889.         android:id="@+id/myviepage2"
  4890.         android:layout_width="match_parent"
  4891.         android:layout_height="0dp"
  4892.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4893.         app:layout_constraintBottom_toBottomOf="parent"
  4894.         app:layout_constraintStart_toStartOf="parent"
  4895.         />
  4896. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  4897. <?xml version="1.0" encoding="utf-8"?>
  4898. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4899.     xmlns:tools="http://schemas.android.com/tools"
  4900.     android:layout_width="match_parent"
  4901.     android:layout_height="match_parent"
  4902.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4903.     tools:context=".tablayout.TabLayoutHomeFragment">
  4904.     <com.google.android.material.tabs.TabLayout
  4905.         android:id="@+id/mytablayout2"
  4906.         android:layout_width="match_parent"
  4907.         android:layout_height="wrap_content"
  4908.         app:tabMode="auto"
  4909.         app:tabGravity="start"
  4910.         app:tabBackground="@color/pink"
  4911.         app:tabTextColor="@color/white"
  4912.         app:layout_constraintStart_toStartOf="parent"
  4913.         app:layout_constraintTop_toTopOf="parent"
  4914.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4915.         />
  4916.     <androidx.viewpager2.widget.ViewPager2
  4917.         android:id="@+id/myviepage2"
  4918.         android:layout_width="match_parent"
  4919.         android:layout_height="0dp"
  4920.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4921.         app:layout_constraintBottom_toBottomOf="parent"
  4922.         app:layout_constraintStart_toStartOf="parent"
  4923.         />
  4924. </androidx.constraintlayout.widget.ConstraintLayout>/>
  4925. </androidx.constraintlayout.widget.ConstraintLayout>    bottomFragment5,<?xml version="1.0" encoding="utf-8"?>
  4926. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4927.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4928.     xmlns:tools="http://schemas.android.com/tools"
  4929.     android:layout_width="match_parent"
  4930.     android:layout_height="match_parent"
  4931.     tools:context=".ViewPager2TabLayoutActivity">
  4932.    
  4933.     <androidx.fragment.app.FragmentContainerView
  4934. <?xml version="1.0" encoding="utf-8"?>
  4935. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4936.     xmlns:tools="http://schemas.android.com/tools"
  4937.     android:layout_width="match_parent"
  4938.     android:layout_height="match_parent"
  4939.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4940.     tools:context=".tablayout.TabLayoutHomeFragment">
  4941.     <com.google.android.material.tabs.TabLayout
  4942.         android:id="@+id/mytablayout2"
  4943.         android:layout_width="match_parent"
  4944.         android:layout_height="wrap_content"
  4945.         app:tabMode="auto"
  4946.         app:tabGravity="start"
  4947.         app:tabBackground="@color/pink"
  4948.         app:tabTextColor="@color/white"
  4949.         app:layout_constraintStart_toStartOf="parent"
  4950.         app:layout_constraintTop_toTopOf="parent"
  4951.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4952.         />
  4953.     <androidx.viewpager2.widget.ViewPager2
  4954.         android:id="@+id/myviepage2"
  4955.         android:layout_width="match_parent"
  4956.         android:layout_height="0dp"
  4957.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4958.         app:layout_constraintBottom_toBottomOf="parent"
  4959.         app:layout_constraintStart_toStartOf="parent"
  4960.         />
  4961. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  4962. <?xml version="1.0" encoding="utf-8"?>
  4963. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4964.     xmlns:tools="http://schemas.android.com/tools"
  4965.     android:layout_width="match_parent"
  4966.     android:layout_height="match_parent"
  4967.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4968.     tools:context=".tablayout.TabLayoutHomeFragment">
  4969.     <com.google.android.material.tabs.TabLayout
  4970.         android:id="@+id/mytablayout2"
  4971.         android:layout_width="match_parent"
  4972.         android:layout_height="wrap_content"
  4973.         app:tabMode="auto"
  4974.         app:tabGravity="start"
  4975.         app:tabBackground="@color/pink"
  4976.         app:tabTextColor="@color/white"
  4977.         app:layout_constraintStart_toStartOf="parent"
  4978.         app:layout_constraintTop_toTopOf="parent"
  4979.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4980.         />
  4981.     <androidx.viewpager2.widget.ViewPager2
  4982.         android:id="@+id/myviepage2"
  4983.         android:layout_width="match_parent"
  4984.         android:layout_height="0dp"
  4985.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4986.         app:layout_constraintBottom_toBottomOf="parent"
  4987.         app:layout_constraintStart_toStartOf="parent"
  4988.         />
  4989. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  4990. <?xml version="1.0" encoding="utf-8"?>
  4991. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4992.     xmlns:tools="http://schemas.android.com/tools"
  4993.     android:layout_width="match_parent"
  4994.     android:layout_height="match_parent"
  4995.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4996.     tools:context=".tablayout.TabLayoutHomeFragment">
  4997.     <com.google.android.material.tabs.TabLayout
  4998.         android:id="@+id/mytablayout2"
  4999.         android:layout_width="match_parent"
  5000.         android:layout_height="wrap_content"
  5001.         app:tabMode="auto"
  5002.         app:tabGravity="start"
  5003.         app:tabBackground="@color/pink"
  5004.         app:tabTextColor="@color/white"
  5005.         app:layout_constraintStart_toStartOf="parent"
  5006.         app:layout_constraintTop_toTopOf="parent"
  5007.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5008.         />
  5009.     <androidx.viewpager2.widget.ViewPager2
  5010.         android:id="@+id/myviepage2"
  5011.         android:layout_width="match_parent"
  5012.         android:layout_height="0dp"
  5013.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5014.         app:layout_constraintBottom_toBottomOf="parent"
  5015.         app:layout_constraintStart_toStartOf="parent"
  5016.         />
  5017. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  5018. <?xml version="1.0" encoding="utf-8"?>
  5019. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5020.     xmlns:tools="http://schemas.android.com/tools"
  5021.     android:layout_width="match_parent"
  5022.     android:layout_height="match_parent"
  5023.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5024.     tools:context=".tablayout.TabLayoutHomeFragment">
  5025.     <com.google.android.material.tabs.TabLayout
  5026.         android:id="@+id/mytablayout2"
  5027.         android:layout_width="match_parent"
  5028.         android:layout_height="wrap_content"
  5029.         app:tabMode="auto"
  5030.         app:tabGravity="start"
  5031.         app:tabBackground="@color/pink"
  5032.         app:tabTextColor="@color/white"
  5033.         app:layout_constraintStart_toStartOf="parent"
  5034.         app:layout_constraintTop_toTopOf="parent"
  5035.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5036.         />
  5037.     <androidx.viewpager2.widget.ViewPager2
  5038.         android:id="@+id/myviepage2"
  5039.         android:layout_width="match_parent"
  5040.         android:layout_height="0dp"
  5041.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5042.         app:layout_constraintBottom_toBottomOf="parent"
  5043.         app:layout_constraintStart_toStartOf="parent"
  5044.         />
  5045. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  5046. <?xml version="1.0" encoding="utf-8"?>
  5047. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5048.     xmlns:tools="http://schemas.android.com/tools"
  5049.     android:layout_width="match_parent"
  5050.     android:layout_height="match_parent"
  5051.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5052.     tools:context=".tablayout.TabLayoutHomeFragment">
  5053.     <com.google.android.material.tabs.TabLayout
  5054.         android:id="@+id/mytablayout2"
  5055.         android:layout_width="match_parent"
  5056.         android:layout_height="wrap_content"
  5057.         app:tabMode="auto"
  5058.         app:tabGravity="start"
  5059.         app:tabBackground="@color/pink"
  5060.         app:tabTextColor="@color/white"
  5061.         app:layout_constraintStart_toStartOf="parent"
  5062.         app:layout_constraintTop_toTopOf="parent"
  5063.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5064.         />
  5065.     <androidx.viewpager2.widget.ViewPager2
  5066.         android:id="@+id/myviepage2"
  5067.         android:layout_width="match_parent"
  5068.         android:layout_height="0dp"
  5069.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5070.         app:layout_constraintBottom_toBottomOf="parent"
  5071.         app:layout_constraintStart_toStartOf="parent"
  5072.         />
  5073. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  5074.     <com.google.android.material.bottomnavigation.BottomNavigationView
  5075. <?xml version="1.0" encoding="utf-8"?>
  5076. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5077.     xmlns:tools="http://schemas.android.com/tools"
  5078.     android:layout_width="match_parent"
  5079.     android:layout_height="match_parent"
  5080.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5081.     tools:context=".tablayout.TabLayoutHomeFragment">
  5082.     <com.google.android.material.tabs.TabLayout
  5083.         android:id="@+id/mytablayout2"
  5084.         android:layout_width="match_parent"
  5085.         android:layout_height="wrap_content"
  5086.         app:tabMode="auto"
  5087.         app:tabGravity="start"
  5088.         app:tabBackground="@color/pink"
  5089.         app:tabTextColor="@color/white"
  5090.         app:layout_constraintStart_toStartOf="parent"
  5091.         app:layout_constraintTop_toTopOf="parent"
  5092.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5093.         />
  5094.     <androidx.viewpager2.widget.ViewPager2
  5095.         android:id="@+id/myviepage2"
  5096.         android:layout_width="match_parent"
  5097.         android:layout_height="0dp"
  5098.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5099.         app:layout_constraintBottom_toBottomOf="parent"
  5100.         app:layout_constraintStart_toStartOf="parent"
  5101.         />
  5102. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  5103. <?xml version="1.0" encoding="utf-8"?>
  5104. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5105.     xmlns:tools="http://schemas.android.com/tools"
  5106.     android:layout_width="match_parent"
  5107.     android:layout_height="match_parent"
  5108.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5109.     tools:context=".tablayout.TabLayoutHomeFragment">
  5110.     <com.google.android.material.tabs.TabLayout
  5111.         android:id="@+id/mytablayout2"
  5112.         android:layout_width="match_parent"
  5113.         android:layout_height="wrap_content"
  5114.         app:tabMode="auto"
  5115.         app:tabGravity="start"
  5116.         app:tabBackground="@color/pink"
  5117.         app:tabTextColor="@color/white"
  5118.         app:layout_constraintStart_toStartOf="parent"
  5119.         app:layout_constraintTop_toTopOf="parent"
  5120.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5121.         />
  5122.     <androidx.viewpager2.widget.ViewPager2
  5123.         android:id="@+id/myviepage2"
  5124.         android:layout_width="match_parent"
  5125.         android:layout_height="0dp"
  5126.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5127.         app:layout_constraintBottom_toBottomOf="parent"
  5128.         app:layout_constraintStart_toStartOf="parent"
  5129.         />
  5130. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  5131. <?xml version="1.0" encoding="utf-8"?>
  5132. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5133.     xmlns:tools="http://schemas.android.com/tools"
  5134.     android:layout_width="match_parent"
  5135.     android:layout_height="match_parent"
  5136.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5137.     tools:context=".tablayout.TabLayoutHomeFragment">
  5138.     <com.google.android.material.tabs.TabLayout
  5139.         android:id="@+id/mytablayout2"
  5140.         android:layout_width="match_parent"
  5141.         android:layout_height="wrap_content"
  5142.         app:tabMode="auto"
  5143.         app:tabGravity="start"
  5144.         app:tabBackground="@color/pink"
  5145.         app:tabTextColor="@color/white"
  5146.         app:layout_constraintStart_toStartOf="parent"
  5147.         app:layout_constraintTop_toTopOf="parent"
  5148.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5149.         />
  5150.     <androidx.viewpager2.widget.ViewPager2
  5151.         android:id="@+id/myviepage2"
  5152.         android:layout_width="match_parent"
  5153.         android:layout_height="0dp"
  5154.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5155.         app:layout_constraintBottom_toBottomOf="parent"
  5156.         app:layout_constraintStart_toStartOf="parent"
  5157.         />
  5158. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  5159. <?xml version="1.0" encoding="utf-8"?>
  5160. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5161.     xmlns:tools="http://schemas.android.com/tools"
  5162.     android:layout_width="match_parent"
  5163.     android:layout_height="match_parent"
  5164.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5165.     tools:context=".tablayout.TabLayoutHomeFragment">
  5166.     <com.google.android.material.tabs.TabLayout
  5167.         android:id="@+id/mytablayout2"
  5168.         android:layout_width="match_parent"
  5169.         android:layout_height="wrap_content"
  5170.         app:tabMode="auto"
  5171.         app:tabGravity="start"
  5172.         app:tabBackground="@color/pink"
  5173.         app:tabTextColor="@color/white"
  5174.         app:layout_constraintStart_toStartOf="parent"
  5175.         app:layout_constraintTop_toTopOf="parent"
  5176.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5177.         />
  5178.     <androidx.viewpager2.widget.ViewPager2
  5179.         android:id="@+id/myviepage2"
  5180.         android:layout_width="match_parent"
  5181.         android:layout_height="0dp"
  5182.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5183.         app:layout_constraintBottom_toBottomOf="parent"
  5184.         app:layout_constraintStart_toStartOf="parent"
  5185.         />
  5186. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  5187. <?xml version="1.0" encoding="utf-8"?>
  5188. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5189.     xmlns:tools="http://schemas.android.com/tools"
  5190.     android:layout_width="match_parent"
  5191.     android:layout_height="match_parent"
  5192.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5193.     tools:context=".tablayout.TabLayoutHomeFragment">
  5194.     <com.google.android.material.tabs.TabLayout
  5195.         android:id="@+id/mytablayout2"
  5196.         android:layout_width="match_parent"
  5197.         android:layout_height="wrap_content"
  5198.         app:tabMode="auto"
  5199.         app:tabGravity="start"
  5200.         app:tabBackground="@color/pink"
  5201.         app:tabTextColor="@color/white"
  5202.         app:layout_constraintStart_toStartOf="parent"
  5203.         app:layout_constraintTop_toTopOf="parent"
  5204.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5205.         />
  5206.     <androidx.viewpager2.widget.ViewPager2
  5207.         android:id="@+id/myviepage2"
  5208.         android:layout_width="match_parent"
  5209.         android:layout_height="0dp"
  5210.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5211.         app:layout_constraintBottom_toBottomOf="parent"
  5212.         app:layout_constraintStart_toStartOf="parent"
  5213.         />
  5214. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  5215. <?xml version="1.0" encoding="utf-8"?>
  5216. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5217.     xmlns:tools="http://schemas.android.com/tools"
  5218.     android:layout_width="match_parent"
  5219.     android:layout_height="match_parent"
  5220.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5221.     tools:context=".tablayout.TabLayoutHomeFragment">
  5222.     <com.google.android.material.tabs.TabLayout
  5223.         android:id="@+id/mytablayout2"
  5224.         android:layout_width="match_parent"
  5225.         android:layout_height="wrap_content"
  5226.         app:tabMode="auto"
  5227.         app:tabGravity="start"
  5228.         app:tabBackground="@color/pink"
  5229.         app:tabTextColor="@color/white"
  5230.         app:layout_constraintStart_toStartOf="parent"
  5231.         app:layout_constraintTop_toTopOf="parent"
  5232.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5233.         />
  5234.     <androidx.viewpager2.widget.ViewPager2
  5235.         android:id="@+id/myviepage2"
  5236.         android:layout_width="match_parent"
  5237.         android:layout_height="0dp"
  5238.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5239.         app:layout_constraintBottom_toBottomOf="parent"
  5240.         app:layout_constraintStart_toStartOf="parent"
  5241.         />
  5242. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  5243. <?xml version="1.0" encoding="utf-8"?>
  5244. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5245.     xmlns:tools="http://schemas.android.com/tools"
  5246.     android:layout_width="match_parent"
  5247.     android:layout_height="match_parent"
  5248.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5249.     tools:context=".tablayout.TabLayoutHomeFragment">
  5250.     <com.google.android.material.tabs.TabLayout
  5251.         android:id="@+id/mytablayout2"
  5252.         android:layout_width="match_parent"
  5253.         android:layout_height="wrap_content"
  5254.         app:tabMode="auto"
  5255.         app:tabGravity="start"
  5256.         app:tabBackground="@color/pink"
  5257.         app:tabTextColor="@color/white"
  5258.         app:layout_constraintStart_toStartOf="parent"
  5259.         app:layout_constraintTop_toTopOf="parent"
  5260.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5261.         />
  5262.     <androidx.viewpager2.widget.ViewPager2
  5263.         android:id="@+id/myviepage2"
  5264.         android:layout_width="match_parent"
  5265.         android:layout_height="0dp"
  5266.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5267.         app:layout_constraintBottom_toBottomOf="parent"
  5268.         app:layout_constraintStart_toStartOf="parent"
  5269.         />
  5270. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  5271. <?xml version="1.0" encoding="utf-8"?>
  5272. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5273.     xmlns:tools="http://schemas.android.com/tools"
  5274.     android:layout_width="match_parent"
  5275.     android:layout_height="match_parent"
  5276.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5277.     tools:context=".tablayout.TabLayoutHomeFragment">
  5278.     <com.google.android.material.tabs.TabLayout
  5279.         android:id="@+id/mytablayout2"
  5280.         android:layout_width="match_parent"
  5281.         android:layout_height="wrap_content"
  5282.         app:tabMode="auto"
  5283.         app:tabGravity="start"
  5284.         app:tabBackground="@color/pink"
  5285.         app:tabTextColor="@color/white"
  5286.         app:layout_constraintStart_toStartOf="parent"
  5287.         app:layout_constraintTop_toTopOf="parent"
  5288.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5289.         />
  5290.     <androidx.viewpager2.widget.ViewPager2
  5291.         android:id="@+id/myviepage2"
  5292.         android:layout_width="match_parent"
  5293.         android:layout_height="0dp"
  5294.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5295.         app:layout_constraintBottom_toBottomOf="parent"
  5296.         app:layout_constraintStart_toStartOf="parent"
  5297.         />
  5298. </androidx.constraintlayout.widget.ConstraintLayout>/>
  5299. </androidx.constraintlayout.widget.ConstraintLayout>    bottomFragment6,<?xml version="1.0" encoding="utf-8"?>
  5300. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5301.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5302.     xmlns:tools="http://schemas.android.com/tools"
  5303.     android:layout_width="match_parent"
  5304.     android:layout_height="match_parent"
  5305.     tools:context=".ViewPager2TabLayoutActivity">
  5306.    
  5307.     <androidx.fragment.app.FragmentContainerView
  5308. <?xml version="1.0" encoding="utf-8"?>
  5309. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5310.     xmlns:tools="http://schemas.android.com/tools"
  5311.     android:layout_width="match_parent"
  5312.     android:layout_height="match_parent"
  5313.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5314.     tools:context=".tablayout.TabLayoutHomeFragment">
  5315.     <com.google.android.material.tabs.TabLayout
  5316.         android:id="@+id/mytablayout2"
  5317.         android:layout_width="match_parent"
  5318.         android:layout_height="wrap_content"
  5319.         app:tabMode="auto"
  5320.         app:tabGravity="start"
  5321.         app:tabBackground="@color/pink"
  5322.         app:tabTextColor="@color/white"
  5323.         app:layout_constraintStart_toStartOf="parent"
  5324.         app:layout_constraintTop_toTopOf="parent"
  5325.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5326.         />
  5327.     <androidx.viewpager2.widget.ViewPager2
  5328.         android:id="@+id/myviepage2"
  5329.         android:layout_width="match_parent"
  5330.         android:layout_height="0dp"
  5331.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5332.         app:layout_constraintBottom_toBottomOf="parent"
  5333.         app:layout_constraintStart_toStartOf="parent"
  5334.         />
  5335. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  5336. <?xml version="1.0" encoding="utf-8"?>
  5337. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5338.     xmlns:tools="http://schemas.android.com/tools"
  5339.     android:layout_width="match_parent"
  5340.     android:layout_height="match_parent"
  5341.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5342.     tools:context=".tablayout.TabLayoutHomeFragment">
  5343.     <com.google.android.material.tabs.TabLayout
  5344.         android:id="@+id/mytablayout2"
  5345.         android:layout_width="match_parent"
  5346.         android:layout_height="wrap_content"
  5347.         app:tabMode="auto"
  5348.         app:tabGravity="start"
  5349.         app:tabBackground="@color/pink"
  5350.         app:tabTextColor="@color/white"
  5351.         app:layout_constraintStart_toStartOf="parent"
  5352.         app:layout_constraintTop_toTopOf="parent"
  5353.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5354.         />
  5355.     <androidx.viewpager2.widget.ViewPager2
  5356.         android:id="@+id/myviepage2"
  5357.         android:layout_width="match_parent"
  5358.         android:layout_height="0dp"
  5359.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5360.         app:layout_constraintBottom_toBottomOf="parent"
  5361.         app:layout_constraintStart_toStartOf="parent"
  5362.         />
  5363. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  5364. <?xml version="1.0" encoding="utf-8"?>
  5365. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5366.     xmlns:tools="http://schemas.android.com/tools"
  5367.     android:layout_width="match_parent"
  5368.     android:layout_height="match_parent"
  5369.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5370.     tools:context=".tablayout.TabLayoutHomeFragment">
  5371.     <com.google.android.material.tabs.TabLayout
  5372.         android:id="@+id/mytablayout2"
  5373.         android:layout_width="match_parent"
  5374.         android:layout_height="wrap_content"
  5375.         app:tabMode="auto"
  5376.         app:tabGravity="start"
  5377.         app:tabBackground="@color/pink"
  5378.         app:tabTextColor="@color/white"
  5379.         app:layout_constraintStart_toStartOf="parent"
  5380.         app:layout_constraintTop_toTopOf="parent"
  5381.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5382.         />
  5383.     <androidx.viewpager2.widget.ViewPager2
  5384.         android:id="@+id/myviepage2"
  5385.         android:layout_width="match_parent"
  5386.         android:layout_height="0dp"
  5387.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5388.         app:layout_constraintBottom_toBottomOf="parent"
  5389.         app:layout_constraintStart_toStartOf="parent"
  5390.         />
  5391. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  5392. <?xml version="1.0" encoding="utf-8"?>
  5393. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5394.     xmlns:tools="http://schemas.android.com/tools"
  5395.     android:layout_width="match_parent"
  5396.     android:layout_height="match_parent"
  5397.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5398.     tools:context=".tablayout.TabLayoutHomeFragment">
  5399.     <com.google.android.material.tabs.TabLayout
  5400.         android:id="@+id/mytablayout2"
  5401.         android:layout_width="match_parent"
  5402.         android:layout_height="wrap_content"
  5403.         app:tabMode="auto"
  5404.         app:tabGravity="start"
  5405.         app:tabBackground="@color/pink"
  5406.         app:tabTextColor="@color/white"
  5407.         app:layout_constraintStart_toStartOf="parent"
  5408.         app:layout_constraintTop_toTopOf="parent"
  5409.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5410.         />
  5411.     <androidx.viewpager2.widget.ViewPager2
  5412.         android:id="@+id/myviepage2"
  5413.         android:layout_width="match_parent"
  5414.         android:layout_height="0dp"
  5415.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5416.         app:layout_constraintBottom_toBottomOf="parent"
  5417.         app:layout_constraintStart_toStartOf="parent"
  5418.         />
  5419. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  5420. <?xml version="1.0" encoding="utf-8"?>
  5421. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5422.     xmlns:tools="http://schemas.android.com/tools"
  5423.     android:layout_width="match_parent"
  5424.     android:layout_height="match_parent"
  5425.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5426.     tools:context=".tablayout.TabLayoutHomeFragment">
  5427.     <com.google.android.material.tabs.TabLayout
  5428.         android:id="@+id/mytablayout2"
  5429.         android:layout_width="match_parent"
  5430.         android:layout_height="wrap_content"
  5431.         app:tabMode="auto"
  5432.         app:tabGravity="start"
  5433.         app:tabBackground="@color/pink"
  5434.         app:tabTextColor="@color/white"
  5435.         app:layout_constraintStart_toStartOf="parent"
  5436.         app:layout_constraintTop_toTopOf="parent"
  5437.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5438.         />
  5439.     <androidx.viewpager2.widget.ViewPager2
  5440.         android:id="@+id/myviepage2"
  5441.         android:layout_width="match_parent"
  5442.         android:layout_height="0dp"
  5443.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5444.         app:layout_constraintBottom_toBottomOf="parent"
  5445.         app:layout_constraintStart_toStartOf="parent"
  5446.         />
  5447. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  5448.     <com.google.android.material.bottomnavigation.BottomNavigationView
  5449. <?xml version="1.0" encoding="utf-8"?>
  5450. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5451.     xmlns:tools="http://schemas.android.com/tools"
  5452.     android:layout_width="match_parent"
  5453.     android:layout_height="match_parent"
  5454.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5455.     tools:context=".tablayout.TabLayoutHomeFragment">
  5456.     <com.google.android.material.tabs.TabLayout
  5457.         android:id="@+id/mytablayout2"
  5458.         android:layout_width="match_parent"
  5459.         android:layout_height="wrap_content"
  5460.         app:tabMode="auto"
  5461.         app:tabGravity="start"
  5462.         app:tabBackground="@color/pink"
  5463.         app:tabTextColor="@color/white"
  5464.         app:layout_constraintStart_toStartOf="parent"
  5465.         app:layout_constraintTop_toTopOf="parent"
  5466.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5467.         />
  5468.     <androidx.viewpager2.widget.ViewPager2
  5469.         android:id="@+id/myviepage2"
  5470.         android:layout_width="match_parent"
  5471.         android:layout_height="0dp"
  5472.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5473.         app:layout_constraintBottom_toBottomOf="parent"
  5474.         app:layout_constraintStart_toStartOf="parent"
  5475.         />
  5476. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  5477. <?xml version="1.0" encoding="utf-8"?>
  5478. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5479.     xmlns:tools="http://schemas.android.com/tools"
  5480.     android:layout_width="match_parent"
  5481.     android:layout_height="match_parent"
  5482.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5483.     tools:context=".tablayout.TabLayoutHomeFragment">
  5484.     <com.google.android.material.tabs.TabLayout
  5485.         android:id="@+id/mytablayout2"
  5486.         android:layout_width="match_parent"
  5487.         android:layout_height="wrap_content"
  5488.         app:tabMode="auto"
  5489.         app:tabGravity="start"
  5490.         app:tabBackground="@color/pink"
  5491.         app:tabTextColor="@color/white"
  5492.         app:layout_constraintStart_toStartOf="parent"
  5493.         app:layout_constraintTop_toTopOf="parent"
  5494.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5495.         />
  5496.     <androidx.viewpager2.widget.ViewPager2
  5497.         android:id="@+id/myviepage2"
  5498.         android:layout_width="match_parent"
  5499.         android:layout_height="0dp"
  5500.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5501.         app:layout_constraintBottom_toBottomOf="parent"
  5502.         app:layout_constraintStart_toStartOf="parent"
  5503.         />
  5504. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  5505. <?xml version="1.0" encoding="utf-8"?>
  5506. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5507.     xmlns:tools="http://schemas.android.com/tools"
  5508.     android:layout_width="match_parent"
  5509.     android:layout_height="match_parent"
  5510.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5511.     tools:context=".tablayout.TabLayoutHomeFragment">
  5512.     <com.google.android.material.tabs.TabLayout
  5513.         android:id="@+id/mytablayout2"
  5514.         android:layout_width="match_parent"
  5515.         android:layout_height="wrap_content"
  5516.         app:tabMode="auto"
  5517.         app:tabGravity="start"
  5518.         app:tabBackground="@color/pink"
  5519.         app:tabTextColor="@color/white"
  5520.         app:layout_constraintStart_toStartOf="parent"
  5521.         app:layout_constraintTop_toTopOf="parent"
  5522.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5523.         />
  5524.     <androidx.viewpager2.widget.ViewPager2
  5525.         android:id="@+id/myviepage2"
  5526.         android:layout_width="match_parent"
  5527.         android:layout_height="0dp"
  5528.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5529.         app:layout_constraintBottom_toBottomOf="parent"
  5530.         app:layout_constraintStart_toStartOf="parent"
  5531.         />
  5532. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  5533. <?xml version="1.0" encoding="utf-8"?>
  5534. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5535.     xmlns:tools="http://schemas.android.com/tools"
  5536.     android:layout_width="match_parent"
  5537.     android:layout_height="match_parent"
  5538.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5539.     tools:context=".tablayout.TabLayoutHomeFragment">
  5540.     <com.google.android.material.tabs.TabLayout
  5541.         android:id="@+id/mytablayout2"
  5542.         android:layout_width="match_parent"
  5543.         android:layout_height="wrap_content"
  5544.         app:tabMode="auto"
  5545.         app:tabGravity="start"
  5546.         app:tabBackground="@color/pink"
  5547.         app:tabTextColor="@color/white"
  5548.         app:layout_constraintStart_toStartOf="parent"
  5549.         app:layout_constraintTop_toTopOf="parent"
  5550.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5551.         />
  5552.     <androidx.viewpager2.widget.ViewPager2
  5553.         android:id="@+id/myviepage2"
  5554.         android:layout_width="match_parent"
  5555.         android:layout_height="0dp"
  5556.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5557.         app:layout_constraintBottom_toBottomOf="parent"
  5558.         app:layout_constraintStart_toStartOf="parent"
  5559.         />
  5560. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  5561. <?xml version="1.0" encoding="utf-8"?>
  5562. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5563.     xmlns:tools="http://schemas.android.com/tools"
  5564.     android:layout_width="match_parent"
  5565.     android:layout_height="match_parent"
  5566.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5567.     tools:context=".tablayout.TabLayoutHomeFragment">
  5568.     <com.google.android.material.tabs.TabLayout
  5569.         android:id="@+id/mytablayout2"
  5570.         android:layout_width="match_parent"
  5571.         android:layout_height="wrap_content"
  5572.         app:tabMode="auto"
  5573.         app:tabGravity="start"
  5574.         app:tabBackground="@color/pink"
  5575.         app:tabTextColor="@color/white"
  5576.         app:layout_constraintStart_toStartOf="parent"
  5577.         app:layout_constraintTop_toTopOf="parent"
  5578.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5579.         />
  5580.     <androidx.viewpager2.widget.ViewPager2
  5581.         android:id="@+id/myviepage2"
  5582.         android:layout_width="match_parent"
  5583.         android:layout_height="0dp"
  5584.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5585.         app:layout_constraintBottom_toBottomOf="parent"
  5586.         app:layout_constraintStart_toStartOf="parent"
  5587.         />
  5588. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  5589. <?xml version="1.0" encoding="utf-8"?>
  5590. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5591.     xmlns:tools="http://schemas.android.com/tools"
  5592.     android:layout_width="match_parent"
  5593.     android:layout_height="match_parent"
  5594.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5595.     tools:context=".tablayout.TabLayoutHomeFragment">
  5596.     <com.google.android.material.tabs.TabLayout
  5597.         android:id="@+id/mytablayout2"
  5598.         android:layout_width="match_parent"
  5599.         android:layout_height="wrap_content"
  5600.         app:tabMode="auto"
  5601.         app:tabGravity="start"
  5602.         app:tabBackground="@color/pink"
  5603.         app:tabTextColor="@color/white"
  5604.         app:layout_constraintStart_toStartOf="parent"
  5605.         app:layout_constraintTop_toTopOf="parent"
  5606.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5607.         />
  5608.     <androidx.viewpager2.widget.ViewPager2
  5609.         android:id="@+id/myviepage2"
  5610.         android:layout_width="match_parent"
  5611.         android:layout_height="0dp"
  5612.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5613.         app:layout_constraintBottom_toBottomOf="parent"
  5614.         app:layout_constraintStart_toStartOf="parent"
  5615.         />
  5616. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  5617. <?xml version="1.0" encoding="utf-8"?>
  5618. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5619.     xmlns:tools="http://schemas.android.com/tools"
  5620.     android:layout_width="match_parent"
  5621.     android:layout_height="match_parent"
  5622.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5623.     tools:context=".tablayout.TabLayoutHomeFragment">
  5624.     <com.google.android.material.tabs.TabLayout
  5625.         android:id="@+id/mytablayout2"
  5626.         android:layout_width="match_parent"
  5627.         android:layout_height="wrap_content"
  5628.         app:tabMode="auto"
  5629.         app:tabGravity="start"
  5630.         app:tabBackground="@color/pink"
  5631.         app:tabTextColor="@color/white"
  5632.         app:layout_constraintStart_toStartOf="parent"
  5633.         app:layout_constraintTop_toTopOf="parent"
  5634.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5635.         />
  5636.     <androidx.viewpager2.widget.ViewPager2
  5637.         android:id="@+id/myviepage2"
  5638.         android:layout_width="match_parent"
  5639.         android:layout_height="0dp"
  5640.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5641.         app:layout_constraintBottom_toBottomOf="parent"
  5642.         app:layout_constraintStart_toStartOf="parent"
  5643.         />
  5644. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  5645. <?xml version="1.0" encoding="utf-8"?>
  5646. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5647.     xmlns:tools="http://schemas.android.com/tools"
  5648.     android:layout_width="match_parent"
  5649.     android:layout_height="match_parent"
  5650.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5651.     tools:context=".tablayout.TabLayoutHomeFragment">
  5652.     <com.google.android.material.tabs.TabLayout
  5653.         android:id="@+id/mytablayout2"
  5654.         android:layout_width="match_parent"
  5655.         android:layout_height="wrap_content"
  5656.         app:tabMode="auto"
  5657.         app:tabGravity="start"
  5658.         app:tabBackground="@color/pink"
  5659.         app:tabTextColor="@color/white"
  5660.         app:layout_constraintStart_toStartOf="parent"
  5661.         app:layout_constraintTop_toTopOf="parent"
  5662.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5663.         />
  5664.     <androidx.viewpager2.widget.ViewPager2
  5665.         android:id="@+id/myviepage2"
  5666.         android:layout_width="match_parent"
  5667.         android:layout_height="0dp"
  5668.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5669.         app:layout_constraintBottom_toBottomOf="parent"
  5670.         app:layout_constraintStart_toStartOf="parent"
  5671.         />
  5672. </androidx.constraintlayout.widget.ConstraintLayout>/>
  5673. </androidx.constraintlayout.widget.ConstraintLayout>    bottomFragment7);    }    static class TabLayoutChildViewPager extends FragmentStateAdapter{<?xml version="1.0" encoding="utf-8"?>
  5674. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5675.     xmlns:tools="http://schemas.android.com/tools"
  5676.     android:layout_width="match_parent"
  5677.     android:layout_height="match_parent"
  5678.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5679.     tools:context=".tablayout.TabLayoutHomeFragment">
  5680.     <com.google.android.material.tabs.TabLayout
  5681.         android:id="@+id/mytablayout2"
  5682.         android:layout_width="match_parent"
  5683.         android:layout_height="wrap_content"
  5684.         app:tabMode="auto"
  5685.         app:tabGravity="start"
  5686.         app:tabBackground="@color/pink"
  5687.         app:tabTextColor="@color/white"
  5688.         app:layout_constraintStart_toStartOf="parent"
  5689.         app:layout_constraintTop_toTopOf="parent"
  5690.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5691.         />
  5692.     <androidx.viewpager2.widget.ViewPager2
  5693.         android:id="@+id/myviepage2"
  5694.         android:layout_width="match_parent"
  5695.         android:layout_height="0dp"
  5696.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5697.         app:layout_constraintBottom_toBottomOf="parent"
  5698.         app:layout_constraintStart_toStartOf="parent"
  5699.         />
  5700. </androidx.constraintlayout.widget.ConstraintLayout>private List fragmentList;<?xml version="1.0" encoding="utf-8"?>
  5701. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5702.     xmlns:tools="http://schemas.android.com/tools"
  5703.     android:layout_width="match_parent"
  5704.     android:layout_height="match_parent"
  5705.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5706.     tools:context=".tablayout.TabLayoutHomeFragment">
  5707.     <com.google.android.material.tabs.TabLayout
  5708.         android:id="@+id/mytablayout2"
  5709.         android:layout_width="match_parent"
  5710.         android:layout_height="wrap_content"
  5711.         app:tabMode="auto"
  5712.         app:tabGravity="start"
  5713.         app:tabBackground="@color/pink"
  5714.         app:tabTextColor="@color/white"
  5715.         app:layout_constraintStart_toStartOf="parent"
  5716.         app:layout_constraintTop_toTopOf="parent"
  5717.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5718.         />
  5719.     <androidx.viewpager2.widget.ViewPager2
  5720.         android:id="@+id/myviepage2"
  5721.         android:layout_width="match_parent"
  5722.         android:layout_height="0dp"
  5723.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5724.         app:layout_constraintBottom_toBottomOf="parent"
  5725.         app:layout_constraintStart_toStartOf="parent"
  5726.         />
  5727. </androidx.constraintlayout.widget.ConstraintLayout>public TabLayoutChildViewPager(@NonNull FragmentActivity fragmentActivity, List fragmentList) {<?xml version="1.0" encoding="utf-8"?>
  5728. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5729.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5730.     xmlns:tools="http://schemas.android.com/tools"
  5731.     android:layout_width="match_parent"
  5732.     android:layout_height="match_parent"
  5733.     tools:context=".ViewPager2TabLayoutActivity">
  5734.    
  5735.     <androidx.fragment.app.FragmentContainerView
  5736. <?xml version="1.0" encoding="utf-8"?>
  5737. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5738.     xmlns:tools="http://schemas.android.com/tools"
  5739.     android:layout_width="match_parent"
  5740.     android:layout_height="match_parent"
  5741.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5742.     tools:context=".tablayout.TabLayoutHomeFragment">
  5743.     <com.google.android.material.tabs.TabLayout
  5744.         android:id="@+id/mytablayout2"
  5745.         android:layout_width="match_parent"
  5746.         android:layout_height="wrap_content"
  5747.         app:tabMode="auto"
  5748.         app:tabGravity="start"
  5749.         app:tabBackground="@color/pink"
  5750.         app:tabTextColor="@color/white"
  5751.         app:layout_constraintStart_toStartOf="parent"
  5752.         app:layout_constraintTop_toTopOf="parent"
  5753.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5754.         />
  5755.     <androidx.viewpager2.widget.ViewPager2
  5756.         android:id="@+id/myviepage2"
  5757.         android:layout_width="match_parent"
  5758.         android:layout_height="0dp"
  5759.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5760.         app:layout_constraintBottom_toBottomOf="parent"
  5761.         app:layout_constraintStart_toStartOf="parent"
  5762.         />
  5763. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  5764. <?xml version="1.0" encoding="utf-8"?>
  5765. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5766.     xmlns:tools="http://schemas.android.com/tools"
  5767.     android:layout_width="match_parent"
  5768.     android:layout_height="match_parent"
  5769.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5770.     tools:context=".tablayout.TabLayoutHomeFragment">
  5771.     <com.google.android.material.tabs.TabLayout
  5772.         android:id="@+id/mytablayout2"
  5773.         android:layout_width="match_parent"
  5774.         android:layout_height="wrap_content"
  5775.         app:tabMode="auto"
  5776.         app:tabGravity="start"
  5777.         app:tabBackground="@color/pink"
  5778.         app:tabTextColor="@color/white"
  5779.         app:layout_constraintStart_toStartOf="parent"
  5780.         app:layout_constraintTop_toTopOf="parent"
  5781.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5782.         />
  5783.     <androidx.viewpager2.widget.ViewPager2
  5784.         android:id="@+id/myviepage2"
  5785.         android:layout_width="match_parent"
  5786.         android:layout_height="0dp"
  5787.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5788.         app:layout_constraintBottom_toBottomOf="parent"
  5789.         app:layout_constraintStart_toStartOf="parent"
  5790.         />
  5791. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  5792. <?xml version="1.0" encoding="utf-8"?>
  5793. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5794.     xmlns:tools="http://schemas.android.com/tools"
  5795.     android:layout_width="match_parent"
  5796.     android:layout_height="match_parent"
  5797.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5798.     tools:context=".tablayout.TabLayoutHomeFragment">
  5799.     <com.google.android.material.tabs.TabLayout
  5800.         android:id="@+id/mytablayout2"
  5801.         android:layout_width="match_parent"
  5802.         android:layout_height="wrap_content"
  5803.         app:tabMode="auto"
  5804.         app:tabGravity="start"
  5805.         app:tabBackground="@color/pink"
  5806.         app:tabTextColor="@color/white"
  5807.         app:layout_constraintStart_toStartOf="parent"
  5808.         app:layout_constraintTop_toTopOf="parent"
  5809.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5810.         />
  5811.     <androidx.viewpager2.widget.ViewPager2
  5812.         android:id="@+id/myviepage2"
  5813.         android:layout_width="match_parent"
  5814.         android:layout_height="0dp"
  5815.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5816.         app:layout_constraintBottom_toBottomOf="parent"
  5817.         app:layout_constraintStart_toStartOf="parent"
  5818.         />
  5819. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  5820. <?xml version="1.0" encoding="utf-8"?>
  5821. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5822.     xmlns:tools="http://schemas.android.com/tools"
  5823.     android:layout_width="match_parent"
  5824.     android:layout_height="match_parent"
  5825.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5826.     tools:context=".tablayout.TabLayoutHomeFragment">
  5827.     <com.google.android.material.tabs.TabLayout
  5828.         android:id="@+id/mytablayout2"
  5829.         android:layout_width="match_parent"
  5830.         android:layout_height="wrap_content"
  5831.         app:tabMode="auto"
  5832.         app:tabGravity="start"
  5833.         app:tabBackground="@color/pink"
  5834.         app:tabTextColor="@color/white"
  5835.         app:layout_constraintStart_toStartOf="parent"
  5836.         app:layout_constraintTop_toTopOf="parent"
  5837.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5838.         />
  5839.     <androidx.viewpager2.widget.ViewPager2
  5840.         android:id="@+id/myviepage2"
  5841.         android:layout_width="match_parent"
  5842.         android:layout_height="0dp"
  5843.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5844.         app:layout_constraintBottom_toBottomOf="parent"
  5845.         app:layout_constraintStart_toStartOf="parent"
  5846.         />
  5847. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  5848. <?xml version="1.0" encoding="utf-8"?>
  5849. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5850.     xmlns:tools="http://schemas.android.com/tools"
  5851.     android:layout_width="match_parent"
  5852.     android:layout_height="match_parent"
  5853.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5854.     tools:context=".tablayout.TabLayoutHomeFragment">
  5855.     <com.google.android.material.tabs.TabLayout
  5856.         android:id="@+id/mytablayout2"
  5857.         android:layout_width="match_parent"
  5858.         android:layout_height="wrap_content"
  5859.         app:tabMode="auto"
  5860.         app:tabGravity="start"
  5861.         app:tabBackground="@color/pink"
  5862.         app:tabTextColor="@color/white"
  5863.         app:layout_constraintStart_toStartOf="parent"
  5864.         app:layout_constraintTop_toTopOf="parent"
  5865.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5866.         />
  5867.     <androidx.viewpager2.widget.ViewPager2
  5868.         android:id="@+id/myviepage2"
  5869.         android:layout_width="match_parent"
  5870.         android:layout_height="0dp"
  5871.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5872.         app:layout_constraintBottom_toBottomOf="parent"
  5873.         app:layout_constraintStart_toStartOf="parent"
  5874.         />
  5875. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  5876.     <com.google.android.material.bottomnavigation.BottomNavigationView
  5877. <?xml version="1.0" encoding="utf-8"?>
  5878. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5879.     xmlns:tools="http://schemas.android.com/tools"
  5880.     android:layout_width="match_parent"
  5881.     android:layout_height="match_parent"
  5882.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5883.     tools:context=".tablayout.TabLayoutHomeFragment">
  5884.     <com.google.android.material.tabs.TabLayout
  5885.         android:id="@+id/mytablayout2"
  5886.         android:layout_width="match_parent"
  5887.         android:layout_height="wrap_content"
  5888.         app:tabMode="auto"
  5889.         app:tabGravity="start"
  5890.         app:tabBackground="@color/pink"
  5891.         app:tabTextColor="@color/white"
  5892.         app:layout_constraintStart_toStartOf="parent"
  5893.         app:layout_constraintTop_toTopOf="parent"
  5894.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5895.         />
  5896.     <androidx.viewpager2.widget.ViewPager2
  5897.         android:id="@+id/myviepage2"
  5898.         android:layout_width="match_parent"
  5899.         android:layout_height="0dp"
  5900.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5901.         app:layout_constraintBottom_toBottomOf="parent"
  5902.         app:layout_constraintStart_toStartOf="parent"
  5903.         />
  5904. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  5905. <?xml version="1.0" encoding="utf-8"?>
  5906. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5907.     xmlns:tools="http://schemas.android.com/tools"
  5908.     android:layout_width="match_parent"
  5909.     android:layout_height="match_parent"
  5910.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5911.     tools:context=".tablayout.TabLayoutHomeFragment">
  5912.     <com.google.android.material.tabs.TabLayout
  5913.         android:id="@+id/mytablayout2"
  5914.         android:layout_width="match_parent"
  5915.         android:layout_height="wrap_content"
  5916.         app:tabMode="auto"
  5917.         app:tabGravity="start"
  5918.         app:tabBackground="@color/pink"
  5919.         app:tabTextColor="@color/white"
  5920.         app:layout_constraintStart_toStartOf="parent"
  5921.         app:layout_constraintTop_toTopOf="parent"
  5922.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5923.         />
  5924.     <androidx.viewpager2.widget.ViewPager2
  5925.         android:id="@+id/myviepage2"
  5926.         android:layout_width="match_parent"
  5927.         android:layout_height="0dp"
  5928.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5929.         app:layout_constraintBottom_toBottomOf="parent"
  5930.         app:layout_constraintStart_toStartOf="parent"
  5931.         />
  5932. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  5933. <?xml version="1.0" encoding="utf-8"?>
  5934. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5935.     xmlns:tools="http://schemas.android.com/tools"
  5936.     android:layout_width="match_parent"
  5937.     android:layout_height="match_parent"
  5938.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5939.     tools:context=".tablayout.TabLayoutHomeFragment">
  5940.     <com.google.android.material.tabs.TabLayout
  5941.         android:id="@+id/mytablayout2"
  5942.         android:layout_width="match_parent"
  5943.         android:layout_height="wrap_content"
  5944.         app:tabMode="auto"
  5945.         app:tabGravity="start"
  5946.         app:tabBackground="@color/pink"
  5947.         app:tabTextColor="@color/white"
  5948.         app:layout_constraintStart_toStartOf="parent"
  5949.         app:layout_constraintTop_toTopOf="parent"
  5950.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5951.         />
  5952.     <androidx.viewpager2.widget.ViewPager2
  5953.         android:id="@+id/myviepage2"
  5954.         android:layout_width="match_parent"
  5955.         android:layout_height="0dp"
  5956.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5957.         app:layout_constraintBottom_toBottomOf="parent"
  5958.         app:layout_constraintStart_toStartOf="parent"
  5959.         />
  5960. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  5961. <?xml version="1.0" encoding="utf-8"?>
  5962. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5963.     xmlns:tools="http://schemas.android.com/tools"
  5964.     android:layout_width="match_parent"
  5965.     android:layout_height="match_parent"
  5966.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5967.     tools:context=".tablayout.TabLayoutHomeFragment">
  5968.     <com.google.android.material.tabs.TabLayout
  5969.         android:id="@+id/mytablayout2"
  5970.         android:layout_width="match_parent"
  5971.         android:layout_height="wrap_content"
  5972.         app:tabMode="auto"
  5973.         app:tabGravity="start"
  5974.         app:tabBackground="@color/pink"
  5975.         app:tabTextColor="@color/white"
  5976.         app:layout_constraintStart_toStartOf="parent"
  5977.         app:layout_constraintTop_toTopOf="parent"
  5978.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5979.         />
  5980.     <androidx.viewpager2.widget.ViewPager2
  5981.         android:id="@+id/myviepage2"
  5982.         android:layout_width="match_parent"
  5983.         android:layout_height="0dp"
  5984.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5985.         app:layout_constraintBottom_toBottomOf="parent"
  5986.         app:layout_constraintStart_toStartOf="parent"
  5987.         />
  5988. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  5989. <?xml version="1.0" encoding="utf-8"?>
  5990. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5991.     xmlns:tools="http://schemas.android.com/tools"
  5992.     android:layout_width="match_parent"
  5993.     android:layout_height="match_parent"
  5994.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5995.     tools:context=".tablayout.TabLayoutHomeFragment">
  5996.     <com.google.android.material.tabs.TabLayout
  5997.         android:id="@+id/mytablayout2"
  5998.         android:layout_width="match_parent"
  5999.         android:layout_height="wrap_content"
  6000.         app:tabMode="auto"
  6001.         app:tabGravity="start"
  6002.         app:tabBackground="@color/pink"
  6003.         app:tabTextColor="@color/white"
  6004.         app:layout_constraintStart_toStartOf="parent"
  6005.         app:layout_constraintTop_toTopOf="parent"
  6006.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6007.         />
  6008.     <androidx.viewpager2.widget.ViewPager2
  6009.         android:id="@+id/myviepage2"
  6010.         android:layout_width="match_parent"
  6011.         android:layout_height="0dp"
  6012.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6013.         app:layout_constraintBottom_toBottomOf="parent"
  6014.         app:layout_constraintStart_toStartOf="parent"
  6015.         />
  6016. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  6017. <?xml version="1.0" encoding="utf-8"?>
  6018. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6019.     xmlns:tools="http://schemas.android.com/tools"
  6020.     android:layout_width="match_parent"
  6021.     android:layout_height="match_parent"
  6022.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6023.     tools:context=".tablayout.TabLayoutHomeFragment">
  6024.     <com.google.android.material.tabs.TabLayout
  6025.         android:id="@+id/mytablayout2"
  6026.         android:layout_width="match_parent"
  6027.         android:layout_height="wrap_content"
  6028.         app:tabMode="auto"
  6029.         app:tabGravity="start"
  6030.         app:tabBackground="@color/pink"
  6031.         app:tabTextColor="@color/white"
  6032.         app:layout_constraintStart_toStartOf="parent"
  6033.         app:layout_constraintTop_toTopOf="parent"
  6034.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6035.         />
  6036.     <androidx.viewpager2.widget.ViewPager2
  6037.         android:id="@+id/myviepage2"
  6038.         android:layout_width="match_parent"
  6039.         android:layout_height="0dp"
  6040.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6041.         app:layout_constraintBottom_toBottomOf="parent"
  6042.         app:layout_constraintStart_toStartOf="parent"
  6043.         />
  6044. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  6045. <?xml version="1.0" encoding="utf-8"?>
  6046. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6047.     xmlns:tools="http://schemas.android.com/tools"
  6048.     android:layout_width="match_parent"
  6049.     android:layout_height="match_parent"
  6050.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6051.     tools:context=".tablayout.TabLayoutHomeFragment">
  6052.     <com.google.android.material.tabs.TabLayout
  6053.         android:id="@+id/mytablayout2"
  6054.         android:layout_width="match_parent"
  6055.         android:layout_height="wrap_content"
  6056.         app:tabMode="auto"
  6057.         app:tabGravity="start"
  6058.         app:tabBackground="@color/pink"
  6059.         app:tabTextColor="@color/white"
  6060.         app:layout_constraintStart_toStartOf="parent"
  6061.         app:layout_constraintTop_toTopOf="parent"
  6062.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6063.         />
  6064.     <androidx.viewpager2.widget.ViewPager2
  6065.         android:id="@+id/myviepage2"
  6066.         android:layout_width="match_parent"
  6067.         android:layout_height="0dp"
  6068.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6069.         app:layout_constraintBottom_toBottomOf="parent"
  6070.         app:layout_constraintStart_toStartOf="parent"
  6071.         />
  6072. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  6073. <?xml version="1.0" encoding="utf-8"?>
  6074. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6075.     xmlns:tools="http://schemas.android.com/tools"
  6076.     android:layout_width="match_parent"
  6077.     android:layout_height="match_parent"
  6078.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6079.     tools:context=".tablayout.TabLayoutHomeFragment">
  6080.     <com.google.android.material.tabs.TabLayout
  6081.         android:id="@+id/mytablayout2"
  6082.         android:layout_width="match_parent"
  6083.         android:layout_height="wrap_content"
  6084.         app:tabMode="auto"
  6085.         app:tabGravity="start"
  6086.         app:tabBackground="@color/pink"
  6087.         app:tabTextColor="@color/white"
  6088.         app:layout_constraintStart_toStartOf="parent"
  6089.         app:layout_constraintTop_toTopOf="parent"
  6090.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6091.         />
  6092.     <androidx.viewpager2.widget.ViewPager2
  6093.         android:id="@+id/myviepage2"
  6094.         android:layout_width="match_parent"
  6095.         android:layout_height="0dp"
  6096.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6097.         app:layout_constraintBottom_toBottomOf="parent"
  6098.         app:layout_constraintStart_toStartOf="parent"
  6099.         />
  6100. </androidx.constraintlayout.widget.ConstraintLayout>/>
  6101. </androidx.constraintlayout.widget.ConstraintLayout>super(fragmentActivity);<?xml version="1.0" encoding="utf-8"?>
  6102. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6103.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6104.     xmlns:tools="http://schemas.android.com/tools"
  6105.     android:layout_width="match_parent"
  6106.     android:layout_height="match_parent"
  6107.     tools:context=".ViewPager2TabLayoutActivity">
  6108.    
  6109.     <androidx.fragment.app.FragmentContainerView
  6110. <?xml version="1.0" encoding="utf-8"?>
  6111. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6112.     xmlns:tools="http://schemas.android.com/tools"
  6113.     android:layout_width="match_parent"
  6114.     android:layout_height="match_parent"
  6115.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6116.     tools:context=".tablayout.TabLayoutHomeFragment">
  6117.     <com.google.android.material.tabs.TabLayout
  6118.         android:id="@+id/mytablayout2"
  6119.         android:layout_width="match_parent"
  6120.         android:layout_height="wrap_content"
  6121.         app:tabMode="auto"
  6122.         app:tabGravity="start"
  6123.         app:tabBackground="@color/pink"
  6124.         app:tabTextColor="@color/white"
  6125.         app:layout_constraintStart_toStartOf="parent"
  6126.         app:layout_constraintTop_toTopOf="parent"
  6127.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6128.         />
  6129.     <androidx.viewpager2.widget.ViewPager2
  6130.         android:id="@+id/myviepage2"
  6131.         android:layout_width="match_parent"
  6132.         android:layout_height="0dp"
  6133.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6134.         app:layout_constraintBottom_toBottomOf="parent"
  6135.         app:layout_constraintStart_toStartOf="parent"
  6136.         />
  6137. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  6138. <?xml version="1.0" encoding="utf-8"?>
  6139. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6140.     xmlns:tools="http://schemas.android.com/tools"
  6141.     android:layout_width="match_parent"
  6142.     android:layout_height="match_parent"
  6143.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6144.     tools:context=".tablayout.TabLayoutHomeFragment">
  6145.     <com.google.android.material.tabs.TabLayout
  6146.         android:id="@+id/mytablayout2"
  6147.         android:layout_width="match_parent"
  6148.         android:layout_height="wrap_content"
  6149.         app:tabMode="auto"
  6150.         app:tabGravity="start"
  6151.         app:tabBackground="@color/pink"
  6152.         app:tabTextColor="@color/white"
  6153.         app:layout_constraintStart_toStartOf="parent"
  6154.         app:layout_constraintTop_toTopOf="parent"
  6155.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6156.         />
  6157.     <androidx.viewpager2.widget.ViewPager2
  6158.         android:id="@+id/myviepage2"
  6159.         android:layout_width="match_parent"
  6160.         android:layout_height="0dp"
  6161.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6162.         app:layout_constraintBottom_toBottomOf="parent"
  6163.         app:layout_constraintStart_toStartOf="parent"
  6164.         />
  6165. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  6166. <?xml version="1.0" encoding="utf-8"?>
  6167. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6168.     xmlns:tools="http://schemas.android.com/tools"
  6169.     android:layout_width="match_parent"
  6170.     android:layout_height="match_parent"
  6171.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6172.     tools:context=".tablayout.TabLayoutHomeFragment">
  6173.     <com.google.android.material.tabs.TabLayout
  6174.         android:id="@+id/mytablayout2"
  6175.         android:layout_width="match_parent"
  6176.         android:layout_height="wrap_content"
  6177.         app:tabMode="auto"
  6178.         app:tabGravity="start"
  6179.         app:tabBackground="@color/pink"
  6180.         app:tabTextColor="@color/white"
  6181.         app:layout_constraintStart_toStartOf="parent"
  6182.         app:layout_constraintTop_toTopOf="parent"
  6183.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6184.         />
  6185.     <androidx.viewpager2.widget.ViewPager2
  6186.         android:id="@+id/myviepage2"
  6187.         android:layout_width="match_parent"
  6188.         android:layout_height="0dp"
  6189.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6190.         app:layout_constraintBottom_toBottomOf="parent"
  6191.         app:layout_constraintStart_toStartOf="parent"
  6192.         />
  6193. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  6194. <?xml version="1.0" encoding="utf-8"?>
  6195. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6196.     xmlns:tools="http://schemas.android.com/tools"
  6197.     android:layout_width="match_parent"
  6198.     android:layout_height="match_parent"
  6199.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6200.     tools:context=".tablayout.TabLayoutHomeFragment">
  6201.     <com.google.android.material.tabs.TabLayout
  6202.         android:id="@+id/mytablayout2"
  6203.         android:layout_width="match_parent"
  6204.         android:layout_height="wrap_content"
  6205.         app:tabMode="auto"
  6206.         app:tabGravity="start"
  6207.         app:tabBackground="@color/pink"
  6208.         app:tabTextColor="@color/white"
  6209.         app:layout_constraintStart_toStartOf="parent"
  6210.         app:layout_constraintTop_toTopOf="parent"
  6211.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6212.         />
  6213.     <androidx.viewpager2.widget.ViewPager2
  6214.         android:id="@+id/myviepage2"
  6215.         android:layout_width="match_parent"
  6216.         android:layout_height="0dp"
  6217.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6218.         app:layout_constraintBottom_toBottomOf="parent"
  6219.         app:layout_constraintStart_toStartOf="parent"
  6220.         />
  6221. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  6222. <?xml version="1.0" encoding="utf-8"?>
  6223. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6224.     xmlns:tools="http://schemas.android.com/tools"
  6225.     android:layout_width="match_parent"
  6226.     android:layout_height="match_parent"
  6227.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6228.     tools:context=".tablayout.TabLayoutHomeFragment">
  6229.     <com.google.android.material.tabs.TabLayout
  6230.         android:id="@+id/mytablayout2"
  6231.         android:layout_width="match_parent"
  6232.         android:layout_height="wrap_content"
  6233.         app:tabMode="auto"
  6234.         app:tabGravity="start"
  6235.         app:tabBackground="@color/pink"
  6236.         app:tabTextColor="@color/white"
  6237.         app:layout_constraintStart_toStartOf="parent"
  6238.         app:layout_constraintTop_toTopOf="parent"
  6239.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6240.         />
  6241.     <androidx.viewpager2.widget.ViewPager2
  6242.         android:id="@+id/myviepage2"
  6243.         android:layout_width="match_parent"
  6244.         android:layout_height="0dp"
  6245.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6246.         app:layout_constraintBottom_toBottomOf="parent"
  6247.         app:layout_constraintStart_toStartOf="parent"
  6248.         />
  6249. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  6250.     <com.google.android.material.bottomnavigation.BottomNavigationView
  6251. <?xml version="1.0" encoding="utf-8"?>
  6252. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6253.     xmlns:tools="http://schemas.android.com/tools"
  6254.     android:layout_width="match_parent"
  6255.     android:layout_height="match_parent"
  6256.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6257.     tools:context=".tablayout.TabLayoutHomeFragment">
  6258.     <com.google.android.material.tabs.TabLayout
  6259.         android:id="@+id/mytablayout2"
  6260.         android:layout_width="match_parent"
  6261.         android:layout_height="wrap_content"
  6262.         app:tabMode="auto"
  6263.         app:tabGravity="start"
  6264.         app:tabBackground="@color/pink"
  6265.         app:tabTextColor="@color/white"
  6266.         app:layout_constraintStart_toStartOf="parent"
  6267.         app:layout_constraintTop_toTopOf="parent"
  6268.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6269.         />
  6270.     <androidx.viewpager2.widget.ViewPager2
  6271.         android:id="@+id/myviepage2"
  6272.         android:layout_width="match_parent"
  6273.         android:layout_height="0dp"
  6274.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6275.         app:layout_constraintBottom_toBottomOf="parent"
  6276.         app:layout_constraintStart_toStartOf="parent"
  6277.         />
  6278. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  6279. <?xml version="1.0" encoding="utf-8"?>
  6280. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6281.     xmlns:tools="http://schemas.android.com/tools"
  6282.     android:layout_width="match_parent"
  6283.     android:layout_height="match_parent"
  6284.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6285.     tools:context=".tablayout.TabLayoutHomeFragment">
  6286.     <com.google.android.material.tabs.TabLayout
  6287.         android:id="@+id/mytablayout2"
  6288.         android:layout_width="match_parent"
  6289.         android:layout_height="wrap_content"
  6290.         app:tabMode="auto"
  6291.         app:tabGravity="start"
  6292.         app:tabBackground="@color/pink"
  6293.         app:tabTextColor="@color/white"
  6294.         app:layout_constraintStart_toStartOf="parent"
  6295.         app:layout_constraintTop_toTopOf="parent"
  6296.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6297.         />
  6298.     <androidx.viewpager2.widget.ViewPager2
  6299.         android:id="@+id/myviepage2"
  6300.         android:layout_width="match_parent"
  6301.         android:layout_height="0dp"
  6302.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6303.         app:layout_constraintBottom_toBottomOf="parent"
  6304.         app:layout_constraintStart_toStartOf="parent"
  6305.         />
  6306. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  6307. <?xml version="1.0" encoding="utf-8"?>
  6308. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6309.     xmlns:tools="http://schemas.android.com/tools"
  6310.     android:layout_width="match_parent"
  6311.     android:layout_height="match_parent"
  6312.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6313.     tools:context=".tablayout.TabLayoutHomeFragment">
  6314.     <com.google.android.material.tabs.TabLayout
  6315.         android:id="@+id/mytablayout2"
  6316.         android:layout_width="match_parent"
  6317.         android:layout_height="wrap_content"
  6318.         app:tabMode="auto"
  6319.         app:tabGravity="start"
  6320.         app:tabBackground="@color/pink"
  6321.         app:tabTextColor="@color/white"
  6322.         app:layout_constraintStart_toStartOf="parent"
  6323.         app:layout_constraintTop_toTopOf="parent"
  6324.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6325.         />
  6326.     <androidx.viewpager2.widget.ViewPager2
  6327.         android:id="@+id/myviepage2"
  6328.         android:layout_width="match_parent"
  6329.         android:layout_height="0dp"
  6330.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6331.         app:layout_constraintBottom_toBottomOf="parent"
  6332.         app:layout_constraintStart_toStartOf="parent"
  6333.         />
  6334. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  6335. <?xml version="1.0" encoding="utf-8"?>
  6336. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6337.     xmlns:tools="http://schemas.android.com/tools"
  6338.     android:layout_width="match_parent"
  6339.     android:layout_height="match_parent"
  6340.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6341.     tools:context=".tablayout.TabLayoutHomeFragment">
  6342.     <com.google.android.material.tabs.TabLayout
  6343.         android:id="@+id/mytablayout2"
  6344.         android:layout_width="match_parent"
  6345.         android:layout_height="wrap_content"
  6346.         app:tabMode="auto"
  6347.         app:tabGravity="start"
  6348.         app:tabBackground="@color/pink"
  6349.         app:tabTextColor="@color/white"
  6350.         app:layout_constraintStart_toStartOf="parent"
  6351.         app:layout_constraintTop_toTopOf="parent"
  6352.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6353.         />
  6354.     <androidx.viewpager2.widget.ViewPager2
  6355.         android:id="@+id/myviepage2"
  6356.         android:layout_width="match_parent"
  6357.         android:layout_height="0dp"
  6358.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6359.         app:layout_constraintBottom_toBottomOf="parent"
  6360.         app:layout_constraintStart_toStartOf="parent"
  6361.         />
  6362. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  6363. <?xml version="1.0" encoding="utf-8"?>
  6364. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6365.     xmlns:tools="http://schemas.android.com/tools"
  6366.     android:layout_width="match_parent"
  6367.     android:layout_height="match_parent"
  6368.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6369.     tools:context=".tablayout.TabLayoutHomeFragment">
  6370.     <com.google.android.material.tabs.TabLayout
  6371.         android:id="@+id/mytablayout2"
  6372.         android:layout_width="match_parent"
  6373.         android:layout_height="wrap_content"
  6374.         app:tabMode="auto"
  6375.         app:tabGravity="start"
  6376.         app:tabBackground="@color/pink"
  6377.         app:tabTextColor="@color/white"
  6378.         app:layout_constraintStart_toStartOf="parent"
  6379.         app:layout_constraintTop_toTopOf="parent"
  6380.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6381.         />
  6382.     <androidx.viewpager2.widget.ViewPager2
  6383.         android:id="@+id/myviepage2"
  6384.         android:layout_width="match_parent"
  6385.         android:layout_height="0dp"
  6386.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6387.         app:layout_constraintBottom_toBottomOf="parent"
  6388.         app:layout_constraintStart_toStartOf="parent"
  6389.         />
  6390. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  6391. <?xml version="1.0" encoding="utf-8"?>
  6392. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6393.     xmlns:tools="http://schemas.android.com/tools"
  6394.     android:layout_width="match_parent"
  6395.     android:layout_height="match_parent"
  6396.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6397.     tools:context=".tablayout.TabLayoutHomeFragment">
  6398.     <com.google.android.material.tabs.TabLayout
  6399.         android:id="@+id/mytablayout2"
  6400.         android:layout_width="match_parent"
  6401.         android:layout_height="wrap_content"
  6402.         app:tabMode="auto"
  6403.         app:tabGravity="start"
  6404.         app:tabBackground="@color/pink"
  6405.         app:tabTextColor="@color/white"
  6406.         app:layout_constraintStart_toStartOf="parent"
  6407.         app:layout_constraintTop_toTopOf="parent"
  6408.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6409.         />
  6410.     <androidx.viewpager2.widget.ViewPager2
  6411.         android:id="@+id/myviepage2"
  6412.         android:layout_width="match_parent"
  6413.         android:layout_height="0dp"
  6414.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6415.         app:layout_constraintBottom_toBottomOf="parent"
  6416.         app:layout_constraintStart_toStartOf="parent"
  6417.         />
  6418. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  6419. <?xml version="1.0" encoding="utf-8"?>
  6420. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6421.     xmlns:tools="http://schemas.android.com/tools"
  6422.     android:layout_width="match_parent"
  6423.     android:layout_height="match_parent"
  6424.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6425.     tools:context=".tablayout.TabLayoutHomeFragment">
  6426.     <com.google.android.material.tabs.TabLayout
  6427.         android:id="@+id/mytablayout2"
  6428.         android:layout_width="match_parent"
  6429.         android:layout_height="wrap_content"
  6430.         app:tabMode="auto"
  6431.         app:tabGravity="start"
  6432.         app:tabBackground="@color/pink"
  6433.         app:tabTextColor="@color/white"
  6434.         app:layout_constraintStart_toStartOf="parent"
  6435.         app:layout_constraintTop_toTopOf="parent"
  6436.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6437.         />
  6438.     <androidx.viewpager2.widget.ViewPager2
  6439.         android:id="@+id/myviepage2"
  6440.         android:layout_width="match_parent"
  6441.         android:layout_height="0dp"
  6442.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6443.         app:layout_constraintBottom_toBottomOf="parent"
  6444.         app:layout_constraintStart_toStartOf="parent"
  6445.         />
  6446. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  6447. <?xml version="1.0" encoding="utf-8"?>
  6448. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6449.     xmlns:tools="http://schemas.android.com/tools"
  6450.     android:layout_width="match_parent"
  6451.     android:layout_height="match_parent"
  6452.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6453.     tools:context=".tablayout.TabLayoutHomeFragment">
  6454.     <com.google.android.material.tabs.TabLayout
  6455.         android:id="@+id/mytablayout2"
  6456.         android:layout_width="match_parent"
  6457.         android:layout_height="wrap_content"
  6458.         app:tabMode="auto"
  6459.         app:tabGravity="start"
  6460.         app:tabBackground="@color/pink"
  6461.         app:tabTextColor="@color/white"
  6462.         app:layout_constraintStart_toStartOf="parent"
  6463.         app:layout_constraintTop_toTopOf="parent"
  6464.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6465.         />
  6466.     <androidx.viewpager2.widget.ViewPager2
  6467.         android:id="@+id/myviepage2"
  6468.         android:layout_width="match_parent"
  6469.         android:layout_height="0dp"
  6470.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6471.         app:layout_constraintBottom_toBottomOf="parent"
  6472.         app:layout_constraintStart_toStartOf="parent"
  6473.         />
  6474. </androidx.constraintlayout.widget.ConstraintLayout>/>
  6475. </androidx.constraintlayout.widget.ConstraintLayout>this.fragmentList = fragmentList;<?xml version="1.0" encoding="utf-8"?>
  6476. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6477.     xmlns:tools="http://schemas.android.com/tools"
  6478.     android:layout_width="match_parent"
  6479.     android:layout_height="match_parent"
  6480.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6481.     tools:context=".tablayout.TabLayoutHomeFragment">
  6482.     <com.google.android.material.tabs.TabLayout
  6483.         android:id="@+id/mytablayout2"
  6484.         android:layout_width="match_parent"
  6485.         android:layout_height="wrap_content"
  6486.         app:tabMode="auto"
  6487.         app:tabGravity="start"
  6488.         app:tabBackground="@color/pink"
  6489.         app:tabTextColor="@color/white"
  6490.         app:layout_constraintStart_toStartOf="parent"
  6491.         app:layout_constraintTop_toTopOf="parent"
  6492.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6493.         />
  6494.     <androidx.viewpager2.widget.ViewPager2
  6495.         android:id="@+id/myviepage2"
  6496.         android:layout_width="match_parent"
  6497.         android:layout_height="0dp"
  6498.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6499.         app:layout_constraintBottom_toBottomOf="parent"
  6500.         app:layout_constraintStart_toStartOf="parent"
  6501.         />
  6502. </androidx.constraintlayout.widget.ConstraintLayout>}<?xml version="1.0" encoding="utf-8"?>
  6503. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6504.     xmlns:tools="http://schemas.android.com/tools"
  6505.     android:layout_width="match_parent"
  6506.     android:layout_height="match_parent"
  6507.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6508.     tools:context=".tablayout.TabLayoutHomeFragment">
  6509.     <com.google.android.material.tabs.TabLayout
  6510.         android:id="@+id/mytablayout2"
  6511.         android:layout_width="match_parent"
  6512.         android:layout_height="wrap_content"
  6513.         app:tabMode="auto"
  6514.         app:tabGravity="start"
  6515.         app:tabBackground="@color/pink"
  6516.         app:tabTextColor="@color/white"
  6517.         app:layout_constraintStart_toStartOf="parent"
  6518.         app:layout_constraintTop_toTopOf="parent"
  6519.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6520.         />
  6521.     <androidx.viewpager2.widget.ViewPager2
  6522.         android:id="@+id/myviepage2"
  6523.         android:layout_width="match_parent"
  6524.         android:layout_height="0dp"
  6525.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6526.         app:layout_constraintBottom_toBottomOf="parent"
  6527.         app:layout_constraintStart_toStartOf="parent"
  6528.         />
  6529. </androidx.constraintlayout.widget.ConstraintLayout>@NonNull<?xml version="1.0" encoding="utf-8"?>
  6530. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6531.     xmlns:tools="http://schemas.android.com/tools"
  6532.     android:layout_width="match_parent"
  6533.     android:layout_height="match_parent"
  6534.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6535.     tools:context=".tablayout.TabLayoutHomeFragment">
  6536.     <com.google.android.material.tabs.TabLayout
  6537.         android:id="@+id/mytablayout2"
  6538.         android:layout_width="match_parent"
  6539.         android:layout_height="wrap_content"
  6540.         app:tabMode="auto"
  6541.         app:tabGravity="start"
  6542.         app:tabBackground="@color/pink"
  6543.         app:tabTextColor="@color/white"
  6544.         app:layout_constraintStart_toStartOf="parent"
  6545.         app:layout_constraintTop_toTopOf="parent"
  6546.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6547.         />
  6548.     <androidx.viewpager2.widget.ViewPager2
  6549.         android:id="@+id/myviepage2"
  6550.         android:layout_width="match_parent"
  6551.         android:layout_height="0dp"
  6552.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6553.         app:layout_constraintBottom_toBottomOf="parent"
  6554.         app:layout_constraintStart_toStartOf="parent"
  6555.         />
  6556. </androidx.constraintlayout.widget.ConstraintLayout>@Override<?xml version="1.0" encoding="utf-8"?>
  6557. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6558.     xmlns:tools="http://schemas.android.com/tools"
  6559.     android:layout_width="match_parent"
  6560.     android:layout_height="match_parent"
  6561.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6562.     tools:context=".tablayout.TabLayoutHomeFragment">
  6563.     <com.google.android.material.tabs.TabLayout
  6564.         android:id="@+id/mytablayout2"
  6565.         android:layout_width="match_parent"
  6566.         android:layout_height="wrap_content"
  6567.         app:tabMode="auto"
  6568.         app:tabGravity="start"
  6569.         app:tabBackground="@color/pink"
  6570.         app:tabTextColor="@color/white"
  6571.         app:layout_constraintStart_toStartOf="parent"
  6572.         app:layout_constraintTop_toTopOf="parent"
  6573.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6574.         />
  6575.     <androidx.viewpager2.widget.ViewPager2
  6576.         android:id="@+id/myviepage2"
  6577.         android:layout_width="match_parent"
  6578.         android:layout_height="0dp"
  6579.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6580.         app:layout_constraintBottom_toBottomOf="parent"
  6581.         app:layout_constraintStart_toStartOf="parent"
  6582.         />
  6583. </androidx.constraintlayout.widget.ConstraintLayout>public Fragment createFragment(int position) {<?xml version="1.0" encoding="utf-8"?>
  6584. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6585.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6586.     xmlns:tools="http://schemas.android.com/tools"
  6587.     android:layout_width="match_parent"
  6588.     android:layout_height="match_parent"
  6589.     tools:context=".ViewPager2TabLayoutActivity">
  6590.    
  6591.     <androidx.fragment.app.FragmentContainerView
  6592. <?xml version="1.0" encoding="utf-8"?>
  6593. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6594.     xmlns:tools="http://schemas.android.com/tools"
  6595.     android:layout_width="match_parent"
  6596.     android:layout_height="match_parent"
  6597.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6598.     tools:context=".tablayout.TabLayoutHomeFragment">
  6599.     <com.google.android.material.tabs.TabLayout
  6600.         android:id="@+id/mytablayout2"
  6601.         android:layout_width="match_parent"
  6602.         android:layout_height="wrap_content"
  6603.         app:tabMode="auto"
  6604.         app:tabGravity="start"
  6605.         app:tabBackground="@color/pink"
  6606.         app:tabTextColor="@color/white"
  6607.         app:layout_constraintStart_toStartOf="parent"
  6608.         app:layout_constraintTop_toTopOf="parent"
  6609.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6610.         />
  6611.     <androidx.viewpager2.widget.ViewPager2
  6612.         android:id="@+id/myviepage2"
  6613.         android:layout_width="match_parent"
  6614.         android:layout_height="0dp"
  6615.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6616.         app:layout_constraintBottom_toBottomOf="parent"
  6617.         app:layout_constraintStart_toStartOf="parent"
  6618.         />
  6619. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  6620. <?xml version="1.0" encoding="utf-8"?>
  6621. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6622.     xmlns:tools="http://schemas.android.com/tools"
  6623.     android:layout_width="match_parent"
  6624.     android:layout_height="match_parent"
  6625.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6626.     tools:context=".tablayout.TabLayoutHomeFragment">
  6627.     <com.google.android.material.tabs.TabLayout
  6628.         android:id="@+id/mytablayout2"
  6629.         android:layout_width="match_parent"
  6630.         android:layout_height="wrap_content"
  6631.         app:tabMode="auto"
  6632.         app:tabGravity="start"
  6633.         app:tabBackground="@color/pink"
  6634.         app:tabTextColor="@color/white"
  6635.         app:layout_constraintStart_toStartOf="parent"
  6636.         app:layout_constraintTop_toTopOf="parent"
  6637.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6638.         />
  6639.     <androidx.viewpager2.widget.ViewPager2
  6640.         android:id="@+id/myviepage2"
  6641.         android:layout_width="match_parent"
  6642.         android:layout_height="0dp"
  6643.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6644.         app:layout_constraintBottom_toBottomOf="parent"
  6645.         app:layout_constraintStart_toStartOf="parent"
  6646.         />
  6647. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  6648. <?xml version="1.0" encoding="utf-8"?>
  6649. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6650.     xmlns:tools="http://schemas.android.com/tools"
  6651.     android:layout_width="match_parent"
  6652.     android:layout_height="match_parent"
  6653.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6654.     tools:context=".tablayout.TabLayoutHomeFragment">
  6655.     <com.google.android.material.tabs.TabLayout
  6656.         android:id="@+id/mytablayout2"
  6657.         android:layout_width="match_parent"
  6658.         android:layout_height="wrap_content"
  6659.         app:tabMode="auto"
  6660.         app:tabGravity="start"
  6661.         app:tabBackground="@color/pink"
  6662.         app:tabTextColor="@color/white"
  6663.         app:layout_constraintStart_toStartOf="parent"
  6664.         app:layout_constraintTop_toTopOf="parent"
  6665.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6666.         />
  6667.     <androidx.viewpager2.widget.ViewPager2
  6668.         android:id="@+id/myviepage2"
  6669.         android:layout_width="match_parent"
  6670.         android:layout_height="0dp"
  6671.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6672.         app:layout_constraintBottom_toBottomOf="parent"
  6673.         app:layout_constraintStart_toStartOf="parent"
  6674.         />
  6675. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  6676. <?xml version="1.0" encoding="utf-8"?>
  6677. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6678.     xmlns:tools="http://schemas.android.com/tools"
  6679.     android:layout_width="match_parent"
  6680.     android:layout_height="match_parent"
  6681.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6682.     tools:context=".tablayout.TabLayoutHomeFragment">
  6683.     <com.google.android.material.tabs.TabLayout
  6684.         android:id="@+id/mytablayout2"
  6685.         android:layout_width="match_parent"
  6686.         android:layout_height="wrap_content"
  6687.         app:tabMode="auto"
  6688.         app:tabGravity="start"
  6689.         app:tabBackground="@color/pink"
  6690.         app:tabTextColor="@color/white"
  6691.         app:layout_constraintStart_toStartOf="parent"
  6692.         app:layout_constraintTop_toTopOf="parent"
  6693.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6694.         />
  6695.     <androidx.viewpager2.widget.ViewPager2
  6696.         android:id="@+id/myviepage2"
  6697.         android:layout_width="match_parent"
  6698.         android:layout_height="0dp"
  6699.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6700.         app:layout_constraintBottom_toBottomOf="parent"
  6701.         app:layout_constraintStart_toStartOf="parent"
  6702.         />
  6703. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  6704. <?xml version="1.0" encoding="utf-8"?>
  6705. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6706.     xmlns:tools="http://schemas.android.com/tools"
  6707.     android:layout_width="match_parent"
  6708.     android:layout_height="match_parent"
  6709.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6710.     tools:context=".tablayout.TabLayoutHomeFragment">
  6711.     <com.google.android.material.tabs.TabLayout
  6712.         android:id="@+id/mytablayout2"
  6713.         android:layout_width="match_parent"
  6714.         android:layout_height="wrap_content"
  6715.         app:tabMode="auto"
  6716.         app:tabGravity="start"
  6717.         app:tabBackground="@color/pink"
  6718.         app:tabTextColor="@color/white"
  6719.         app:layout_constraintStart_toStartOf="parent"
  6720.         app:layout_constraintTop_toTopOf="parent"
  6721.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6722.         />
  6723.     <androidx.viewpager2.widget.ViewPager2
  6724.         android:id="@+id/myviepage2"
  6725.         android:layout_width="match_parent"
  6726.         android:layout_height="0dp"
  6727.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6728.         app:layout_constraintBottom_toBottomOf="parent"
  6729.         app:layout_constraintStart_toStartOf="parent"
  6730.         />
  6731. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  6732.     <com.google.android.material.bottomnavigation.BottomNavigationView
  6733. <?xml version="1.0" encoding="utf-8"?>
  6734. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6735.     xmlns:tools="http://schemas.android.com/tools"
  6736.     android:layout_width="match_parent"
  6737.     android:layout_height="match_parent"
  6738.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6739.     tools:context=".tablayout.TabLayoutHomeFragment">
  6740.     <com.google.android.material.tabs.TabLayout
  6741.         android:id="@+id/mytablayout2"
  6742.         android:layout_width="match_parent"
  6743.         android:layout_height="wrap_content"
  6744.         app:tabMode="auto"
  6745.         app:tabGravity="start"
  6746.         app:tabBackground="@color/pink"
  6747.         app:tabTextColor="@color/white"
  6748.         app:layout_constraintStart_toStartOf="parent"
  6749.         app:layout_constraintTop_toTopOf="parent"
  6750.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6751.         />
  6752.     <androidx.viewpager2.widget.ViewPager2
  6753.         android:id="@+id/myviepage2"
  6754.         android:layout_width="match_parent"
  6755.         android:layout_height="0dp"
  6756.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6757.         app:layout_constraintBottom_toBottomOf="parent"
  6758.         app:layout_constraintStart_toStartOf="parent"
  6759.         />
  6760. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  6761. <?xml version="1.0" encoding="utf-8"?>
  6762. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6763.     xmlns:tools="http://schemas.android.com/tools"
  6764.     android:layout_width="match_parent"
  6765.     android:layout_height="match_parent"
  6766.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6767.     tools:context=".tablayout.TabLayoutHomeFragment">
  6768.     <com.google.android.material.tabs.TabLayout
  6769.         android:id="@+id/mytablayout2"
  6770.         android:layout_width="match_parent"
  6771.         android:layout_height="wrap_content"
  6772.         app:tabMode="auto"
  6773.         app:tabGravity="start"
  6774.         app:tabBackground="@color/pink"
  6775.         app:tabTextColor="@color/white"
  6776.         app:layout_constraintStart_toStartOf="parent"
  6777.         app:layout_constraintTop_toTopOf="parent"
  6778.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6779.         />
  6780.     <androidx.viewpager2.widget.ViewPager2
  6781.         android:id="@+id/myviepage2"
  6782.         android:layout_width="match_parent"
  6783.         android:layout_height="0dp"
  6784.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6785.         app:layout_constraintBottom_toBottomOf="parent"
  6786.         app:layout_constraintStart_toStartOf="parent"
  6787.         />
  6788. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  6789. <?xml version="1.0" encoding="utf-8"?>
  6790. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6791.     xmlns:tools="http://schemas.android.com/tools"
  6792.     android:layout_width="match_parent"
  6793.     android:layout_height="match_parent"
  6794.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6795.     tools:context=".tablayout.TabLayoutHomeFragment">
  6796.     <com.google.android.material.tabs.TabLayout
  6797.         android:id="@+id/mytablayout2"
  6798.         android:layout_width="match_parent"
  6799.         android:layout_height="wrap_content"
  6800.         app:tabMode="auto"
  6801.         app:tabGravity="start"
  6802.         app:tabBackground="@color/pink"
  6803.         app:tabTextColor="@color/white"
  6804.         app:layout_constraintStart_toStartOf="parent"
  6805.         app:layout_constraintTop_toTopOf="parent"
  6806.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6807.         />
  6808.     <androidx.viewpager2.widget.ViewPager2
  6809.         android:id="@+id/myviepage2"
  6810.         android:layout_width="match_parent"
  6811.         android:layout_height="0dp"
  6812.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6813.         app:layout_constraintBottom_toBottomOf="parent"
  6814.         app:layout_constraintStart_toStartOf="parent"
  6815.         />
  6816. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  6817. <?xml version="1.0" encoding="utf-8"?>
  6818. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6819.     xmlns:tools="http://schemas.android.com/tools"
  6820.     android:layout_width="match_parent"
  6821.     android:layout_height="match_parent"
  6822.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6823.     tools:context=".tablayout.TabLayoutHomeFragment">
  6824.     <com.google.android.material.tabs.TabLayout
  6825.         android:id="@+id/mytablayout2"
  6826.         android:layout_width="match_parent"
  6827.         android:layout_height="wrap_content"
  6828.         app:tabMode="auto"
  6829.         app:tabGravity="start"
  6830.         app:tabBackground="@color/pink"
  6831.         app:tabTextColor="@color/white"
  6832.         app:layout_constraintStart_toStartOf="parent"
  6833.         app:layout_constraintTop_toTopOf="parent"
  6834.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6835.         />
  6836.     <androidx.viewpager2.widget.ViewPager2
  6837.         android:id="@+id/myviepage2"
  6838.         android:layout_width="match_parent"
  6839.         android:layout_height="0dp"
  6840.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6841.         app:layout_constraintBottom_toBottomOf="parent"
  6842.         app:layout_constraintStart_toStartOf="parent"
  6843.         />
  6844. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  6845. <?xml version="1.0" encoding="utf-8"?>
  6846. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6847.     xmlns:tools="http://schemas.android.com/tools"
  6848.     android:layout_width="match_parent"
  6849.     android:layout_height="match_parent"
  6850.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6851.     tools:context=".tablayout.TabLayoutHomeFragment">
  6852.     <com.google.android.material.tabs.TabLayout
  6853.         android:id="@+id/mytablayout2"
  6854.         android:layout_width="match_parent"
  6855.         android:layout_height="wrap_content"
  6856.         app:tabMode="auto"
  6857.         app:tabGravity="start"
  6858.         app:tabBackground="@color/pink"
  6859.         app:tabTextColor="@color/white"
  6860.         app:layout_constraintStart_toStartOf="parent"
  6861.         app:layout_constraintTop_toTopOf="parent"
  6862.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6863.         />
  6864.     <androidx.viewpager2.widget.ViewPager2
  6865.         android:id="@+id/myviepage2"
  6866.         android:layout_width="match_parent"
  6867.         android:layout_height="0dp"
  6868.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6869.         app:layout_constraintBottom_toBottomOf="parent"
  6870.         app:layout_constraintStart_toStartOf="parent"
  6871.         />
  6872. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  6873. <?xml version="1.0" encoding="utf-8"?>
  6874. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6875.     xmlns:tools="http://schemas.android.com/tools"
  6876.     android:layout_width="match_parent"
  6877.     android:layout_height="match_parent"
  6878.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6879.     tools:context=".tablayout.TabLayoutHomeFragment">
  6880.     <com.google.android.material.tabs.TabLayout
  6881.         android:id="@+id/mytablayout2"
  6882.         android:layout_width="match_parent"
  6883.         android:layout_height="wrap_content"
  6884.         app:tabMode="auto"
  6885.         app:tabGravity="start"
  6886.         app:tabBackground="@color/pink"
  6887.         app:tabTextColor="@color/white"
  6888.         app:layout_constraintStart_toStartOf="parent"
  6889.         app:layout_constraintTop_toTopOf="parent"
  6890.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6891.         />
  6892.     <androidx.viewpager2.widget.ViewPager2
  6893.         android:id="@+id/myviepage2"
  6894.         android:layout_width="match_parent"
  6895.         android:layout_height="0dp"
  6896.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6897.         app:layout_constraintBottom_toBottomOf="parent"
  6898.         app:layout_constraintStart_toStartOf="parent"
  6899.         />
  6900. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  6901. <?xml version="1.0" encoding="utf-8"?>
  6902. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6903.     xmlns:tools="http://schemas.android.com/tools"
  6904.     android:layout_width="match_parent"
  6905.     android:layout_height="match_parent"
  6906.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6907.     tools:context=".tablayout.TabLayoutHomeFragment">
  6908.     <com.google.android.material.tabs.TabLayout
  6909.         android:id="@+id/mytablayout2"
  6910.         android:layout_width="match_parent"
  6911.         android:layout_height="wrap_content"
  6912.         app:tabMode="auto"
  6913.         app:tabGravity="start"
  6914.         app:tabBackground="@color/pink"
  6915.         app:tabTextColor="@color/white"
  6916.         app:layout_constraintStart_toStartOf="parent"
  6917.         app:layout_constraintTop_toTopOf="parent"
  6918.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6919.         />
  6920.     <androidx.viewpager2.widget.ViewPager2
  6921.         android:id="@+id/myviepage2"
  6922.         android:layout_width="match_parent"
  6923.         android:layout_height="0dp"
  6924.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6925.         app:layout_constraintBottom_toBottomOf="parent"
  6926.         app:layout_constraintStart_toStartOf="parent"
  6927.         />
  6928. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  6929. <?xml version="1.0" encoding="utf-8"?>
  6930. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6931.     xmlns:tools="http://schemas.android.com/tools"
  6932.     android:layout_width="match_parent"
  6933.     android:layout_height="match_parent"
  6934.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6935.     tools:context=".tablayout.TabLayoutHomeFragment">
  6936.     <com.google.android.material.tabs.TabLayout
  6937.         android:id="@+id/mytablayout2"
  6938.         android:layout_width="match_parent"
  6939.         android:layout_height="wrap_content"
  6940.         app:tabMode="auto"
  6941.         app:tabGravity="start"
  6942.         app:tabBackground="@color/pink"
  6943.         app:tabTextColor="@color/white"
  6944.         app:layout_constraintStart_toStartOf="parent"
  6945.         app:layout_constraintTop_toTopOf="parent"
  6946.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6947.         />
  6948.     <androidx.viewpager2.widget.ViewPager2
  6949.         android:id="@+id/myviepage2"
  6950.         android:layout_width="match_parent"
  6951.         android:layout_height="0dp"
  6952.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6953.         app:layout_constraintBottom_toBottomOf="parent"
  6954.         app:layout_constraintStart_toStartOf="parent"
  6955.         />
  6956. </androidx.constraintlayout.widget.ConstraintLayout>/>
  6957. </androidx.constraintlayout.widget.ConstraintLayout>return fragmentList.get(position);<?xml version="1.0" encoding="utf-8"?>
  6958. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6959.     xmlns:tools="http://schemas.android.com/tools"
  6960.     android:layout_width="match_parent"
  6961.     android:layout_height="match_parent"
  6962.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6963.     tools:context=".tablayout.TabLayoutHomeFragment">
  6964.     <com.google.android.material.tabs.TabLayout
  6965.         android:id="@+id/mytablayout2"
  6966.         android:layout_width="match_parent"
  6967.         android:layout_height="wrap_content"
  6968.         app:tabMode="auto"
  6969.         app:tabGravity="start"
  6970.         app:tabBackground="@color/pink"
  6971.         app:tabTextColor="@color/white"
  6972.         app:layout_constraintStart_toStartOf="parent"
  6973.         app:layout_constraintTop_toTopOf="parent"
  6974.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6975.         />
  6976.     <androidx.viewpager2.widget.ViewPager2
  6977.         android:id="@+id/myviepage2"
  6978.         android:layout_width="match_parent"
  6979.         android:layout_height="0dp"
  6980.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6981.         app:layout_constraintBottom_toBottomOf="parent"
  6982.         app:layout_constraintStart_toStartOf="parent"
  6983.         />
  6984. </androidx.constraintlayout.widget.ConstraintLayout>}<?xml version="1.0" encoding="utf-8"?>
  6985. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6986.     xmlns:tools="http://schemas.android.com/tools"
  6987.     android:layout_width="match_parent"
  6988.     android:layout_height="match_parent"
  6989.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6990.     tools:context=".tablayout.TabLayoutHomeFragment">
  6991.     <com.google.android.material.tabs.TabLayout
  6992.         android:id="@+id/mytablayout2"
  6993.         android:layout_width="match_parent"
  6994.         android:layout_height="wrap_content"
  6995.         app:tabMode="auto"
  6996.         app:tabGravity="start"
  6997.         app:tabBackground="@color/pink"
  6998.         app:tabTextColor="@color/white"
  6999.         app:layout_constraintStart_toStartOf="parent"
  7000.         app:layout_constraintTop_toTopOf="parent"
  7001.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7002.         />
  7003.     <androidx.viewpager2.widget.ViewPager2
  7004.         android:id="@+id/myviepage2"
  7005.         android:layout_width="match_parent"
  7006.         android:layout_height="0dp"
  7007.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7008.         app:layout_constraintBottom_toBottomOf="parent"
  7009.         app:layout_constraintStart_toStartOf="parent"
  7010.         />
  7011. </androidx.constraintlayout.widget.ConstraintLayout>@Override<?xml version="1.0" encoding="utf-8"?>
  7012. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7013.     xmlns:tools="http://schemas.android.com/tools"
  7014.     android:layout_width="match_parent"
  7015.     android:layout_height="match_parent"
  7016.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7017.     tools:context=".tablayout.TabLayoutHomeFragment">
  7018.     <com.google.android.material.tabs.TabLayout
  7019.         android:id="@+id/mytablayout2"
  7020.         android:layout_width="match_parent"
  7021.         android:layout_height="wrap_content"
  7022.         app:tabMode="auto"
  7023.         app:tabGravity="start"
  7024.         app:tabBackground="@color/pink"
  7025.         app:tabTextColor="@color/white"
  7026.         app:layout_constraintStart_toStartOf="parent"
  7027.         app:layout_constraintTop_toTopOf="parent"
  7028.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7029.         />
  7030.     <androidx.viewpager2.widget.ViewPager2
  7031.         android:id="@+id/myviepage2"
  7032.         android:layout_width="match_parent"
  7033.         android:layout_height="0dp"
  7034.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7035.         app:layout_constraintBottom_toBottomOf="parent"
  7036.         app:layout_constraintStart_toStartOf="parent"
  7037.         />
  7038. </androidx.constraintlayout.widget.ConstraintLayout>public int getItemCount() {<?xml version="1.0" encoding="utf-8"?>
  7039. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7040.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7041.     xmlns:tools="http://schemas.android.com/tools"
  7042.     android:layout_width="match_parent"
  7043.     android:layout_height="match_parent"
  7044.     tools:context=".ViewPager2TabLayoutActivity">
  7045.    
  7046.     <androidx.fragment.app.FragmentContainerView
  7047. <?xml version="1.0" encoding="utf-8"?>
  7048. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7049.     xmlns:tools="http://schemas.android.com/tools"
  7050.     android:layout_width="match_parent"
  7051.     android:layout_height="match_parent"
  7052.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7053.     tools:context=".tablayout.TabLayoutHomeFragment">
  7054.     <com.google.android.material.tabs.TabLayout
  7055.         android:id="@+id/mytablayout2"
  7056.         android:layout_width="match_parent"
  7057.         android:layout_height="wrap_content"
  7058.         app:tabMode="auto"
  7059.         app:tabGravity="start"
  7060.         app:tabBackground="@color/pink"
  7061.         app:tabTextColor="@color/white"
  7062.         app:layout_constraintStart_toStartOf="parent"
  7063.         app:layout_constraintTop_toTopOf="parent"
  7064.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7065.         />
  7066.     <androidx.viewpager2.widget.ViewPager2
  7067.         android:id="@+id/myviepage2"
  7068.         android:layout_width="match_parent"
  7069.         android:layout_height="0dp"
  7070.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7071.         app:layout_constraintBottom_toBottomOf="parent"
  7072.         app:layout_constraintStart_toStartOf="parent"
  7073.         />
  7074. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  7075. <?xml version="1.0" encoding="utf-8"?>
  7076. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7077.     xmlns:tools="http://schemas.android.com/tools"
  7078.     android:layout_width="match_parent"
  7079.     android:layout_height="match_parent"
  7080.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7081.     tools:context=".tablayout.TabLayoutHomeFragment">
  7082.     <com.google.android.material.tabs.TabLayout
  7083.         android:id="@+id/mytablayout2"
  7084.         android:layout_width="match_parent"
  7085.         android:layout_height="wrap_content"
  7086.         app:tabMode="auto"
  7087.         app:tabGravity="start"
  7088.         app:tabBackground="@color/pink"
  7089.         app:tabTextColor="@color/white"
  7090.         app:layout_constraintStart_toStartOf="parent"
  7091.         app:layout_constraintTop_toTopOf="parent"
  7092.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7093.         />
  7094.     <androidx.viewpager2.widget.ViewPager2
  7095.         android:id="@+id/myviepage2"
  7096.         android:layout_width="match_parent"
  7097.         android:layout_height="0dp"
  7098.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7099.         app:layout_constraintBottom_toBottomOf="parent"
  7100.         app:layout_constraintStart_toStartOf="parent"
  7101.         />
  7102. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  7103. <?xml version="1.0" encoding="utf-8"?>
  7104. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7105.     xmlns:tools="http://schemas.android.com/tools"
  7106.     android:layout_width="match_parent"
  7107.     android:layout_height="match_parent"
  7108.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7109.     tools:context=".tablayout.TabLayoutHomeFragment">
  7110.     <com.google.android.material.tabs.TabLayout
  7111.         android:id="@+id/mytablayout2"
  7112.         android:layout_width="match_parent"
  7113.         android:layout_height="wrap_content"
  7114.         app:tabMode="auto"
  7115.         app:tabGravity="start"
  7116.         app:tabBackground="@color/pink"
  7117.         app:tabTextColor="@color/white"
  7118.         app:layout_constraintStart_toStartOf="parent"
  7119.         app:layout_constraintTop_toTopOf="parent"
  7120.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7121.         />
  7122.     <androidx.viewpager2.widget.ViewPager2
  7123.         android:id="@+id/myviepage2"
  7124.         android:layout_width="match_parent"
  7125.         android:layout_height="0dp"
  7126.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7127.         app:layout_constraintBottom_toBottomOf="parent"
  7128.         app:layout_constraintStart_toStartOf="parent"
  7129.         />
  7130. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  7131. <?xml version="1.0" encoding="utf-8"?>
  7132. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7133.     xmlns:tools="http://schemas.android.com/tools"
  7134.     android:layout_width="match_parent"
  7135.     android:layout_height="match_parent"
  7136.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7137.     tools:context=".tablayout.TabLayoutHomeFragment">
  7138.     <com.google.android.material.tabs.TabLayout
  7139.         android:id="@+id/mytablayout2"
  7140.         android:layout_width="match_parent"
  7141.         android:layout_height="wrap_content"
  7142.         app:tabMode="auto"
  7143.         app:tabGravity="start"
  7144.         app:tabBackground="@color/pink"
  7145.         app:tabTextColor="@color/white"
  7146.         app:layout_constraintStart_toStartOf="parent"
  7147.         app:layout_constraintTop_toTopOf="parent"
  7148.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7149.         />
  7150.     <androidx.viewpager2.widget.ViewPager2
  7151.         android:id="@+id/myviepage2"
  7152.         android:layout_width="match_parent"
  7153.         android:layout_height="0dp"
  7154.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7155.         app:layout_constraintBottom_toBottomOf="parent"
  7156.         app:layout_constraintStart_toStartOf="parent"
  7157.         />
  7158. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  7159. <?xml version="1.0" encoding="utf-8"?>
  7160. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7161.     xmlns:tools="http://schemas.android.com/tools"
  7162.     android:layout_width="match_parent"
  7163.     android:layout_height="match_parent"
  7164.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7165.     tools:context=".tablayout.TabLayoutHomeFragment">
  7166.     <com.google.android.material.tabs.TabLayout
  7167.         android:id="@+id/mytablayout2"
  7168.         android:layout_width="match_parent"
  7169.         android:layout_height="wrap_content"
  7170.         app:tabMode="auto"
  7171.         app:tabGravity="start"
  7172.         app:tabBackground="@color/pink"
  7173.         app:tabTextColor="@color/white"
  7174.         app:layout_constraintStart_toStartOf="parent"
  7175.         app:layout_constraintTop_toTopOf="parent"
  7176.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7177.         />
  7178.     <androidx.viewpager2.widget.ViewPager2
  7179.         android:id="@+id/myviepage2"
  7180.         android:layout_width="match_parent"
  7181.         android:layout_height="0dp"
  7182.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7183.         app:layout_constraintBottom_toBottomOf="parent"
  7184.         app:layout_constraintStart_toStartOf="parent"
  7185.         />
  7186. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  7187.     <com.google.android.material.bottomnavigation.BottomNavigationView
  7188. <?xml version="1.0" encoding="utf-8"?>
  7189. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7190.     xmlns:tools="http://schemas.android.com/tools"
  7191.     android:layout_width="match_parent"
  7192.     android:layout_height="match_parent"
  7193.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7194.     tools:context=".tablayout.TabLayoutHomeFragment">
  7195.     <com.google.android.material.tabs.TabLayout
  7196.         android:id="@+id/mytablayout2"
  7197.         android:layout_width="match_parent"
  7198.         android:layout_height="wrap_content"
  7199.         app:tabMode="auto"
  7200.         app:tabGravity="start"
  7201.         app:tabBackground="@color/pink"
  7202.         app:tabTextColor="@color/white"
  7203.         app:layout_constraintStart_toStartOf="parent"
  7204.         app:layout_constraintTop_toTopOf="parent"
  7205.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7206.         />
  7207.     <androidx.viewpager2.widget.ViewPager2
  7208.         android:id="@+id/myviepage2"
  7209.         android:layout_width="match_parent"
  7210.         android:layout_height="0dp"
  7211.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7212.         app:layout_constraintBottom_toBottomOf="parent"
  7213.         app:layout_constraintStart_toStartOf="parent"
  7214.         />
  7215. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  7216. <?xml version="1.0" encoding="utf-8"?>
  7217. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7218.     xmlns:tools="http://schemas.android.com/tools"
  7219.     android:layout_width="match_parent"
  7220.     android:layout_height="match_parent"
  7221.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7222.     tools:context=".tablayout.TabLayoutHomeFragment">
  7223.     <com.google.android.material.tabs.TabLayout
  7224.         android:id="@+id/mytablayout2"
  7225.         android:layout_width="match_parent"
  7226.         android:layout_height="wrap_content"
  7227.         app:tabMode="auto"
  7228.         app:tabGravity="start"
  7229.         app:tabBackground="@color/pink"
  7230.         app:tabTextColor="@color/white"
  7231.         app:layout_constraintStart_toStartOf="parent"
  7232.         app:layout_constraintTop_toTopOf="parent"
  7233.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7234.         />
  7235.     <androidx.viewpager2.widget.ViewPager2
  7236.         android:id="@+id/myviepage2"
  7237.         android:layout_width="match_parent"
  7238.         android:layout_height="0dp"
  7239.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7240.         app:layout_constraintBottom_toBottomOf="parent"
  7241.         app:layout_constraintStart_toStartOf="parent"
  7242.         />
  7243. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  7244. <?xml version="1.0" encoding="utf-8"?>
  7245. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7246.     xmlns:tools="http://schemas.android.com/tools"
  7247.     android:layout_width="match_parent"
  7248.     android:layout_height="match_parent"
  7249.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7250.     tools:context=".tablayout.TabLayoutHomeFragment">
  7251.     <com.google.android.material.tabs.TabLayout
  7252.         android:id="@+id/mytablayout2"
  7253.         android:layout_width="match_parent"
  7254.         android:layout_height="wrap_content"
  7255.         app:tabMode="auto"
  7256.         app:tabGravity="start"
  7257.         app:tabBackground="@color/pink"
  7258.         app:tabTextColor="@color/white"
  7259.         app:layout_constraintStart_toStartOf="parent"
  7260.         app:layout_constraintTop_toTopOf="parent"
  7261.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7262.         />
  7263.     <androidx.viewpager2.widget.ViewPager2
  7264.         android:id="@+id/myviepage2"
  7265.         android:layout_width="match_parent"
  7266.         android:layout_height="0dp"
  7267.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7268.         app:layout_constraintBottom_toBottomOf="parent"
  7269.         app:layout_constraintStart_toStartOf="parent"
  7270.         />
  7271. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  7272. <?xml version="1.0" encoding="utf-8"?>
  7273. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7274.     xmlns:tools="http://schemas.android.com/tools"
  7275.     android:layout_width="match_parent"
  7276.     android:layout_height="match_parent"
  7277.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7278.     tools:context=".tablayout.TabLayoutHomeFragment">
  7279.     <com.google.android.material.tabs.TabLayout
  7280.         android:id="@+id/mytablayout2"
  7281.         android:layout_width="match_parent"
  7282.         android:layout_height="wrap_content"
  7283.         app:tabMode="auto"
  7284.         app:tabGravity="start"
  7285.         app:tabBackground="@color/pink"
  7286.         app:tabTextColor="@color/white"
  7287.         app:layout_constraintStart_toStartOf="parent"
  7288.         app:layout_constraintTop_toTopOf="parent"
  7289.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7290.         />
  7291.     <androidx.viewpager2.widget.ViewPager2
  7292.         android:id="@+id/myviepage2"
  7293.         android:layout_width="match_parent"
  7294.         android:layout_height="0dp"
  7295.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7296.         app:layout_constraintBottom_toBottomOf="parent"
  7297.         app:layout_constraintStart_toStartOf="parent"
  7298.         />
  7299. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  7300. <?xml version="1.0" encoding="utf-8"?>
  7301. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7302.     xmlns:tools="http://schemas.android.com/tools"
  7303.     android:layout_width="match_parent"
  7304.     android:layout_height="match_parent"
  7305.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7306.     tools:context=".tablayout.TabLayoutHomeFragment">
  7307.     <com.google.android.material.tabs.TabLayout
  7308.         android:id="@+id/mytablayout2"
  7309.         android:layout_width="match_parent"
  7310.         android:layout_height="wrap_content"
  7311.         app:tabMode="auto"
  7312.         app:tabGravity="start"
  7313.         app:tabBackground="@color/pink"
  7314.         app:tabTextColor="@color/white"
  7315.         app:layout_constraintStart_toStartOf="parent"
  7316.         app:layout_constraintTop_toTopOf="parent"
  7317.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7318.         />
  7319.     <androidx.viewpager2.widget.ViewPager2
  7320.         android:id="@+id/myviepage2"
  7321.         android:layout_width="match_parent"
  7322.         android:layout_height="0dp"
  7323.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7324.         app:layout_constraintBottom_toBottomOf="parent"
  7325.         app:layout_constraintStart_toStartOf="parent"
  7326.         />
  7327. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  7328. <?xml version="1.0" encoding="utf-8"?>
  7329. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7330.     xmlns:tools="http://schemas.android.com/tools"
  7331.     android:layout_width="match_parent"
  7332.     android:layout_height="match_parent"
  7333.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7334.     tools:context=".tablayout.TabLayoutHomeFragment">
  7335.     <com.google.android.material.tabs.TabLayout
  7336.         android:id="@+id/mytablayout2"
  7337.         android:layout_width="match_parent"
  7338.         android:layout_height="wrap_content"
  7339.         app:tabMode="auto"
  7340.         app:tabGravity="start"
  7341.         app:tabBackground="@color/pink"
  7342.         app:tabTextColor="@color/white"
  7343.         app:layout_constraintStart_toStartOf="parent"
  7344.         app:layout_constraintTop_toTopOf="parent"
  7345.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7346.         />
  7347.     <androidx.viewpager2.widget.ViewPager2
  7348.         android:id="@+id/myviepage2"
  7349.         android:layout_width="match_parent"
  7350.         android:layout_height="0dp"
  7351.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7352.         app:layout_constraintBottom_toBottomOf="parent"
  7353.         app:layout_constraintStart_toStartOf="parent"
  7354.         />
  7355. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  7356. <?xml version="1.0" encoding="utf-8"?>
  7357. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7358.     xmlns:tools="http://schemas.android.com/tools"
  7359.     android:layout_width="match_parent"
  7360.     android:layout_height="match_parent"
  7361.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7362.     tools:context=".tablayout.TabLayoutHomeFragment">
  7363.     <com.google.android.material.tabs.TabLayout
  7364.         android:id="@+id/mytablayout2"
  7365.         android:layout_width="match_parent"
  7366.         android:layout_height="wrap_content"
  7367.         app:tabMode="auto"
  7368.         app:tabGravity="start"
  7369.         app:tabBackground="@color/pink"
  7370.         app:tabTextColor="@color/white"
  7371.         app:layout_constraintStart_toStartOf="parent"
  7372.         app:layout_constraintTop_toTopOf="parent"
  7373.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7374.         />
  7375.     <androidx.viewpager2.widget.ViewPager2
  7376.         android:id="@+id/myviepage2"
  7377.         android:layout_width="match_parent"
  7378.         android:layout_height="0dp"
  7379.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7380.         app:layout_constraintBottom_toBottomOf="parent"
  7381.         app:layout_constraintStart_toStartOf="parent"
  7382.         />
  7383. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  7384. <?xml version="1.0" encoding="utf-8"?>
  7385. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7386.     xmlns:tools="http://schemas.android.com/tools"
  7387.     android:layout_width="match_parent"
  7388.     android:layout_height="match_parent"
  7389.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7390.     tools:context=".tablayout.TabLayoutHomeFragment">
  7391.     <com.google.android.material.tabs.TabLayout
  7392.         android:id="@+id/mytablayout2"
  7393.         android:layout_width="match_parent"
  7394.         android:layout_height="wrap_content"
  7395.         app:tabMode="auto"
  7396.         app:tabGravity="start"
  7397.         app:tabBackground="@color/pink"
  7398.         app:tabTextColor="@color/white"
  7399.         app:layout_constraintStart_toStartOf="parent"
  7400.         app:layout_constraintTop_toTopOf="parent"
  7401.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7402.         />
  7403.     <androidx.viewpager2.widget.ViewPager2
  7404.         android:id="@+id/myviepage2"
  7405.         android:layout_width="match_parent"
  7406.         android:layout_height="0dp"
  7407.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7408.         app:layout_constraintBottom_toBottomOf="parent"
  7409.         app:layout_constraintStart_toStartOf="parent"
  7410.         />
  7411. </androidx.constraintlayout.widget.ConstraintLayout>/>
  7412. </androidx.constraintlayout.widget.ConstraintLayout>return fragmentList.size();<?xml version="1.0" encoding="utf-8"?>
  7413. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7414.     xmlns:tools="http://schemas.android.com/tools"
  7415.     android:layout_width="match_parent"
  7416.     android:layout_height="match_parent"
  7417.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7418.     tools:context=".tablayout.TabLayoutHomeFragment">
  7419.     <com.google.android.material.tabs.TabLayout
  7420.         android:id="@+id/mytablayout2"
  7421.         android:layout_width="match_parent"
  7422.         android:layout_height="wrap_content"
  7423.         app:tabMode="auto"
  7424.         app:tabGravity="start"
  7425.         app:tabBackground="@color/pink"
  7426.         app:tabTextColor="@color/white"
  7427.         app:layout_constraintStart_toStartOf="parent"
  7428.         app:layout_constraintTop_toTopOf="parent"
  7429.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7430.         />
  7431.     <androidx.viewpager2.widget.ViewPager2
  7432.         android:id="@+id/myviepage2"
  7433.         android:layout_width="match_parent"
  7434.         android:layout_height="0dp"
  7435.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7436.         app:layout_constraintBottom_toBottomOf="parent"
  7437.         app:layout_constraintStart_toStartOf="parent"
  7438.         />
  7439. </androidx.constraintlayout.widget.ConstraintLayout>}    }}
复制代码
4. 编写 RecFragment 用于继承RecycleView 展示

主要是优化TabLayout 的第一个fragment 样式
  1. package com.johnny.slzzing;import static com.johnny.slzzing.R.drawable.discountberry;import static com.johnny.slzzing.R.drawable.discountbrocoli;import static com.johnny.slzzing.R.drawable.discountmeat;import android.os.Bundle;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import androidx.annotation.NonNull;import androidx.annotation.Nullable;import androidx.fragment.app.Fragment;import androidx.recyclerview.widget.LinearLayoutManager;import androidx.recyclerview.widget.RecyclerView;import java.util.ArrayList;import java.util.List;/** * A simple {@link Fragment} subclass. * Use the {@link RecFragment#newInstance} factory method to * create an instance of this fragment. */public class RecFragment extends Fragment {    // TODO: Rename parameter arguments, choose names that match    // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER    private static final String ARG_PARAM1 = "param1";    private static final String ARG_PARAM2 = "param2";    // TODO: Rename and change types of parameters    private String mParam1;    private String mParam2;    private RecyclerView discountRecyclerView;    private DiscountedProductAdapter discountedProductAdapter;    public RecFragment() {<?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:tools="http://schemas.android.com/tools"
  4.     android:layout_width="match_parent"
  5.     android:layout_height="match_parent"
  6.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7.     tools:context=".tablayout.TabLayoutHomeFragment">
  8.     <com.google.android.material.tabs.TabLayout
  9.         android:id="@+id/mytablayout2"
  10.         android:layout_width="match_parent"
  11.         android:layout_height="wrap_content"
  12.         app:tabMode="auto"
  13.         app:tabGravity="start"
  14.         app:tabBackground="@color/pink"
  15.         app:tabTextColor="@color/white"
  16.         app:layout_constraintStart_toStartOf="parent"
  17.         app:layout_constraintTop_toTopOf="parent"
  18.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  19.         />
  20.     <androidx.viewpager2.widget.ViewPager2
  21.         android:id="@+id/myviepage2"
  22.         android:layout_width="match_parent"
  23.         android:layout_height="0dp"
  24.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  25.         app:layout_constraintBottom_toBottomOf="parent"
  26.         app:layout_constraintStart_toStartOf="parent"
  27.         />
  28. </androidx.constraintlayout.widget.ConstraintLayout>// Required empty public constructor    }    /**     * Use this factory method to create a new instance of     * this fragment using the provided parameters.     *     * @param param1 Parameter 1.     * @param param2 Parameter 2.     * @return A new instance of fragment RecFragment.     */    // TODO: Rename and change types and number of parameters    public static RecFragment newInstance(String param1, String param2) {<?xml version="1.0" encoding="utf-8"?>
  29. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  30.     xmlns:tools="http://schemas.android.com/tools"
  31.     android:layout_width="match_parent"
  32.     android:layout_height="match_parent"
  33.     xmlns:app="http://schemas.android.com/apk/res-auto"
  34.     tools:context=".tablayout.TabLayoutHomeFragment">
  35.     <com.google.android.material.tabs.TabLayout
  36.         android:id="@+id/mytablayout2"
  37.         android:layout_width="match_parent"
  38.         android:layout_height="wrap_content"
  39.         app:tabMode="auto"
  40.         app:tabGravity="start"
  41.         app:tabBackground="@color/pink"
  42.         app:tabTextColor="@color/white"
  43.         app:layout_constraintStart_toStartOf="parent"
  44.         app:layout_constraintTop_toTopOf="parent"
  45.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  46.         />
  47.     <androidx.viewpager2.widget.ViewPager2
  48.         android:id="@+id/myviepage2"
  49.         android:layout_width="match_parent"
  50.         android:layout_height="0dp"
  51.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  52.         app:layout_constraintBottom_toBottomOf="parent"
  53.         app:layout_constraintStart_toStartOf="parent"
  54.         />
  55. </androidx.constraintlayout.widget.ConstraintLayout>RecFragment fragment = new RecFragment();<?xml version="1.0" encoding="utf-8"?>
  56. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  57.     xmlns:tools="http://schemas.android.com/tools"
  58.     android:layout_width="match_parent"
  59.     android:layout_height="match_parent"
  60.     xmlns:app="http://schemas.android.com/apk/res-auto"
  61.     tools:context=".tablayout.TabLayoutHomeFragment">
  62.     <com.google.android.material.tabs.TabLayout
  63.         android:id="@+id/mytablayout2"
  64.         android:layout_width="match_parent"
  65.         android:layout_height="wrap_content"
  66.         app:tabMode="auto"
  67.         app:tabGravity="start"
  68.         app:tabBackground="@color/pink"
  69.         app:tabTextColor="@color/white"
  70.         app:layout_constraintStart_toStartOf="parent"
  71.         app:layout_constraintTop_toTopOf="parent"
  72.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  73.         />
  74.     <androidx.viewpager2.widget.ViewPager2
  75.         android:id="@+id/myviepage2"
  76.         android:layout_width="match_parent"
  77.         android:layout_height="0dp"
  78.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  79.         app:layout_constraintBottom_toBottomOf="parent"
  80.         app:layout_constraintStart_toStartOf="parent"
  81.         />
  82. </androidx.constraintlayout.widget.ConstraintLayout>Bundle args = new Bundle();<?xml version="1.0" encoding="utf-8"?>
  83. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  84.     xmlns:tools="http://schemas.android.com/tools"
  85.     android:layout_width="match_parent"
  86.     android:layout_height="match_parent"
  87.     xmlns:app="http://schemas.android.com/apk/res-auto"
  88.     tools:context=".tablayout.TabLayoutHomeFragment">
  89.     <com.google.android.material.tabs.TabLayout
  90.         android:id="@+id/mytablayout2"
  91.         android:layout_width="match_parent"
  92.         android:layout_height="wrap_content"
  93.         app:tabMode="auto"
  94.         app:tabGravity="start"
  95.         app:tabBackground="@color/pink"
  96.         app:tabTextColor="@color/white"
  97.         app:layout_constraintStart_toStartOf="parent"
  98.         app:layout_constraintTop_toTopOf="parent"
  99.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  100.         />
  101.     <androidx.viewpager2.widget.ViewPager2
  102.         android:id="@+id/myviepage2"
  103.         android:layout_width="match_parent"
  104.         android:layout_height="0dp"
  105.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  106.         app:layout_constraintBottom_toBottomOf="parent"
  107.         app:layout_constraintStart_toStartOf="parent"
  108.         />
  109. </androidx.constraintlayout.widget.ConstraintLayout>args.putString(ARG_PARAM1, param1);<?xml version="1.0" encoding="utf-8"?>
  110. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  111.     xmlns:tools="http://schemas.android.com/tools"
  112.     android:layout_width="match_parent"
  113.     android:layout_height="match_parent"
  114.     xmlns:app="http://schemas.android.com/apk/res-auto"
  115.     tools:context=".tablayout.TabLayoutHomeFragment">
  116.     <com.google.android.material.tabs.TabLayout
  117.         android:id="@+id/mytablayout2"
  118.         android:layout_width="match_parent"
  119.         android:layout_height="wrap_content"
  120.         app:tabMode="auto"
  121.         app:tabGravity="start"
  122.         app:tabBackground="@color/pink"
  123.         app:tabTextColor="@color/white"
  124.         app:layout_constraintStart_toStartOf="parent"
  125.         app:layout_constraintTop_toTopOf="parent"
  126.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  127.         />
  128.     <androidx.viewpager2.widget.ViewPager2
  129.         android:id="@+id/myviepage2"
  130.         android:layout_width="match_parent"
  131.         android:layout_height="0dp"
  132.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  133.         app:layout_constraintBottom_toBottomOf="parent"
  134.         app:layout_constraintStart_toStartOf="parent"
  135.         />
  136. </androidx.constraintlayout.widget.ConstraintLayout>args.putString(ARG_PARAM2, param2);<?xml version="1.0" encoding="utf-8"?>
  137. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  138.     xmlns:tools="http://schemas.android.com/tools"
  139.     android:layout_width="match_parent"
  140.     android:layout_height="match_parent"
  141.     xmlns:app="http://schemas.android.com/apk/res-auto"
  142.     tools:context=".tablayout.TabLayoutHomeFragment">
  143.     <com.google.android.material.tabs.TabLayout
  144.         android:id="@+id/mytablayout2"
  145.         android:layout_width="match_parent"
  146.         android:layout_height="wrap_content"
  147.         app:tabMode="auto"
  148.         app:tabGravity="start"
  149.         app:tabBackground="@color/pink"
  150.         app:tabTextColor="@color/white"
  151.         app:layout_constraintStart_toStartOf="parent"
  152.         app:layout_constraintTop_toTopOf="parent"
  153.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  154.         />
  155.     <androidx.viewpager2.widget.ViewPager2
  156.         android:id="@+id/myviepage2"
  157.         android:layout_width="match_parent"
  158.         android:layout_height="0dp"
  159.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  160.         app:layout_constraintBottom_toBottomOf="parent"
  161.         app:layout_constraintStart_toStartOf="parent"
  162.         />
  163. </androidx.constraintlayout.widget.ConstraintLayout>fragment.setArguments(args);<?xml version="1.0" encoding="utf-8"?>
  164. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  165.     xmlns:tools="http://schemas.android.com/tools"
  166.     android:layout_width="match_parent"
  167.     android:layout_height="match_parent"
  168.     xmlns:app="http://schemas.android.com/apk/res-auto"
  169.     tools:context=".tablayout.TabLayoutHomeFragment">
  170.     <com.google.android.material.tabs.TabLayout
  171.         android:id="@+id/mytablayout2"
  172.         android:layout_width="match_parent"
  173.         android:layout_height="wrap_content"
  174.         app:tabMode="auto"
  175.         app:tabGravity="start"
  176.         app:tabBackground="@color/pink"
  177.         app:tabTextColor="@color/white"
  178.         app:layout_constraintStart_toStartOf="parent"
  179.         app:layout_constraintTop_toTopOf="parent"
  180.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  181.         />
  182.     <androidx.viewpager2.widget.ViewPager2
  183.         android:id="@+id/myviepage2"
  184.         android:layout_width="match_parent"
  185.         android:layout_height="0dp"
  186.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  187.         app:layout_constraintBottom_toBottomOf="parent"
  188.         app:layout_constraintStart_toStartOf="parent"
  189.         />
  190. </androidx.constraintlayout.widget.ConstraintLayout>return fragment;    }    @Override    public void onCreate(Bundle savedInstanceState) {<?xml version="1.0" encoding="utf-8"?>
  191. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  192.     xmlns:tools="http://schemas.android.com/tools"
  193.     android:layout_width="match_parent"
  194.     android:layout_height="match_parent"
  195.     xmlns:app="http://schemas.android.com/apk/res-auto"
  196.     tools:context=".tablayout.TabLayoutHomeFragment">
  197.     <com.google.android.material.tabs.TabLayout
  198.         android:id="@+id/mytablayout2"
  199.         android:layout_width="match_parent"
  200.         android:layout_height="wrap_content"
  201.         app:tabMode="auto"
  202.         app:tabGravity="start"
  203.         app:tabBackground="@color/pink"
  204.         app:tabTextColor="@color/white"
  205.         app:layout_constraintStart_toStartOf="parent"
  206.         app:layout_constraintTop_toTopOf="parent"
  207.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  208.         />
  209.     <androidx.viewpager2.widget.ViewPager2
  210.         android:id="@+id/myviepage2"
  211.         android:layout_width="match_parent"
  212.         android:layout_height="0dp"
  213.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  214.         app:layout_constraintBottom_toBottomOf="parent"
  215.         app:layout_constraintStart_toStartOf="parent"
  216.         />
  217. </androidx.constraintlayout.widget.ConstraintLayout>super.onCreate(savedInstanceState);<?xml version="1.0" encoding="utf-8"?>
  218. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  219.     xmlns:tools="http://schemas.android.com/tools"
  220.     android:layout_width="match_parent"
  221.     android:layout_height="match_parent"
  222.     xmlns:app="http://schemas.android.com/apk/res-auto"
  223.     tools:context=".tablayout.TabLayoutHomeFragment">
  224.     <com.google.android.material.tabs.TabLayout
  225.         android:id="@+id/mytablayout2"
  226.         android:layout_width="match_parent"
  227.         android:layout_height="wrap_content"
  228.         app:tabMode="auto"
  229.         app:tabGravity="start"
  230.         app:tabBackground="@color/pink"
  231.         app:tabTextColor="@color/white"
  232.         app:layout_constraintStart_toStartOf="parent"
  233.         app:layout_constraintTop_toTopOf="parent"
  234.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  235.         />
  236.     <androidx.viewpager2.widget.ViewPager2
  237.         android:id="@+id/myviepage2"
  238.         android:layout_width="match_parent"
  239.         android:layout_height="0dp"
  240.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  241.         app:layout_constraintBottom_toBottomOf="parent"
  242.         app:layout_constraintStart_toStartOf="parent"
  243.         />
  244. </androidx.constraintlayout.widget.ConstraintLayout>if (getArguments() != null) {<?xml version="1.0" encoding="utf-8"?>
  245. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  246.     xmlns:app="http://schemas.android.com/apk/res-auto"
  247.     xmlns:tools="http://schemas.android.com/tools"
  248.     android:layout_width="match_parent"
  249.     android:layout_height="match_parent"
  250.     tools:context=".ViewPager2TabLayoutActivity">
  251.    
  252.     <androidx.fragment.app.FragmentContainerView
  253. <?xml version="1.0" encoding="utf-8"?>
  254. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  255.     xmlns:tools="http://schemas.android.com/tools"
  256.     android:layout_width="match_parent"
  257.     android:layout_height="match_parent"
  258.     xmlns:app="http://schemas.android.com/apk/res-auto"
  259.     tools:context=".tablayout.TabLayoutHomeFragment">
  260.     <com.google.android.material.tabs.TabLayout
  261.         android:id="@+id/mytablayout2"
  262.         android:layout_width="match_parent"
  263.         android:layout_height="wrap_content"
  264.         app:tabMode="auto"
  265.         app:tabGravity="start"
  266.         app:tabBackground="@color/pink"
  267.         app:tabTextColor="@color/white"
  268.         app:layout_constraintStart_toStartOf="parent"
  269.         app:layout_constraintTop_toTopOf="parent"
  270.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  271.         />
  272.     <androidx.viewpager2.widget.ViewPager2
  273.         android:id="@+id/myviepage2"
  274.         android:layout_width="match_parent"
  275.         android:layout_height="0dp"
  276.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  277.         app:layout_constraintBottom_toBottomOf="parent"
  278.         app:layout_constraintStart_toStartOf="parent"
  279.         />
  280. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  281. <?xml version="1.0" encoding="utf-8"?>
  282. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  283.     xmlns:tools="http://schemas.android.com/tools"
  284.     android:layout_width="match_parent"
  285.     android:layout_height="match_parent"
  286.     xmlns:app="http://schemas.android.com/apk/res-auto"
  287.     tools:context=".tablayout.TabLayoutHomeFragment">
  288.     <com.google.android.material.tabs.TabLayout
  289.         android:id="@+id/mytablayout2"
  290.         android:layout_width="match_parent"
  291.         android:layout_height="wrap_content"
  292.         app:tabMode="auto"
  293.         app:tabGravity="start"
  294.         app:tabBackground="@color/pink"
  295.         app:tabTextColor="@color/white"
  296.         app:layout_constraintStart_toStartOf="parent"
  297.         app:layout_constraintTop_toTopOf="parent"
  298.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  299.         />
  300.     <androidx.viewpager2.widget.ViewPager2
  301.         android:id="@+id/myviepage2"
  302.         android:layout_width="match_parent"
  303.         android:layout_height="0dp"
  304.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  305.         app:layout_constraintBottom_toBottomOf="parent"
  306.         app:layout_constraintStart_toStartOf="parent"
  307.         />
  308. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  309. <?xml version="1.0" encoding="utf-8"?>
  310. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  311.     xmlns:tools="http://schemas.android.com/tools"
  312.     android:layout_width="match_parent"
  313.     android:layout_height="match_parent"
  314.     xmlns:app="http://schemas.android.com/apk/res-auto"
  315.     tools:context=".tablayout.TabLayoutHomeFragment">
  316.     <com.google.android.material.tabs.TabLayout
  317.         android:id="@+id/mytablayout2"
  318.         android:layout_width="match_parent"
  319.         android:layout_height="wrap_content"
  320.         app:tabMode="auto"
  321.         app:tabGravity="start"
  322.         app:tabBackground="@color/pink"
  323.         app:tabTextColor="@color/white"
  324.         app:layout_constraintStart_toStartOf="parent"
  325.         app:layout_constraintTop_toTopOf="parent"
  326.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  327.         />
  328.     <androidx.viewpager2.widget.ViewPager2
  329.         android:id="@+id/myviepage2"
  330.         android:layout_width="match_parent"
  331.         android:layout_height="0dp"
  332.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  333.         app:layout_constraintBottom_toBottomOf="parent"
  334.         app:layout_constraintStart_toStartOf="parent"
  335.         />
  336. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  337. <?xml version="1.0" encoding="utf-8"?>
  338. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  339.     xmlns:tools="http://schemas.android.com/tools"
  340.     android:layout_width="match_parent"
  341.     android:layout_height="match_parent"
  342.     xmlns:app="http://schemas.android.com/apk/res-auto"
  343.     tools:context=".tablayout.TabLayoutHomeFragment">
  344.     <com.google.android.material.tabs.TabLayout
  345.         android:id="@+id/mytablayout2"
  346.         android:layout_width="match_parent"
  347.         android:layout_height="wrap_content"
  348.         app:tabMode="auto"
  349.         app:tabGravity="start"
  350.         app:tabBackground="@color/pink"
  351.         app:tabTextColor="@color/white"
  352.         app:layout_constraintStart_toStartOf="parent"
  353.         app:layout_constraintTop_toTopOf="parent"
  354.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  355.         />
  356.     <androidx.viewpager2.widget.ViewPager2
  357.         android:id="@+id/myviepage2"
  358.         android:layout_width="match_parent"
  359.         android:layout_height="0dp"
  360.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  361.         app:layout_constraintBottom_toBottomOf="parent"
  362.         app:layout_constraintStart_toStartOf="parent"
  363.         />
  364. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  365. <?xml version="1.0" encoding="utf-8"?>
  366. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  367.     xmlns:tools="http://schemas.android.com/tools"
  368.     android:layout_width="match_parent"
  369.     android:layout_height="match_parent"
  370.     xmlns:app="http://schemas.android.com/apk/res-auto"
  371.     tools:context=".tablayout.TabLayoutHomeFragment">
  372.     <com.google.android.material.tabs.TabLayout
  373.         android:id="@+id/mytablayout2"
  374.         android:layout_width="match_parent"
  375.         android:layout_height="wrap_content"
  376.         app:tabMode="auto"
  377.         app:tabGravity="start"
  378.         app:tabBackground="@color/pink"
  379.         app:tabTextColor="@color/white"
  380.         app:layout_constraintStart_toStartOf="parent"
  381.         app:layout_constraintTop_toTopOf="parent"
  382.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  383.         />
  384.     <androidx.viewpager2.widget.ViewPager2
  385.         android:id="@+id/myviepage2"
  386.         android:layout_width="match_parent"
  387.         android:layout_height="0dp"
  388.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  389.         app:layout_constraintBottom_toBottomOf="parent"
  390.         app:layout_constraintStart_toStartOf="parent"
  391.         />
  392. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  393.     <com.google.android.material.bottomnavigation.BottomNavigationView
  394. <?xml version="1.0" encoding="utf-8"?>
  395. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  396.     xmlns:tools="http://schemas.android.com/tools"
  397.     android:layout_width="match_parent"
  398.     android:layout_height="match_parent"
  399.     xmlns:app="http://schemas.android.com/apk/res-auto"
  400.     tools:context=".tablayout.TabLayoutHomeFragment">
  401.     <com.google.android.material.tabs.TabLayout
  402.         android:id="@+id/mytablayout2"
  403.         android:layout_width="match_parent"
  404.         android:layout_height="wrap_content"
  405.         app:tabMode="auto"
  406.         app:tabGravity="start"
  407.         app:tabBackground="@color/pink"
  408.         app:tabTextColor="@color/white"
  409.         app:layout_constraintStart_toStartOf="parent"
  410.         app:layout_constraintTop_toTopOf="parent"
  411.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  412.         />
  413.     <androidx.viewpager2.widget.ViewPager2
  414.         android:id="@+id/myviepage2"
  415.         android:layout_width="match_parent"
  416.         android:layout_height="0dp"
  417.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  418.         app:layout_constraintBottom_toBottomOf="parent"
  419.         app:layout_constraintStart_toStartOf="parent"
  420.         />
  421. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  422. <?xml version="1.0" encoding="utf-8"?>
  423. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  424.     xmlns:tools="http://schemas.android.com/tools"
  425.     android:layout_width="match_parent"
  426.     android:layout_height="match_parent"
  427.     xmlns:app="http://schemas.android.com/apk/res-auto"
  428.     tools:context=".tablayout.TabLayoutHomeFragment">
  429.     <com.google.android.material.tabs.TabLayout
  430.         android:id="@+id/mytablayout2"
  431.         android:layout_width="match_parent"
  432.         android:layout_height="wrap_content"
  433.         app:tabMode="auto"
  434.         app:tabGravity="start"
  435.         app:tabBackground="@color/pink"
  436.         app:tabTextColor="@color/white"
  437.         app:layout_constraintStart_toStartOf="parent"
  438.         app:layout_constraintTop_toTopOf="parent"
  439.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  440.         />
  441.     <androidx.viewpager2.widget.ViewPager2
  442.         android:id="@+id/myviepage2"
  443.         android:layout_width="match_parent"
  444.         android:layout_height="0dp"
  445.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  446.         app:layout_constraintBottom_toBottomOf="parent"
  447.         app:layout_constraintStart_toStartOf="parent"
  448.         />
  449. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  450. <?xml version="1.0" encoding="utf-8"?>
  451. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  452.     xmlns:tools="http://schemas.android.com/tools"
  453.     android:layout_width="match_parent"
  454.     android:layout_height="match_parent"
  455.     xmlns:app="http://schemas.android.com/apk/res-auto"
  456.     tools:context=".tablayout.TabLayoutHomeFragment">
  457.     <com.google.android.material.tabs.TabLayout
  458.         android:id="@+id/mytablayout2"
  459.         android:layout_width="match_parent"
  460.         android:layout_height="wrap_content"
  461.         app:tabMode="auto"
  462.         app:tabGravity="start"
  463.         app:tabBackground="@color/pink"
  464.         app:tabTextColor="@color/white"
  465.         app:layout_constraintStart_toStartOf="parent"
  466.         app:layout_constraintTop_toTopOf="parent"
  467.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  468.         />
  469.     <androidx.viewpager2.widget.ViewPager2
  470.         android:id="@+id/myviepage2"
  471.         android:layout_width="match_parent"
  472.         android:layout_height="0dp"
  473.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  474.         app:layout_constraintBottom_toBottomOf="parent"
  475.         app:layout_constraintStart_toStartOf="parent"
  476.         />
  477. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  478. <?xml version="1.0" encoding="utf-8"?>
  479. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  480.     xmlns:tools="http://schemas.android.com/tools"
  481.     android:layout_width="match_parent"
  482.     android:layout_height="match_parent"
  483.     xmlns:app="http://schemas.android.com/apk/res-auto"
  484.     tools:context=".tablayout.TabLayoutHomeFragment">
  485.     <com.google.android.material.tabs.TabLayout
  486.         android:id="@+id/mytablayout2"
  487.         android:layout_width="match_parent"
  488.         android:layout_height="wrap_content"
  489.         app:tabMode="auto"
  490.         app:tabGravity="start"
  491.         app:tabBackground="@color/pink"
  492.         app:tabTextColor="@color/white"
  493.         app:layout_constraintStart_toStartOf="parent"
  494.         app:layout_constraintTop_toTopOf="parent"
  495.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  496.         />
  497.     <androidx.viewpager2.widget.ViewPager2
  498.         android:id="@+id/myviepage2"
  499.         android:layout_width="match_parent"
  500.         android:layout_height="0dp"
  501.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  502.         app:layout_constraintBottom_toBottomOf="parent"
  503.         app:layout_constraintStart_toStartOf="parent"
  504.         />
  505. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  506. <?xml version="1.0" encoding="utf-8"?>
  507. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  508.     xmlns:tools="http://schemas.android.com/tools"
  509.     android:layout_width="match_parent"
  510.     android:layout_height="match_parent"
  511.     xmlns:app="http://schemas.android.com/apk/res-auto"
  512.     tools:context=".tablayout.TabLayoutHomeFragment">
  513.     <com.google.android.material.tabs.TabLayout
  514.         android:id="@+id/mytablayout2"
  515.         android:layout_width="match_parent"
  516.         android:layout_height="wrap_content"
  517.         app:tabMode="auto"
  518.         app:tabGravity="start"
  519.         app:tabBackground="@color/pink"
  520.         app:tabTextColor="@color/white"
  521.         app:layout_constraintStart_toStartOf="parent"
  522.         app:layout_constraintTop_toTopOf="parent"
  523.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  524.         />
  525.     <androidx.viewpager2.widget.ViewPager2
  526.         android:id="@+id/myviepage2"
  527.         android:layout_width="match_parent"
  528.         android:layout_height="0dp"
  529.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  530.         app:layout_constraintBottom_toBottomOf="parent"
  531.         app:layout_constraintStart_toStartOf="parent"
  532.         />
  533. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  534. <?xml version="1.0" encoding="utf-8"?>
  535. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  536.     xmlns:tools="http://schemas.android.com/tools"
  537.     android:layout_width="match_parent"
  538.     android:layout_height="match_parent"
  539.     xmlns:app="http://schemas.android.com/apk/res-auto"
  540.     tools:context=".tablayout.TabLayoutHomeFragment">
  541.     <com.google.android.material.tabs.TabLayout
  542.         android:id="@+id/mytablayout2"
  543.         android:layout_width="match_parent"
  544.         android:layout_height="wrap_content"
  545.         app:tabMode="auto"
  546.         app:tabGravity="start"
  547.         app:tabBackground="@color/pink"
  548.         app:tabTextColor="@color/white"
  549.         app:layout_constraintStart_toStartOf="parent"
  550.         app:layout_constraintTop_toTopOf="parent"
  551.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  552.         />
  553.     <androidx.viewpager2.widget.ViewPager2
  554.         android:id="@+id/myviepage2"
  555.         android:layout_width="match_parent"
  556.         android:layout_height="0dp"
  557.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  558.         app:layout_constraintBottom_toBottomOf="parent"
  559.         app:layout_constraintStart_toStartOf="parent"
  560.         />
  561. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  562. <?xml version="1.0" encoding="utf-8"?>
  563. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  564.     xmlns:tools="http://schemas.android.com/tools"
  565.     android:layout_width="match_parent"
  566.     android:layout_height="match_parent"
  567.     xmlns:app="http://schemas.android.com/apk/res-auto"
  568.     tools:context=".tablayout.TabLayoutHomeFragment">
  569.     <com.google.android.material.tabs.TabLayout
  570.         android:id="@+id/mytablayout2"
  571.         android:layout_width="match_parent"
  572.         android:layout_height="wrap_content"
  573.         app:tabMode="auto"
  574.         app:tabGravity="start"
  575.         app:tabBackground="@color/pink"
  576.         app:tabTextColor="@color/white"
  577.         app:layout_constraintStart_toStartOf="parent"
  578.         app:layout_constraintTop_toTopOf="parent"
  579.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  580.         />
  581.     <androidx.viewpager2.widget.ViewPager2
  582.         android:id="@+id/myviepage2"
  583.         android:layout_width="match_parent"
  584.         android:layout_height="0dp"
  585.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  586.         app:layout_constraintBottom_toBottomOf="parent"
  587.         app:layout_constraintStart_toStartOf="parent"
  588.         />
  589. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  590. <?xml version="1.0" encoding="utf-8"?>
  591. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  592.     xmlns:tools="http://schemas.android.com/tools"
  593.     android:layout_width="match_parent"
  594.     android:layout_height="match_parent"
  595.     xmlns:app="http://schemas.android.com/apk/res-auto"
  596.     tools:context=".tablayout.TabLayoutHomeFragment">
  597.     <com.google.android.material.tabs.TabLayout
  598.         android:id="@+id/mytablayout2"
  599.         android:layout_width="match_parent"
  600.         android:layout_height="wrap_content"
  601.         app:tabMode="auto"
  602.         app:tabGravity="start"
  603.         app:tabBackground="@color/pink"
  604.         app:tabTextColor="@color/white"
  605.         app:layout_constraintStart_toStartOf="parent"
  606.         app:layout_constraintTop_toTopOf="parent"
  607.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  608.         />
  609.     <androidx.viewpager2.widget.ViewPager2
  610.         android:id="@+id/myviepage2"
  611.         android:layout_width="match_parent"
  612.         android:layout_height="0dp"
  613.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  614.         app:layout_constraintBottom_toBottomOf="parent"
  615.         app:layout_constraintStart_toStartOf="parent"
  616.         />
  617. </androidx.constraintlayout.widget.ConstraintLayout>/>
  618. </androidx.constraintlayout.widget.ConstraintLayout>mParam1 = getArguments().getString(ARG_PARAM1);<?xml version="1.0" encoding="utf-8"?>
  619. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  620.     xmlns:app="http://schemas.android.com/apk/res-auto"
  621.     xmlns:tools="http://schemas.android.com/tools"
  622.     android:layout_width="match_parent"
  623.     android:layout_height="match_parent"
  624.     tools:context=".ViewPager2TabLayoutActivity">
  625.    
  626.     <androidx.fragment.app.FragmentContainerView
  627. <?xml version="1.0" encoding="utf-8"?>
  628. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  629.     xmlns:tools="http://schemas.android.com/tools"
  630.     android:layout_width="match_parent"
  631.     android:layout_height="match_parent"
  632.     xmlns:app="http://schemas.android.com/apk/res-auto"
  633.     tools:context=".tablayout.TabLayoutHomeFragment">
  634.     <com.google.android.material.tabs.TabLayout
  635.         android:id="@+id/mytablayout2"
  636.         android:layout_width="match_parent"
  637.         android:layout_height="wrap_content"
  638.         app:tabMode="auto"
  639.         app:tabGravity="start"
  640.         app:tabBackground="@color/pink"
  641.         app:tabTextColor="@color/white"
  642.         app:layout_constraintStart_toStartOf="parent"
  643.         app:layout_constraintTop_toTopOf="parent"
  644.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  645.         />
  646.     <androidx.viewpager2.widget.ViewPager2
  647.         android:id="@+id/myviepage2"
  648.         android:layout_width="match_parent"
  649.         android:layout_height="0dp"
  650.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  651.         app:layout_constraintBottom_toBottomOf="parent"
  652.         app:layout_constraintStart_toStartOf="parent"
  653.         />
  654. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  655. <?xml version="1.0" encoding="utf-8"?>
  656. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  657.     xmlns:tools="http://schemas.android.com/tools"
  658.     android:layout_width="match_parent"
  659.     android:layout_height="match_parent"
  660.     xmlns:app="http://schemas.android.com/apk/res-auto"
  661.     tools:context=".tablayout.TabLayoutHomeFragment">
  662.     <com.google.android.material.tabs.TabLayout
  663.         android:id="@+id/mytablayout2"
  664.         android:layout_width="match_parent"
  665.         android:layout_height="wrap_content"
  666.         app:tabMode="auto"
  667.         app:tabGravity="start"
  668.         app:tabBackground="@color/pink"
  669.         app:tabTextColor="@color/white"
  670.         app:layout_constraintStart_toStartOf="parent"
  671.         app:layout_constraintTop_toTopOf="parent"
  672.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  673.         />
  674.     <androidx.viewpager2.widget.ViewPager2
  675.         android:id="@+id/myviepage2"
  676.         android:layout_width="match_parent"
  677.         android:layout_height="0dp"
  678.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  679.         app:layout_constraintBottom_toBottomOf="parent"
  680.         app:layout_constraintStart_toStartOf="parent"
  681.         />
  682. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  683. <?xml version="1.0" encoding="utf-8"?>
  684. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  685.     xmlns:tools="http://schemas.android.com/tools"
  686.     android:layout_width="match_parent"
  687.     android:layout_height="match_parent"
  688.     xmlns:app="http://schemas.android.com/apk/res-auto"
  689.     tools:context=".tablayout.TabLayoutHomeFragment">
  690.     <com.google.android.material.tabs.TabLayout
  691.         android:id="@+id/mytablayout2"
  692.         android:layout_width="match_parent"
  693.         android:layout_height="wrap_content"
  694.         app:tabMode="auto"
  695.         app:tabGravity="start"
  696.         app:tabBackground="@color/pink"
  697.         app:tabTextColor="@color/white"
  698.         app:layout_constraintStart_toStartOf="parent"
  699.         app:layout_constraintTop_toTopOf="parent"
  700.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  701.         />
  702.     <androidx.viewpager2.widget.ViewPager2
  703.         android:id="@+id/myviepage2"
  704.         android:layout_width="match_parent"
  705.         android:layout_height="0dp"
  706.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  707.         app:layout_constraintBottom_toBottomOf="parent"
  708.         app:layout_constraintStart_toStartOf="parent"
  709.         />
  710. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  711. <?xml version="1.0" encoding="utf-8"?>
  712. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  713.     xmlns:tools="http://schemas.android.com/tools"
  714.     android:layout_width="match_parent"
  715.     android:layout_height="match_parent"
  716.     xmlns:app="http://schemas.android.com/apk/res-auto"
  717.     tools:context=".tablayout.TabLayoutHomeFragment">
  718.     <com.google.android.material.tabs.TabLayout
  719.         android:id="@+id/mytablayout2"
  720.         android:layout_width="match_parent"
  721.         android:layout_height="wrap_content"
  722.         app:tabMode="auto"
  723.         app:tabGravity="start"
  724.         app:tabBackground="@color/pink"
  725.         app:tabTextColor="@color/white"
  726.         app:layout_constraintStart_toStartOf="parent"
  727.         app:layout_constraintTop_toTopOf="parent"
  728.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  729.         />
  730.     <androidx.viewpager2.widget.ViewPager2
  731.         android:id="@+id/myviepage2"
  732.         android:layout_width="match_parent"
  733.         android:layout_height="0dp"
  734.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  735.         app:layout_constraintBottom_toBottomOf="parent"
  736.         app:layout_constraintStart_toStartOf="parent"
  737.         />
  738. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  739. <?xml version="1.0" encoding="utf-8"?>
  740. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  741.     xmlns:tools="http://schemas.android.com/tools"
  742.     android:layout_width="match_parent"
  743.     android:layout_height="match_parent"
  744.     xmlns:app="http://schemas.android.com/apk/res-auto"
  745.     tools:context=".tablayout.TabLayoutHomeFragment">
  746.     <com.google.android.material.tabs.TabLayout
  747.         android:id="@+id/mytablayout2"
  748.         android:layout_width="match_parent"
  749.         android:layout_height="wrap_content"
  750.         app:tabMode="auto"
  751.         app:tabGravity="start"
  752.         app:tabBackground="@color/pink"
  753.         app:tabTextColor="@color/white"
  754.         app:layout_constraintStart_toStartOf="parent"
  755.         app:layout_constraintTop_toTopOf="parent"
  756.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  757.         />
  758.     <androidx.viewpager2.widget.ViewPager2
  759.         android:id="@+id/myviepage2"
  760.         android:layout_width="match_parent"
  761.         android:layout_height="0dp"
  762.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  763.         app:layout_constraintBottom_toBottomOf="parent"
  764.         app:layout_constraintStart_toStartOf="parent"
  765.         />
  766. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  767.     <com.google.android.material.bottomnavigation.BottomNavigationView
  768. <?xml version="1.0" encoding="utf-8"?>
  769. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  770.     xmlns:tools="http://schemas.android.com/tools"
  771.     android:layout_width="match_parent"
  772.     android:layout_height="match_parent"
  773.     xmlns:app="http://schemas.android.com/apk/res-auto"
  774.     tools:context=".tablayout.TabLayoutHomeFragment">
  775.     <com.google.android.material.tabs.TabLayout
  776.         android:id="@+id/mytablayout2"
  777.         android:layout_width="match_parent"
  778.         android:layout_height="wrap_content"
  779.         app:tabMode="auto"
  780.         app:tabGravity="start"
  781.         app:tabBackground="@color/pink"
  782.         app:tabTextColor="@color/white"
  783.         app:layout_constraintStart_toStartOf="parent"
  784.         app:layout_constraintTop_toTopOf="parent"
  785.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  786.         />
  787.     <androidx.viewpager2.widget.ViewPager2
  788.         android:id="@+id/myviepage2"
  789.         android:layout_width="match_parent"
  790.         android:layout_height="0dp"
  791.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  792.         app:layout_constraintBottom_toBottomOf="parent"
  793.         app:layout_constraintStart_toStartOf="parent"
  794.         />
  795. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  796. <?xml version="1.0" encoding="utf-8"?>
  797. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  798.     xmlns:tools="http://schemas.android.com/tools"
  799.     android:layout_width="match_parent"
  800.     android:layout_height="match_parent"
  801.     xmlns:app="http://schemas.android.com/apk/res-auto"
  802.     tools:context=".tablayout.TabLayoutHomeFragment">
  803.     <com.google.android.material.tabs.TabLayout
  804.         android:id="@+id/mytablayout2"
  805.         android:layout_width="match_parent"
  806.         android:layout_height="wrap_content"
  807.         app:tabMode="auto"
  808.         app:tabGravity="start"
  809.         app:tabBackground="@color/pink"
  810.         app:tabTextColor="@color/white"
  811.         app:layout_constraintStart_toStartOf="parent"
  812.         app:layout_constraintTop_toTopOf="parent"
  813.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  814.         />
  815.     <androidx.viewpager2.widget.ViewPager2
  816.         android:id="@+id/myviepage2"
  817.         android:layout_width="match_parent"
  818.         android:layout_height="0dp"
  819.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  820.         app:layout_constraintBottom_toBottomOf="parent"
  821.         app:layout_constraintStart_toStartOf="parent"
  822.         />
  823. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  824. <?xml version="1.0" encoding="utf-8"?>
  825. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  826.     xmlns:tools="http://schemas.android.com/tools"
  827.     android:layout_width="match_parent"
  828.     android:layout_height="match_parent"
  829.     xmlns:app="http://schemas.android.com/apk/res-auto"
  830.     tools:context=".tablayout.TabLayoutHomeFragment">
  831.     <com.google.android.material.tabs.TabLayout
  832.         android:id="@+id/mytablayout2"
  833.         android:layout_width="match_parent"
  834.         android:layout_height="wrap_content"
  835.         app:tabMode="auto"
  836.         app:tabGravity="start"
  837.         app:tabBackground="@color/pink"
  838.         app:tabTextColor="@color/white"
  839.         app:layout_constraintStart_toStartOf="parent"
  840.         app:layout_constraintTop_toTopOf="parent"
  841.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  842.         />
  843.     <androidx.viewpager2.widget.ViewPager2
  844.         android:id="@+id/myviepage2"
  845.         android:layout_width="match_parent"
  846.         android:layout_height="0dp"
  847.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  848.         app:layout_constraintBottom_toBottomOf="parent"
  849.         app:layout_constraintStart_toStartOf="parent"
  850.         />
  851. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  852. <?xml version="1.0" encoding="utf-8"?>
  853. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  854.     xmlns:tools="http://schemas.android.com/tools"
  855.     android:layout_width="match_parent"
  856.     android:layout_height="match_parent"
  857.     xmlns:app="http://schemas.android.com/apk/res-auto"
  858.     tools:context=".tablayout.TabLayoutHomeFragment">
  859.     <com.google.android.material.tabs.TabLayout
  860.         android:id="@+id/mytablayout2"
  861.         android:layout_width="match_parent"
  862.         android:layout_height="wrap_content"
  863.         app:tabMode="auto"
  864.         app:tabGravity="start"
  865.         app:tabBackground="@color/pink"
  866.         app:tabTextColor="@color/white"
  867.         app:layout_constraintStart_toStartOf="parent"
  868.         app:layout_constraintTop_toTopOf="parent"
  869.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  870.         />
  871.     <androidx.viewpager2.widget.ViewPager2
  872.         android:id="@+id/myviepage2"
  873.         android:layout_width="match_parent"
  874.         android:layout_height="0dp"
  875.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  876.         app:layout_constraintBottom_toBottomOf="parent"
  877.         app:layout_constraintStart_toStartOf="parent"
  878.         />
  879. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  880. <?xml version="1.0" encoding="utf-8"?>
  881. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  882.     xmlns:tools="http://schemas.android.com/tools"
  883.     android:layout_width="match_parent"
  884.     android:layout_height="match_parent"
  885.     xmlns:app="http://schemas.android.com/apk/res-auto"
  886.     tools:context=".tablayout.TabLayoutHomeFragment">
  887.     <com.google.android.material.tabs.TabLayout
  888.         android:id="@+id/mytablayout2"
  889.         android:layout_width="match_parent"
  890.         android:layout_height="wrap_content"
  891.         app:tabMode="auto"
  892.         app:tabGravity="start"
  893.         app:tabBackground="@color/pink"
  894.         app:tabTextColor="@color/white"
  895.         app:layout_constraintStart_toStartOf="parent"
  896.         app:layout_constraintTop_toTopOf="parent"
  897.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  898.         />
  899.     <androidx.viewpager2.widget.ViewPager2
  900.         android:id="@+id/myviepage2"
  901.         android:layout_width="match_parent"
  902.         android:layout_height="0dp"
  903.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  904.         app:layout_constraintBottom_toBottomOf="parent"
  905.         app:layout_constraintStart_toStartOf="parent"
  906.         />
  907. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  908. <?xml version="1.0" encoding="utf-8"?>
  909. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  910.     xmlns:tools="http://schemas.android.com/tools"
  911.     android:layout_width="match_parent"
  912.     android:layout_height="match_parent"
  913.     xmlns:app="http://schemas.android.com/apk/res-auto"
  914.     tools:context=".tablayout.TabLayoutHomeFragment">
  915.     <com.google.android.material.tabs.TabLayout
  916.         android:id="@+id/mytablayout2"
  917.         android:layout_width="match_parent"
  918.         android:layout_height="wrap_content"
  919.         app:tabMode="auto"
  920.         app:tabGravity="start"
  921.         app:tabBackground="@color/pink"
  922.         app:tabTextColor="@color/white"
  923.         app:layout_constraintStart_toStartOf="parent"
  924.         app:layout_constraintTop_toTopOf="parent"
  925.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  926.         />
  927.     <androidx.viewpager2.widget.ViewPager2
  928.         android:id="@+id/myviepage2"
  929.         android:layout_width="match_parent"
  930.         android:layout_height="0dp"
  931.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  932.         app:layout_constraintBottom_toBottomOf="parent"
  933.         app:layout_constraintStart_toStartOf="parent"
  934.         />
  935. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  936. <?xml version="1.0" encoding="utf-8"?>
  937. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  938.     xmlns:tools="http://schemas.android.com/tools"
  939.     android:layout_width="match_parent"
  940.     android:layout_height="match_parent"
  941.     xmlns:app="http://schemas.android.com/apk/res-auto"
  942.     tools:context=".tablayout.TabLayoutHomeFragment">
  943.     <com.google.android.material.tabs.TabLayout
  944.         android:id="@+id/mytablayout2"
  945.         android:layout_width="match_parent"
  946.         android:layout_height="wrap_content"
  947.         app:tabMode="auto"
  948.         app:tabGravity="start"
  949.         app:tabBackground="@color/pink"
  950.         app:tabTextColor="@color/white"
  951.         app:layout_constraintStart_toStartOf="parent"
  952.         app:layout_constraintTop_toTopOf="parent"
  953.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  954.         />
  955.     <androidx.viewpager2.widget.ViewPager2
  956.         android:id="@+id/myviepage2"
  957.         android:layout_width="match_parent"
  958.         android:layout_height="0dp"
  959.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  960.         app:layout_constraintBottom_toBottomOf="parent"
  961.         app:layout_constraintStart_toStartOf="parent"
  962.         />
  963. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  964. <?xml version="1.0" encoding="utf-8"?>
  965. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  966.     xmlns:tools="http://schemas.android.com/tools"
  967.     android:layout_width="match_parent"
  968.     android:layout_height="match_parent"
  969.     xmlns:app="http://schemas.android.com/apk/res-auto"
  970.     tools:context=".tablayout.TabLayoutHomeFragment">
  971.     <com.google.android.material.tabs.TabLayout
  972.         android:id="@+id/mytablayout2"
  973.         android:layout_width="match_parent"
  974.         android:layout_height="wrap_content"
  975.         app:tabMode="auto"
  976.         app:tabGravity="start"
  977.         app:tabBackground="@color/pink"
  978.         app:tabTextColor="@color/white"
  979.         app:layout_constraintStart_toStartOf="parent"
  980.         app:layout_constraintTop_toTopOf="parent"
  981.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  982.         />
  983.     <androidx.viewpager2.widget.ViewPager2
  984.         android:id="@+id/myviepage2"
  985.         android:layout_width="match_parent"
  986.         android:layout_height="0dp"
  987.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  988.         app:layout_constraintBottom_toBottomOf="parent"
  989.         app:layout_constraintStart_toStartOf="parent"
  990.         />
  991. </androidx.constraintlayout.widget.ConstraintLayout>/>
  992. </androidx.constraintlayout.widget.ConstraintLayout>mParam2 = getArguments().getString(ARG_PARAM2);<?xml version="1.0" encoding="utf-8"?>
  993. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  994.     xmlns:tools="http://schemas.android.com/tools"
  995.     android:layout_width="match_parent"
  996.     android:layout_height="match_parent"
  997.     xmlns:app="http://schemas.android.com/apk/res-auto"
  998.     tools:context=".tablayout.TabLayoutHomeFragment">
  999.     <com.google.android.material.tabs.TabLayout
  1000.         android:id="@+id/mytablayout2"
  1001.         android:layout_width="match_parent"
  1002.         android:layout_height="wrap_content"
  1003.         app:tabMode="auto"
  1004.         app:tabGravity="start"
  1005.         app:tabBackground="@color/pink"
  1006.         app:tabTextColor="@color/white"
  1007.         app:layout_constraintStart_toStartOf="parent"
  1008.         app:layout_constraintTop_toTopOf="parent"
  1009.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1010.         />
  1011.     <androidx.viewpager2.widget.ViewPager2
  1012.         android:id="@+id/myviepage2"
  1013.         android:layout_width="match_parent"
  1014.         android:layout_height="0dp"
  1015.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1016.         app:layout_constraintBottom_toBottomOf="parent"
  1017.         app:layout_constraintStart_toStartOf="parent"
  1018.         />
  1019. </androidx.constraintlayout.widget.ConstraintLayout>}    }    @Override    public View onCreateView(LayoutInflater inflater, ViewGroup container,<?xml version="1.0" encoding="utf-8"?>
  1020. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1021.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1022.     xmlns:tools="http://schemas.android.com/tools"
  1023.     android:layout_width="match_parent"
  1024.     android:layout_height="match_parent"
  1025.     tools:context=".ViewPager2TabLayoutActivity">
  1026.    
  1027.     <androidx.fragment.app.FragmentContainerView
  1028. <?xml version="1.0" encoding="utf-8"?>
  1029. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1030.     xmlns:tools="http://schemas.android.com/tools"
  1031.     android:layout_width="match_parent"
  1032.     android:layout_height="match_parent"
  1033.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1034.     tools:context=".tablayout.TabLayoutHomeFragment">
  1035.     <com.google.android.material.tabs.TabLayout
  1036.         android:id="@+id/mytablayout2"
  1037.         android:layout_width="match_parent"
  1038.         android:layout_height="wrap_content"
  1039.         app:tabMode="auto"
  1040.         app:tabGravity="start"
  1041.         app:tabBackground="@color/pink"
  1042.         app:tabTextColor="@color/white"
  1043.         app:layout_constraintStart_toStartOf="parent"
  1044.         app:layout_constraintTop_toTopOf="parent"
  1045.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1046.         />
  1047.     <androidx.viewpager2.widget.ViewPager2
  1048.         android:id="@+id/myviepage2"
  1049.         android:layout_width="match_parent"
  1050.         android:layout_height="0dp"
  1051.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1052.         app:layout_constraintBottom_toBottomOf="parent"
  1053.         app:layout_constraintStart_toStartOf="parent"
  1054.         />
  1055. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  1056. <?xml version="1.0" encoding="utf-8"?>
  1057. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1058.     xmlns:tools="http://schemas.android.com/tools"
  1059.     android:layout_width="match_parent"
  1060.     android:layout_height="match_parent"
  1061.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1062.     tools:context=".tablayout.TabLayoutHomeFragment">
  1063.     <com.google.android.material.tabs.TabLayout
  1064.         android:id="@+id/mytablayout2"
  1065.         android:layout_width="match_parent"
  1066.         android:layout_height="wrap_content"
  1067.         app:tabMode="auto"
  1068.         app:tabGravity="start"
  1069.         app:tabBackground="@color/pink"
  1070.         app:tabTextColor="@color/white"
  1071.         app:layout_constraintStart_toStartOf="parent"
  1072.         app:layout_constraintTop_toTopOf="parent"
  1073.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1074.         />
  1075.     <androidx.viewpager2.widget.ViewPager2
  1076.         android:id="@+id/myviepage2"
  1077.         android:layout_width="match_parent"
  1078.         android:layout_height="0dp"
  1079.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1080.         app:layout_constraintBottom_toBottomOf="parent"
  1081.         app:layout_constraintStart_toStartOf="parent"
  1082.         />
  1083. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1084. <?xml version="1.0" encoding="utf-8"?>
  1085. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1086.     xmlns:tools="http://schemas.android.com/tools"
  1087.     android:layout_width="match_parent"
  1088.     android:layout_height="match_parent"
  1089.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1090.     tools:context=".tablayout.TabLayoutHomeFragment">
  1091.     <com.google.android.material.tabs.TabLayout
  1092.         android:id="@+id/mytablayout2"
  1093.         android:layout_width="match_parent"
  1094.         android:layout_height="wrap_content"
  1095.         app:tabMode="auto"
  1096.         app:tabGravity="start"
  1097.         app:tabBackground="@color/pink"
  1098.         app:tabTextColor="@color/white"
  1099.         app:layout_constraintStart_toStartOf="parent"
  1100.         app:layout_constraintTop_toTopOf="parent"
  1101.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1102.         />
  1103.     <androidx.viewpager2.widget.ViewPager2
  1104.         android:id="@+id/myviepage2"
  1105.         android:layout_width="match_parent"
  1106.         android:layout_height="0dp"
  1107.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1108.         app:layout_constraintBottom_toBottomOf="parent"
  1109.         app:layout_constraintStart_toStartOf="parent"
  1110.         />
  1111. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1112. <?xml version="1.0" encoding="utf-8"?>
  1113. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1114.     xmlns:tools="http://schemas.android.com/tools"
  1115.     android:layout_width="match_parent"
  1116.     android:layout_height="match_parent"
  1117.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1118.     tools:context=".tablayout.TabLayoutHomeFragment">
  1119.     <com.google.android.material.tabs.TabLayout
  1120.         android:id="@+id/mytablayout2"
  1121.         android:layout_width="match_parent"
  1122.         android:layout_height="wrap_content"
  1123.         app:tabMode="auto"
  1124.         app:tabGravity="start"
  1125.         app:tabBackground="@color/pink"
  1126.         app:tabTextColor="@color/white"
  1127.         app:layout_constraintStart_toStartOf="parent"
  1128.         app:layout_constraintTop_toTopOf="parent"
  1129.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1130.         />
  1131.     <androidx.viewpager2.widget.ViewPager2
  1132.         android:id="@+id/myviepage2"
  1133.         android:layout_width="match_parent"
  1134.         android:layout_height="0dp"
  1135.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1136.         app:layout_constraintBottom_toBottomOf="parent"
  1137.         app:layout_constraintStart_toStartOf="parent"
  1138.         />
  1139. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  1140. <?xml version="1.0" encoding="utf-8"?>
  1141. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1142.     xmlns:tools="http://schemas.android.com/tools"
  1143.     android:layout_width="match_parent"
  1144.     android:layout_height="match_parent"
  1145.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1146.     tools:context=".tablayout.TabLayoutHomeFragment">
  1147.     <com.google.android.material.tabs.TabLayout
  1148.         android:id="@+id/mytablayout2"
  1149.         android:layout_width="match_parent"
  1150.         android:layout_height="wrap_content"
  1151.         app:tabMode="auto"
  1152.         app:tabGravity="start"
  1153.         app:tabBackground="@color/pink"
  1154.         app:tabTextColor="@color/white"
  1155.         app:layout_constraintStart_toStartOf="parent"
  1156.         app:layout_constraintTop_toTopOf="parent"
  1157.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1158.         />
  1159.     <androidx.viewpager2.widget.ViewPager2
  1160.         android:id="@+id/myviepage2"
  1161.         android:layout_width="match_parent"
  1162.         android:layout_height="0dp"
  1163.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1164.         app:layout_constraintBottom_toBottomOf="parent"
  1165.         app:layout_constraintStart_toStartOf="parent"
  1166.         />
  1167. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  1168.     <com.google.android.material.bottomnavigation.BottomNavigationView
  1169. <?xml version="1.0" encoding="utf-8"?>
  1170. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1171.     xmlns:tools="http://schemas.android.com/tools"
  1172.     android:layout_width="match_parent"
  1173.     android:layout_height="match_parent"
  1174.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1175.     tools:context=".tablayout.TabLayoutHomeFragment">
  1176.     <com.google.android.material.tabs.TabLayout
  1177.         android:id="@+id/mytablayout2"
  1178.         android:layout_width="match_parent"
  1179.         android:layout_height="wrap_content"
  1180.         app:tabMode="auto"
  1181.         app:tabGravity="start"
  1182.         app:tabBackground="@color/pink"
  1183.         app:tabTextColor="@color/white"
  1184.         app:layout_constraintStart_toStartOf="parent"
  1185.         app:layout_constraintTop_toTopOf="parent"
  1186.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1187.         />
  1188.     <androidx.viewpager2.widget.ViewPager2
  1189.         android:id="@+id/myviepage2"
  1190.         android:layout_width="match_parent"
  1191.         android:layout_height="0dp"
  1192.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1193.         app:layout_constraintBottom_toBottomOf="parent"
  1194.         app:layout_constraintStart_toStartOf="parent"
  1195.         />
  1196. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  1197. <?xml version="1.0" encoding="utf-8"?>
  1198. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1199.     xmlns:tools="http://schemas.android.com/tools"
  1200.     android:layout_width="match_parent"
  1201.     android:layout_height="match_parent"
  1202.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1203.     tools:context=".tablayout.TabLayoutHomeFragment">
  1204.     <com.google.android.material.tabs.TabLayout
  1205.         android:id="@+id/mytablayout2"
  1206.         android:layout_width="match_parent"
  1207.         android:layout_height="wrap_content"
  1208.         app:tabMode="auto"
  1209.         app:tabGravity="start"
  1210.         app:tabBackground="@color/pink"
  1211.         app:tabTextColor="@color/white"
  1212.         app:layout_constraintStart_toStartOf="parent"
  1213.         app:layout_constraintTop_toTopOf="parent"
  1214.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1215.         />
  1216.     <androidx.viewpager2.widget.ViewPager2
  1217.         android:id="@+id/myviepage2"
  1218.         android:layout_width="match_parent"
  1219.         android:layout_height="0dp"
  1220.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1221.         app:layout_constraintBottom_toBottomOf="parent"
  1222.         app:layout_constraintStart_toStartOf="parent"
  1223.         />
  1224. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1225. <?xml version="1.0" encoding="utf-8"?>
  1226. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1227.     xmlns:tools="http://schemas.android.com/tools"
  1228.     android:layout_width="match_parent"
  1229.     android:layout_height="match_parent"
  1230.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1231.     tools:context=".tablayout.TabLayoutHomeFragment">
  1232.     <com.google.android.material.tabs.TabLayout
  1233.         android:id="@+id/mytablayout2"
  1234.         android:layout_width="match_parent"
  1235.         android:layout_height="wrap_content"
  1236.         app:tabMode="auto"
  1237.         app:tabGravity="start"
  1238.         app:tabBackground="@color/pink"
  1239.         app:tabTextColor="@color/white"
  1240.         app:layout_constraintStart_toStartOf="parent"
  1241.         app:layout_constraintTop_toTopOf="parent"
  1242.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1243.         />
  1244.     <androidx.viewpager2.widget.ViewPager2
  1245.         android:id="@+id/myviepage2"
  1246.         android:layout_width="match_parent"
  1247.         android:layout_height="0dp"
  1248.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1249.         app:layout_constraintBottom_toBottomOf="parent"
  1250.         app:layout_constraintStart_toStartOf="parent"
  1251.         />
  1252. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1253. <?xml version="1.0" encoding="utf-8"?>
  1254. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1255.     xmlns:tools="http://schemas.android.com/tools"
  1256.     android:layout_width="match_parent"
  1257.     android:layout_height="match_parent"
  1258.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1259.     tools:context=".tablayout.TabLayoutHomeFragment">
  1260.     <com.google.android.material.tabs.TabLayout
  1261.         android:id="@+id/mytablayout2"
  1262.         android:layout_width="match_parent"
  1263.         android:layout_height="wrap_content"
  1264.         app:tabMode="auto"
  1265.         app:tabGravity="start"
  1266.         app:tabBackground="@color/pink"
  1267.         app:tabTextColor="@color/white"
  1268.         app:layout_constraintStart_toStartOf="parent"
  1269.         app:layout_constraintTop_toTopOf="parent"
  1270.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1271.         />
  1272.     <androidx.viewpager2.widget.ViewPager2
  1273.         android:id="@+id/myviepage2"
  1274.         android:layout_width="match_parent"
  1275.         android:layout_height="0dp"
  1276.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1277.         app:layout_constraintBottom_toBottomOf="parent"
  1278.         app:layout_constraintStart_toStartOf="parent"
  1279.         />
  1280. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  1281. <?xml version="1.0" encoding="utf-8"?>
  1282. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1283.     xmlns:tools="http://schemas.android.com/tools"
  1284.     android:layout_width="match_parent"
  1285.     android:layout_height="match_parent"
  1286.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1287.     tools:context=".tablayout.TabLayoutHomeFragment">
  1288.     <com.google.android.material.tabs.TabLayout
  1289.         android:id="@+id/mytablayout2"
  1290.         android:layout_width="match_parent"
  1291.         android:layout_height="wrap_content"
  1292.         app:tabMode="auto"
  1293.         app:tabGravity="start"
  1294.         app:tabBackground="@color/pink"
  1295.         app:tabTextColor="@color/white"
  1296.         app:layout_constraintStart_toStartOf="parent"
  1297.         app:layout_constraintTop_toTopOf="parent"
  1298.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1299.         />
  1300.     <androidx.viewpager2.widget.ViewPager2
  1301.         android:id="@+id/myviepage2"
  1302.         android:layout_width="match_parent"
  1303.         android:layout_height="0dp"
  1304.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1305.         app:layout_constraintBottom_toBottomOf="parent"
  1306.         app:layout_constraintStart_toStartOf="parent"
  1307.         />
  1308. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  1309. <?xml version="1.0" encoding="utf-8"?>
  1310. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1311.     xmlns:tools="http://schemas.android.com/tools"
  1312.     android:layout_width="match_parent"
  1313.     android:layout_height="match_parent"
  1314.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1315.     tools:context=".tablayout.TabLayoutHomeFragment">
  1316.     <com.google.android.material.tabs.TabLayout
  1317.         android:id="@+id/mytablayout2"
  1318.         android:layout_width="match_parent"
  1319.         android:layout_height="wrap_content"
  1320.         app:tabMode="auto"
  1321.         app:tabGravity="start"
  1322.         app:tabBackground="@color/pink"
  1323.         app:tabTextColor="@color/white"
  1324.         app:layout_constraintStart_toStartOf="parent"
  1325.         app:layout_constraintTop_toTopOf="parent"
  1326.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1327.         />
  1328.     <androidx.viewpager2.widget.ViewPager2
  1329.         android:id="@+id/myviepage2"
  1330.         android:layout_width="match_parent"
  1331.         android:layout_height="0dp"
  1332.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1333.         app:layout_constraintBottom_toBottomOf="parent"
  1334.         app:layout_constraintStart_toStartOf="parent"
  1335.         />
  1336. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  1337. <?xml version="1.0" encoding="utf-8"?>
  1338. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1339.     xmlns:tools="http://schemas.android.com/tools"
  1340.     android:layout_width="match_parent"
  1341.     android:layout_height="match_parent"
  1342.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1343.     tools:context=".tablayout.TabLayoutHomeFragment">
  1344.     <com.google.android.material.tabs.TabLayout
  1345.         android:id="@+id/mytablayout2"
  1346.         android:layout_width="match_parent"
  1347.         android:layout_height="wrap_content"
  1348.         app:tabMode="auto"
  1349.         app:tabGravity="start"
  1350.         app:tabBackground="@color/pink"
  1351.         app:tabTextColor="@color/white"
  1352.         app:layout_constraintStart_toStartOf="parent"
  1353.         app:layout_constraintTop_toTopOf="parent"
  1354.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1355.         />
  1356.     <androidx.viewpager2.widget.ViewPager2
  1357.         android:id="@+id/myviepage2"
  1358.         android:layout_width="match_parent"
  1359.         android:layout_height="0dp"
  1360.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1361.         app:layout_constraintBottom_toBottomOf="parent"
  1362.         app:layout_constraintStart_toStartOf="parent"
  1363.         />
  1364. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  1365. <?xml version="1.0" encoding="utf-8"?>
  1366. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1367.     xmlns:tools="http://schemas.android.com/tools"
  1368.     android:layout_width="match_parent"
  1369.     android:layout_height="match_parent"
  1370.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1371.     tools:context=".tablayout.TabLayoutHomeFragment">
  1372.     <com.google.android.material.tabs.TabLayout
  1373.         android:id="@+id/mytablayout2"
  1374.         android:layout_width="match_parent"
  1375.         android:layout_height="wrap_content"
  1376.         app:tabMode="auto"
  1377.         app:tabGravity="start"
  1378.         app:tabBackground="@color/pink"
  1379.         app:tabTextColor="@color/white"
  1380.         app:layout_constraintStart_toStartOf="parent"
  1381.         app:layout_constraintTop_toTopOf="parent"
  1382.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1383.         />
  1384.     <androidx.viewpager2.widget.ViewPager2
  1385.         android:id="@+id/myviepage2"
  1386.         android:layout_width="match_parent"
  1387.         android:layout_height="0dp"
  1388.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1389.         app:layout_constraintBottom_toBottomOf="parent"
  1390.         app:layout_constraintStart_toStartOf="parent"
  1391.         />
  1392. </androidx.constraintlayout.widget.ConstraintLayout>/>
  1393. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  1394. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1395.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1396.     xmlns:tools="http://schemas.android.com/tools"
  1397.     android:layout_width="match_parent"
  1398.     android:layout_height="match_parent"
  1399.     tools:context=".ViewPager2TabLayoutActivity">
  1400.    
  1401.     <androidx.fragment.app.FragmentContainerView
  1402. <?xml version="1.0" encoding="utf-8"?>
  1403. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1404.     xmlns:tools="http://schemas.android.com/tools"
  1405.     android:layout_width="match_parent"
  1406.     android:layout_height="match_parent"
  1407.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1408.     tools:context=".tablayout.TabLayoutHomeFragment">
  1409.     <com.google.android.material.tabs.TabLayout
  1410.         android:id="@+id/mytablayout2"
  1411.         android:layout_width="match_parent"
  1412.         android:layout_height="wrap_content"
  1413.         app:tabMode="auto"
  1414.         app:tabGravity="start"
  1415.         app:tabBackground="@color/pink"
  1416.         app:tabTextColor="@color/white"
  1417.         app:layout_constraintStart_toStartOf="parent"
  1418.         app:layout_constraintTop_toTopOf="parent"
  1419.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1420.         />
  1421.     <androidx.viewpager2.widget.ViewPager2
  1422.         android:id="@+id/myviepage2"
  1423.         android:layout_width="match_parent"
  1424.         android:layout_height="0dp"
  1425.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1426.         app:layout_constraintBottom_toBottomOf="parent"
  1427.         app:layout_constraintStart_toStartOf="parent"
  1428.         />
  1429. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  1430. <?xml version="1.0" encoding="utf-8"?>
  1431. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1432.     xmlns:tools="http://schemas.android.com/tools"
  1433.     android:layout_width="match_parent"
  1434.     android:layout_height="match_parent"
  1435.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1436.     tools:context=".tablayout.TabLayoutHomeFragment">
  1437.     <com.google.android.material.tabs.TabLayout
  1438.         android:id="@+id/mytablayout2"
  1439.         android:layout_width="match_parent"
  1440.         android:layout_height="wrap_content"
  1441.         app:tabMode="auto"
  1442.         app:tabGravity="start"
  1443.         app:tabBackground="@color/pink"
  1444.         app:tabTextColor="@color/white"
  1445.         app:layout_constraintStart_toStartOf="parent"
  1446.         app:layout_constraintTop_toTopOf="parent"
  1447.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1448.         />
  1449.     <androidx.viewpager2.widget.ViewPager2
  1450.         android:id="@+id/myviepage2"
  1451.         android:layout_width="match_parent"
  1452.         android:layout_height="0dp"
  1453.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1454.         app:layout_constraintBottom_toBottomOf="parent"
  1455.         app:layout_constraintStart_toStartOf="parent"
  1456.         />
  1457. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1458. <?xml version="1.0" encoding="utf-8"?>
  1459. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1460.     xmlns:tools="http://schemas.android.com/tools"
  1461.     android:layout_width="match_parent"
  1462.     android:layout_height="match_parent"
  1463.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1464.     tools:context=".tablayout.TabLayoutHomeFragment">
  1465.     <com.google.android.material.tabs.TabLayout
  1466.         android:id="@+id/mytablayout2"
  1467.         android:layout_width="match_parent"
  1468.         android:layout_height="wrap_content"
  1469.         app:tabMode="auto"
  1470.         app:tabGravity="start"
  1471.         app:tabBackground="@color/pink"
  1472.         app:tabTextColor="@color/white"
  1473.         app:layout_constraintStart_toStartOf="parent"
  1474.         app:layout_constraintTop_toTopOf="parent"
  1475.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1476.         />
  1477.     <androidx.viewpager2.widget.ViewPager2
  1478.         android:id="@+id/myviepage2"
  1479.         android:layout_width="match_parent"
  1480.         android:layout_height="0dp"
  1481.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1482.         app:layout_constraintBottom_toBottomOf="parent"
  1483.         app:layout_constraintStart_toStartOf="parent"
  1484.         />
  1485. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1486. <?xml version="1.0" encoding="utf-8"?>
  1487. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1488.     xmlns:tools="http://schemas.android.com/tools"
  1489.     android:layout_width="match_parent"
  1490.     android:layout_height="match_parent"
  1491.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1492.     tools:context=".tablayout.TabLayoutHomeFragment">
  1493.     <com.google.android.material.tabs.TabLayout
  1494.         android:id="@+id/mytablayout2"
  1495.         android:layout_width="match_parent"
  1496.         android:layout_height="wrap_content"
  1497.         app:tabMode="auto"
  1498.         app:tabGravity="start"
  1499.         app:tabBackground="@color/pink"
  1500.         app:tabTextColor="@color/white"
  1501.         app:layout_constraintStart_toStartOf="parent"
  1502.         app:layout_constraintTop_toTopOf="parent"
  1503.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1504.         />
  1505.     <androidx.viewpager2.widget.ViewPager2
  1506.         android:id="@+id/myviepage2"
  1507.         android:layout_width="match_parent"
  1508.         android:layout_height="0dp"
  1509.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1510.         app:layout_constraintBottom_toBottomOf="parent"
  1511.         app:layout_constraintStart_toStartOf="parent"
  1512.         />
  1513. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  1514. <?xml version="1.0" encoding="utf-8"?>
  1515. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1516.     xmlns:tools="http://schemas.android.com/tools"
  1517.     android:layout_width="match_parent"
  1518.     android:layout_height="match_parent"
  1519.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1520.     tools:context=".tablayout.TabLayoutHomeFragment">
  1521.     <com.google.android.material.tabs.TabLayout
  1522.         android:id="@+id/mytablayout2"
  1523.         android:layout_width="match_parent"
  1524.         android:layout_height="wrap_content"
  1525.         app:tabMode="auto"
  1526.         app:tabGravity="start"
  1527.         app:tabBackground="@color/pink"
  1528.         app:tabTextColor="@color/white"
  1529.         app:layout_constraintStart_toStartOf="parent"
  1530.         app:layout_constraintTop_toTopOf="parent"
  1531.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1532.         />
  1533.     <androidx.viewpager2.widget.ViewPager2
  1534.         android:id="@+id/myviepage2"
  1535.         android:layout_width="match_parent"
  1536.         android:layout_height="0dp"
  1537.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1538.         app:layout_constraintBottom_toBottomOf="parent"
  1539.         app:layout_constraintStart_toStartOf="parent"
  1540.         />
  1541. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  1542.     <com.google.android.material.bottomnavigation.BottomNavigationView
  1543. <?xml version="1.0" encoding="utf-8"?>
  1544. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1545.     xmlns:tools="http://schemas.android.com/tools"
  1546.     android:layout_width="match_parent"
  1547.     android:layout_height="match_parent"
  1548.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1549.     tools:context=".tablayout.TabLayoutHomeFragment">
  1550.     <com.google.android.material.tabs.TabLayout
  1551.         android:id="@+id/mytablayout2"
  1552.         android:layout_width="match_parent"
  1553.         android:layout_height="wrap_content"
  1554.         app:tabMode="auto"
  1555.         app:tabGravity="start"
  1556.         app:tabBackground="@color/pink"
  1557.         app:tabTextColor="@color/white"
  1558.         app:layout_constraintStart_toStartOf="parent"
  1559.         app:layout_constraintTop_toTopOf="parent"
  1560.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1561.         />
  1562.     <androidx.viewpager2.widget.ViewPager2
  1563.         android:id="@+id/myviepage2"
  1564.         android:layout_width="match_parent"
  1565.         android:layout_height="0dp"
  1566.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1567.         app:layout_constraintBottom_toBottomOf="parent"
  1568.         app:layout_constraintStart_toStartOf="parent"
  1569.         />
  1570. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  1571. <?xml version="1.0" encoding="utf-8"?>
  1572. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1573.     xmlns:tools="http://schemas.android.com/tools"
  1574.     android:layout_width="match_parent"
  1575.     android:layout_height="match_parent"
  1576.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1577.     tools:context=".tablayout.TabLayoutHomeFragment">
  1578.     <com.google.android.material.tabs.TabLayout
  1579.         android:id="@+id/mytablayout2"
  1580.         android:layout_width="match_parent"
  1581.         android:layout_height="wrap_content"
  1582.         app:tabMode="auto"
  1583.         app:tabGravity="start"
  1584.         app:tabBackground="@color/pink"
  1585.         app:tabTextColor="@color/white"
  1586.         app:layout_constraintStart_toStartOf="parent"
  1587.         app:layout_constraintTop_toTopOf="parent"
  1588.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1589.         />
  1590.     <androidx.viewpager2.widget.ViewPager2
  1591.         android:id="@+id/myviepage2"
  1592.         android:layout_width="match_parent"
  1593.         android:layout_height="0dp"
  1594.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1595.         app:layout_constraintBottom_toBottomOf="parent"
  1596.         app:layout_constraintStart_toStartOf="parent"
  1597.         />
  1598. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1599. <?xml version="1.0" encoding="utf-8"?>
  1600. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1601.     xmlns:tools="http://schemas.android.com/tools"
  1602.     android:layout_width="match_parent"
  1603.     android:layout_height="match_parent"
  1604.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1605.     tools:context=".tablayout.TabLayoutHomeFragment">
  1606.     <com.google.android.material.tabs.TabLayout
  1607.         android:id="@+id/mytablayout2"
  1608.         android:layout_width="match_parent"
  1609.         android:layout_height="wrap_content"
  1610.         app:tabMode="auto"
  1611.         app:tabGravity="start"
  1612.         app:tabBackground="@color/pink"
  1613.         app:tabTextColor="@color/white"
  1614.         app:layout_constraintStart_toStartOf="parent"
  1615.         app:layout_constraintTop_toTopOf="parent"
  1616.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1617.         />
  1618.     <androidx.viewpager2.widget.ViewPager2
  1619.         android:id="@+id/myviepage2"
  1620.         android:layout_width="match_parent"
  1621.         android:layout_height="0dp"
  1622.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1623.         app:layout_constraintBottom_toBottomOf="parent"
  1624.         app:layout_constraintStart_toStartOf="parent"
  1625.         />
  1626. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1627. <?xml version="1.0" encoding="utf-8"?>
  1628. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1629.     xmlns:tools="http://schemas.android.com/tools"
  1630.     android:layout_width="match_parent"
  1631.     android:layout_height="match_parent"
  1632.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1633.     tools:context=".tablayout.TabLayoutHomeFragment">
  1634.     <com.google.android.material.tabs.TabLayout
  1635.         android:id="@+id/mytablayout2"
  1636.         android:layout_width="match_parent"
  1637.         android:layout_height="wrap_content"
  1638.         app:tabMode="auto"
  1639.         app:tabGravity="start"
  1640.         app:tabBackground="@color/pink"
  1641.         app:tabTextColor="@color/white"
  1642.         app:layout_constraintStart_toStartOf="parent"
  1643.         app:layout_constraintTop_toTopOf="parent"
  1644.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1645.         />
  1646.     <androidx.viewpager2.widget.ViewPager2
  1647.         android:id="@+id/myviepage2"
  1648.         android:layout_width="match_parent"
  1649.         android:layout_height="0dp"
  1650.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1651.         app:layout_constraintBottom_toBottomOf="parent"
  1652.         app:layout_constraintStart_toStartOf="parent"
  1653.         />
  1654. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  1655. <?xml version="1.0" encoding="utf-8"?>
  1656. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1657.     xmlns:tools="http://schemas.android.com/tools"
  1658.     android:layout_width="match_parent"
  1659.     android:layout_height="match_parent"
  1660.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1661.     tools:context=".tablayout.TabLayoutHomeFragment">
  1662.     <com.google.android.material.tabs.TabLayout
  1663.         android:id="@+id/mytablayout2"
  1664.         android:layout_width="match_parent"
  1665.         android:layout_height="wrap_content"
  1666.         app:tabMode="auto"
  1667.         app:tabGravity="start"
  1668.         app:tabBackground="@color/pink"
  1669.         app:tabTextColor="@color/white"
  1670.         app:layout_constraintStart_toStartOf="parent"
  1671.         app:layout_constraintTop_toTopOf="parent"
  1672.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1673.         />
  1674.     <androidx.viewpager2.widget.ViewPager2
  1675.         android:id="@+id/myviepage2"
  1676.         android:layout_width="match_parent"
  1677.         android:layout_height="0dp"
  1678.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1679.         app:layout_constraintBottom_toBottomOf="parent"
  1680.         app:layout_constraintStart_toStartOf="parent"
  1681.         />
  1682. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  1683. <?xml version="1.0" encoding="utf-8"?>
  1684. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1685.     xmlns:tools="http://schemas.android.com/tools"
  1686.     android:layout_width="match_parent"
  1687.     android:layout_height="match_parent"
  1688.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1689.     tools:context=".tablayout.TabLayoutHomeFragment">
  1690.     <com.google.android.material.tabs.TabLayout
  1691.         android:id="@+id/mytablayout2"
  1692.         android:layout_width="match_parent"
  1693.         android:layout_height="wrap_content"
  1694.         app:tabMode="auto"
  1695.         app:tabGravity="start"
  1696.         app:tabBackground="@color/pink"
  1697.         app:tabTextColor="@color/white"
  1698.         app:layout_constraintStart_toStartOf="parent"
  1699.         app:layout_constraintTop_toTopOf="parent"
  1700.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1701.         />
  1702.     <androidx.viewpager2.widget.ViewPager2
  1703.         android:id="@+id/myviepage2"
  1704.         android:layout_width="match_parent"
  1705.         android:layout_height="0dp"
  1706.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1707.         app:layout_constraintBottom_toBottomOf="parent"
  1708.         app:layout_constraintStart_toStartOf="parent"
  1709.         />
  1710. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  1711. <?xml version="1.0" encoding="utf-8"?>
  1712. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1713.     xmlns:tools="http://schemas.android.com/tools"
  1714.     android:layout_width="match_parent"
  1715.     android:layout_height="match_parent"
  1716.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1717.     tools:context=".tablayout.TabLayoutHomeFragment">
  1718.     <com.google.android.material.tabs.TabLayout
  1719.         android:id="@+id/mytablayout2"
  1720.         android:layout_width="match_parent"
  1721.         android:layout_height="wrap_content"
  1722.         app:tabMode="auto"
  1723.         app:tabGravity="start"
  1724.         app:tabBackground="@color/pink"
  1725.         app:tabTextColor="@color/white"
  1726.         app:layout_constraintStart_toStartOf="parent"
  1727.         app:layout_constraintTop_toTopOf="parent"
  1728.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1729.         />
  1730.     <androidx.viewpager2.widget.ViewPager2
  1731.         android:id="@+id/myviepage2"
  1732.         android:layout_width="match_parent"
  1733.         android:layout_height="0dp"
  1734.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1735.         app:layout_constraintBottom_toBottomOf="parent"
  1736.         app:layout_constraintStart_toStartOf="parent"
  1737.         />
  1738. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  1739. <?xml version="1.0" encoding="utf-8"?>
  1740. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1741.     xmlns:tools="http://schemas.android.com/tools"
  1742.     android:layout_width="match_parent"
  1743.     android:layout_height="match_parent"
  1744.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1745.     tools:context=".tablayout.TabLayoutHomeFragment">
  1746.     <com.google.android.material.tabs.TabLayout
  1747.         android:id="@+id/mytablayout2"
  1748.         android:layout_width="match_parent"
  1749.         android:layout_height="wrap_content"
  1750.         app:tabMode="auto"
  1751.         app:tabGravity="start"
  1752.         app:tabBackground="@color/pink"
  1753.         app:tabTextColor="@color/white"
  1754.         app:layout_constraintStart_toStartOf="parent"
  1755.         app:layout_constraintTop_toTopOf="parent"
  1756.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1757.         />
  1758.     <androidx.viewpager2.widget.ViewPager2
  1759.         android:id="@+id/myviepage2"
  1760.         android:layout_width="match_parent"
  1761.         android:layout_height="0dp"
  1762.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1763.         app:layout_constraintBottom_toBottomOf="parent"
  1764.         app:layout_constraintStart_toStartOf="parent"
  1765.         />
  1766. </androidx.constraintlayout.widget.ConstraintLayout>/>
  1767. </androidx.constraintlayout.widget.ConstraintLayout>     Bundle savedInstanceState) {<?xml version="1.0" encoding="utf-8"?>
  1768. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1769.     xmlns:tools="http://schemas.android.com/tools"
  1770.     android:layout_width="match_parent"
  1771.     android:layout_height="match_parent"
  1772.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1773.     tools:context=".tablayout.TabLayoutHomeFragment">
  1774.     <com.google.android.material.tabs.TabLayout
  1775.         android:id="@+id/mytablayout2"
  1776.         android:layout_width="match_parent"
  1777.         android:layout_height="wrap_content"
  1778.         app:tabMode="auto"
  1779.         app:tabGravity="start"
  1780.         app:tabBackground="@color/pink"
  1781.         app:tabTextColor="@color/white"
  1782.         app:layout_constraintStart_toStartOf="parent"
  1783.         app:layout_constraintTop_toTopOf="parent"
  1784.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1785.         />
  1786.     <androidx.viewpager2.widget.ViewPager2
  1787.         android:id="@+id/myviepage2"
  1788.         android:layout_width="match_parent"
  1789.         android:layout_height="0dp"
  1790.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1791.         app:layout_constraintBottom_toBottomOf="parent"
  1792.         app:layout_constraintStart_toStartOf="parent"
  1793.         />
  1794. </androidx.constraintlayout.widget.ConstraintLayout>// Inflate the layout for this fragment<?xml version="1.0" encoding="utf-8"?>
  1795. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1796.     xmlns:tools="http://schemas.android.com/tools"
  1797.     android:layout_width="match_parent"
  1798.     android:layout_height="match_parent"
  1799.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1800.     tools:context=".tablayout.TabLayoutHomeFragment">
  1801.     <com.google.android.material.tabs.TabLayout
  1802.         android:id="@+id/mytablayout2"
  1803.         android:layout_width="match_parent"
  1804.         android:layout_height="wrap_content"
  1805.         app:tabMode="auto"
  1806.         app:tabGravity="start"
  1807.         app:tabBackground="@color/pink"
  1808.         app:tabTextColor="@color/white"
  1809.         app:layout_constraintStart_toStartOf="parent"
  1810.         app:layout_constraintTop_toTopOf="parent"
  1811.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1812.         />
  1813.     <androidx.viewpager2.widget.ViewPager2
  1814.         android:id="@+id/myviepage2"
  1815.         android:layout_width="match_parent"
  1816.         android:layout_height="0dp"
  1817.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1818.         app:layout_constraintBottom_toBottomOf="parent"
  1819.         app:layout_constraintStart_toStartOf="parent"
  1820.         />
  1821. </androidx.constraintlayout.widget.ConstraintLayout>return inflater.inflate(R.layout.fragment_rec, container, false);    }    @Override    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<?xml version="1.0" encoding="utf-8"?>
  1822. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1823.     xmlns:tools="http://schemas.android.com/tools"
  1824.     android:layout_width="match_parent"
  1825.     android:layout_height="match_parent"
  1826.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1827.     tools:context=".tablayout.TabLayoutHomeFragment">
  1828.     <com.google.android.material.tabs.TabLayout
  1829.         android:id="@+id/mytablayout2"
  1830.         android:layout_width="match_parent"
  1831.         android:layout_height="wrap_content"
  1832.         app:tabMode="auto"
  1833.         app:tabGravity="start"
  1834.         app:tabBackground="@color/pink"
  1835.         app:tabTextColor="@color/white"
  1836.         app:layout_constraintStart_toStartOf="parent"
  1837.         app:layout_constraintTop_toTopOf="parent"
  1838.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1839.         />
  1840.     <androidx.viewpager2.widget.ViewPager2
  1841.         android:id="@+id/myviepage2"
  1842.         android:layout_width="match_parent"
  1843.         android:layout_height="0dp"
  1844.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1845.         app:layout_constraintBottom_toBottomOf="parent"
  1846.         app:layout_constraintStart_toStartOf="parent"
  1847.         />
  1848. </androidx.constraintlayout.widget.ConstraintLayout>super.onViewCreated(view, savedInstanceState);<?xml version="1.0" encoding="utf-8"?>
  1849. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1850.     xmlns:tools="http://schemas.android.com/tools"
  1851.     android:layout_width="match_parent"
  1852.     android:layout_height="match_parent"
  1853.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1854.     tools:context=".tablayout.TabLayoutHomeFragment">
  1855.     <com.google.android.material.tabs.TabLayout
  1856.         android:id="@+id/mytablayout2"
  1857.         android:layout_width="match_parent"
  1858.         android:layout_height="wrap_content"
  1859.         app:tabMode="auto"
  1860.         app:tabGravity="start"
  1861.         app:tabBackground="@color/pink"
  1862.         app:tabTextColor="@color/white"
  1863.         app:layout_constraintStart_toStartOf="parent"
  1864.         app:layout_constraintTop_toTopOf="parent"
  1865.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1866.         />
  1867.     <androidx.viewpager2.widget.ViewPager2
  1868.         android:id="@+id/myviepage2"
  1869.         android:layout_width="match_parent"
  1870.         android:layout_height="0dp"
  1871.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1872.         app:layout_constraintBottom_toBottomOf="parent"
  1873.         app:layout_constraintStart_toStartOf="parent"
  1874.         />
  1875. </androidx.constraintlayout.widget.ConstraintLayout>discountRecyclerView = view.findViewById(R.id.discountedRecycler);<?xml version="1.0" encoding="utf-8"?>
  1876. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1877.     xmlns:tools="http://schemas.android.com/tools"
  1878.     android:layout_width="match_parent"
  1879.     android:layout_height="match_parent"
  1880.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1881.     tools:context=".tablayout.TabLayoutHomeFragment">
  1882.     <com.google.android.material.tabs.TabLayout
  1883.         android:id="@+id/mytablayout2"
  1884.         android:layout_width="match_parent"
  1885.         android:layout_height="wrap_content"
  1886.         app:tabMode="auto"
  1887.         app:tabGravity="start"
  1888.         app:tabBackground="@color/pink"
  1889.         app:tabTextColor="@color/white"
  1890.         app:layout_constraintStart_toStartOf="parent"
  1891.         app:layout_constraintTop_toTopOf="parent"
  1892.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1893.         />
  1894.     <androidx.viewpager2.widget.ViewPager2
  1895.         android:id="@+id/myviepage2"
  1896.         android:layout_width="match_parent"
  1897.         android:layout_height="0dp"
  1898.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1899.         app:layout_constraintBottom_toBottomOf="parent"
  1900.         app:layout_constraintStart_toStartOf="parent"
  1901.         />
  1902. </androidx.constraintlayout.widget.ConstraintLayout>setDiscountedRecycler(initDiscountList());    }    private List initDiscountList() {<?xml version="1.0" encoding="utf-8"?>
  1903. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1904.     xmlns:tools="http://schemas.android.com/tools"
  1905.     android:layout_width="match_parent"
  1906.     android:layout_height="match_parent"
  1907.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1908.     tools:context=".tablayout.TabLayoutHomeFragment">
  1909.     <com.google.android.material.tabs.TabLayout
  1910.         android:id="@+id/mytablayout2"
  1911.         android:layout_width="match_parent"
  1912.         android:layout_height="wrap_content"
  1913.         app:tabMode="auto"
  1914.         app:tabGravity="start"
  1915.         app:tabBackground="@color/pink"
  1916.         app:tabTextColor="@color/white"
  1917.         app:layout_constraintStart_toStartOf="parent"
  1918.         app:layout_constraintTop_toTopOf="parent"
  1919.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1920.         />
  1921.     <androidx.viewpager2.widget.ViewPager2
  1922.         android:id="@+id/myviepage2"
  1923.         android:layout_width="match_parent"
  1924.         android:layout_height="0dp"
  1925.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1926.         app:layout_constraintBottom_toBottomOf="parent"
  1927.         app:layout_constraintStart_toStartOf="parent"
  1928.         />
  1929. </androidx.constraintlayout.widget.ConstraintLayout>List discountedProductsList = new ArrayList();<?xml version="1.0" encoding="utf-8"?>
  1930. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1931.     xmlns:tools="http://schemas.android.com/tools"
  1932.     android:layout_width="match_parent"
  1933.     android:layout_height="match_parent"
  1934.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1935.     tools:context=".tablayout.TabLayoutHomeFragment">
  1936.     <com.google.android.material.tabs.TabLayout
  1937.         android:id="@+id/mytablayout2"
  1938.         android:layout_width="match_parent"
  1939.         android:layout_height="wrap_content"
  1940.         app:tabMode="auto"
  1941.         app:tabGravity="start"
  1942.         app:tabBackground="@color/pink"
  1943.         app:tabTextColor="@color/white"
  1944.         app:layout_constraintStart_toStartOf="parent"
  1945.         app:layout_constraintTop_toTopOf="parent"
  1946.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1947.         />
  1948.     <androidx.viewpager2.widget.ViewPager2
  1949.         android:id="@+id/myviepage2"
  1950.         android:layout_width="match_parent"
  1951.         android:layout_height="0dp"
  1952.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1953.         app:layout_constraintBottom_toBottomOf="parent"
  1954.         app:layout_constraintStart_toStartOf="parent"
  1955.         />
  1956. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductsList.add(new DiscountedProducts(1, discountberry, "草莓", "草莓,多年生草本植物。高10-40厘米,茎低于叶或近相等,密被开展黄色柔毛"));<?xml version="1.0" encoding="utf-8"?>
  1957. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1958.     xmlns:tools="http://schemas.android.com/tools"
  1959.     android:layout_width="match_parent"
  1960.     android:layout_height="match_parent"
  1961.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1962.     tools:context=".tablayout.TabLayoutHomeFragment">
  1963.     <com.google.android.material.tabs.TabLayout
  1964.         android:id="@+id/mytablayout2"
  1965.         android:layout_width="match_parent"
  1966.         android:layout_height="wrap_content"
  1967.         app:tabMode="auto"
  1968.         app:tabGravity="start"
  1969.         app:tabBackground="@color/pink"
  1970.         app:tabTextColor="@color/white"
  1971.         app:layout_constraintStart_toStartOf="parent"
  1972.         app:layout_constraintTop_toTopOf="parent"
  1973.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1974.         />
  1975.     <androidx.viewpager2.widget.ViewPager2
  1976.         android:id="@+id/myviepage2"
  1977.         android:layout_width="match_parent"
  1978.         android:layout_height="0dp"
  1979.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1980.         app:layout_constraintBottom_toBottomOf="parent"
  1981.         app:layout_constraintStart_toStartOf="parent"
  1982.         />
  1983. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductsList.add(new DiscountedProducts(2, discountbrocoli, "花菜","花椰菜(是十字花科、芸薹属植物野甘蓝的变种。"));<?xml version="1.0" encoding="utf-8"?>
  1984. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1985.     xmlns:tools="http://schemas.android.com/tools"
  1986.     android:layout_width="match_parent"
  1987.     android:layout_height="match_parent"
  1988.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1989.     tools:context=".tablayout.TabLayoutHomeFragment">
  1990.     <com.google.android.material.tabs.TabLayout
  1991.         android:id="@+id/mytablayout2"
  1992.         android:layout_width="match_parent"
  1993.         android:layout_height="wrap_content"
  1994.         app:tabMode="auto"
  1995.         app:tabGravity="start"
  1996.         app:tabBackground="@color/pink"
  1997.         app:tabTextColor="@color/white"
  1998.         app:layout_constraintStart_toStartOf="parent"
  1999.         app:layout_constraintTop_toTopOf="parent"
  2000.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2001.         />
  2002.     <androidx.viewpager2.widget.ViewPager2
  2003.         android:id="@+id/myviepage2"
  2004.         android:layout_width="match_parent"
  2005.         android:layout_height="0dp"
  2006.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2007.         app:layout_constraintBottom_toBottomOf="parent"
  2008.         app:layout_constraintStart_toStartOf="parent"
  2009.         />
  2010. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductsList.add(new DiscountedProducts(3, discountmeat, "西红柿", "番茄 是茄科茄属 [2]  一年生或多年生草本植物,体高0.6-2米,全体生粘质腺毛,有强烈气味,茎易倒伏,叶羽状复叶或羽状深裂"));<?xml version="1.0" encoding="utf-8"?>
  2011. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2012.     xmlns:tools="http://schemas.android.com/tools"
  2013.     android:layout_width="match_parent"
  2014.     android:layout_height="match_parent"
  2015.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2016.     tools:context=".tablayout.TabLayoutHomeFragment">
  2017.     <com.google.android.material.tabs.TabLayout
  2018.         android:id="@+id/mytablayout2"
  2019.         android:layout_width="match_parent"
  2020.         android:layout_height="wrap_content"
  2021.         app:tabMode="auto"
  2022.         app:tabGravity="start"
  2023.         app:tabBackground="@color/pink"
  2024.         app:tabTextColor="@color/white"
  2025.         app:layout_constraintStart_toStartOf="parent"
  2026.         app:layout_constraintTop_toTopOf="parent"
  2027.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2028.         />
  2029.     <androidx.viewpager2.widget.ViewPager2
  2030.         android:id="@+id/myviepage2"
  2031.         android:layout_width="match_parent"
  2032.         android:layout_height="0dp"
  2033.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2034.         app:layout_constraintBottom_toBottomOf="parent"
  2035.         app:layout_constraintStart_toStartOf="parent"
  2036.         />
  2037. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductsList.add(new DiscountedProducts(4, discountberry, "西瓜","西瓜 一年生蔓生藤本;茎、枝粗壮,具明显的棱。卷须较粗壮,具短柔毛,叶柄粗,密被柔毛"));<?xml version="1.0" encoding="utf-8"?>
  2038. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2039.     xmlns:tools="http://schemas.android.com/tools"
  2040.     android:layout_width="match_parent"
  2041.     android:layout_height="match_parent"
  2042.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2043.     tools:context=".tablayout.TabLayoutHomeFragment">
  2044.     <com.google.android.material.tabs.TabLayout
  2045.         android:id="@+id/mytablayout2"
  2046.         android:layout_width="match_parent"
  2047.         android:layout_height="wrap_content"
  2048.         app:tabMode="auto"
  2049.         app:tabGravity="start"
  2050.         app:tabBackground="@color/pink"
  2051.         app:tabTextColor="@color/white"
  2052.         app:layout_constraintStart_toStartOf="parent"
  2053.         app:layout_constraintTop_toTopOf="parent"
  2054.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2055.         />
  2056.     <androidx.viewpager2.widget.ViewPager2
  2057.         android:id="@+id/myviepage2"
  2058.         android:layout_width="match_parent"
  2059.         android:layout_height="0dp"
  2060.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2061.         app:layout_constraintBottom_toBottomOf="parent"
  2062.         app:layout_constraintStart_toStartOf="parent"
  2063.         />
  2064. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductsList.add(new DiscountedProducts(5, discountbrocoli,  "南瓜","南瓜 葫芦科南瓜属的一个种,一年生蔓生草本植物"));<?xml version="1.0" encoding="utf-8"?>
  2065. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2066.     xmlns:tools="http://schemas.android.com/tools"
  2067.     android:layout_width="match_parent"
  2068.     android:layout_height="match_parent"
  2069.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2070.     tools:context=".tablayout.TabLayoutHomeFragment">
  2071.     <com.google.android.material.tabs.TabLayout
  2072.         android:id="@+id/mytablayout2"
  2073.         android:layout_width="match_parent"
  2074.         android:layout_height="wrap_content"
  2075.         app:tabMode="auto"
  2076.         app:tabGravity="start"
  2077.         app:tabBackground="@color/pink"
  2078.         app:tabTextColor="@color/white"
  2079.         app:layout_constraintStart_toStartOf="parent"
  2080.         app:layout_constraintTop_toTopOf="parent"
  2081.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2082.         />
  2083.     <androidx.viewpager2.widget.ViewPager2
  2084.         android:id="@+id/myviepage2"
  2085.         android:layout_width="match_parent"
  2086.         android:layout_height="0dp"
  2087.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2088.         app:layout_constraintBottom_toBottomOf="parent"
  2089.         app:layout_constraintStart_toStartOf="parent"
  2090.         />
  2091. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductsList.add(new DiscountedProducts(6, discountmeat, "猕猴桃", "中华猕猴桃 是猕猴桃科、猕猴桃属大植物。大型落叶藤本;幼一枝或厚或薄地被有灰白色茸毛或褐色长硬毛或铁锈色硬毛状刺毛,老时秃净或留有断损残毛"));<?xml version="1.0" encoding="utf-8"?>
  2092. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2093.     xmlns:tools="http://schemas.android.com/tools"
  2094.     android:layout_width="match_parent"
  2095.     android:layout_height="match_parent"
  2096.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2097.     tools:context=".tablayout.TabLayoutHomeFragment">
  2098.     <com.google.android.material.tabs.TabLayout
  2099.         android:id="@+id/mytablayout2"
  2100.         android:layout_width="match_parent"
  2101.         android:layout_height="wrap_content"
  2102.         app:tabMode="auto"
  2103.         app:tabGravity="start"
  2104.         app:tabBackground="@color/pink"
  2105.         app:tabTextColor="@color/white"
  2106.         app:layout_constraintStart_toStartOf="parent"
  2107.         app:layout_constraintTop_toTopOf="parent"
  2108.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2109.         />
  2110.     <androidx.viewpager2.widget.ViewPager2
  2111.         android:id="@+id/myviepage2"
  2112.         android:layout_width="match_parent"
  2113.         android:layout_height="0dp"
  2114.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2115.         app:layout_constraintBottom_toBottomOf="parent"
  2116.         app:layout_constraintStart_toStartOf="parent"
  2117.         />
  2118. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductsList.add(new DiscountedProducts(7, discountberry, "草莓", "草莓,多年生草本植物。高10-40厘米,茎低于叶或近相等,密被开展黄色柔毛"));<?xml version="1.0" encoding="utf-8"?>
  2119. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2120.     xmlns:tools="http://schemas.android.com/tools"
  2121.     android:layout_width="match_parent"
  2122.     android:layout_height="match_parent"
  2123.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2124.     tools:context=".tablayout.TabLayoutHomeFragment">
  2125.     <com.google.android.material.tabs.TabLayout
  2126.         android:id="@+id/mytablayout2"
  2127.         android:layout_width="match_parent"
  2128.         android:layout_height="wrap_content"
  2129.         app:tabMode="auto"
  2130.         app:tabGravity="start"
  2131.         app:tabBackground="@color/pink"
  2132.         app:tabTextColor="@color/white"
  2133.         app:layout_constraintStart_toStartOf="parent"
  2134.         app:layout_constraintTop_toTopOf="parent"
  2135.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2136.         />
  2137.     <androidx.viewpager2.widget.ViewPager2
  2138.         android:id="@+id/myviepage2"
  2139.         android:layout_width="match_parent"
  2140.         android:layout_height="0dp"
  2141.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2142.         app:layout_constraintBottom_toBottomOf="parent"
  2143.         app:layout_constraintStart_toStartOf="parent"
  2144.         />
  2145. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductsList.add(new DiscountedProducts(8, discountbrocoli, "花菜","花椰菜 是十字花科、芸薹属植物野甘蓝的变种。"));<?xml version="1.0" encoding="utf-8"?>
  2146. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2147.     xmlns:tools="http://schemas.android.com/tools"
  2148.     android:layout_width="match_parent"
  2149.     android:layout_height="match_parent"
  2150.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2151.     tools:context=".tablayout.TabLayoutHomeFragment">
  2152.     <com.google.android.material.tabs.TabLayout
  2153.         android:id="@+id/mytablayout2"
  2154.         android:layout_width="match_parent"
  2155.         android:layout_height="wrap_content"
  2156.         app:tabMode="auto"
  2157.         app:tabGravity="start"
  2158.         app:tabBackground="@color/pink"
  2159.         app:tabTextColor="@color/white"
  2160.         app:layout_constraintStart_toStartOf="parent"
  2161.         app:layout_constraintTop_toTopOf="parent"
  2162.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2163.         />
  2164.     <androidx.viewpager2.widget.ViewPager2
  2165.         android:id="@+id/myviepage2"
  2166.         android:layout_width="match_parent"
  2167.         android:layout_height="0dp"
  2168.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2169.         app:layout_constraintBottom_toBottomOf="parent"
  2170.         app:layout_constraintStart_toStartOf="parent"
  2171.         />
  2172. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductsList.add(new DiscountedProducts(9, discountmeat, "西红柿", "番茄 是茄科茄属 [2]  一年生或多年生草本植物,体高0.6-2米,全体生粘质腺毛,有强烈气味,茎易倒伏,叶羽状复叶或羽状深裂"));<?xml version="1.0" encoding="utf-8"?>
  2173. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2174.     xmlns:tools="http://schemas.android.com/tools"
  2175.     android:layout_width="match_parent"
  2176.     android:layout_height="match_parent"
  2177.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2178.     tools:context=".tablayout.TabLayoutHomeFragment">
  2179.     <com.google.android.material.tabs.TabLayout
  2180.         android:id="@+id/mytablayout2"
  2181.         android:layout_width="match_parent"
  2182.         android:layout_height="wrap_content"
  2183.         app:tabMode="auto"
  2184.         app:tabGravity="start"
  2185.         app:tabBackground="@color/pink"
  2186.         app:tabTextColor="@color/white"
  2187.         app:layout_constraintStart_toStartOf="parent"
  2188.         app:layout_constraintTop_toTopOf="parent"
  2189.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2190.         />
  2191.     <androidx.viewpager2.widget.ViewPager2
  2192.         android:id="@+id/myviepage2"
  2193.         android:layout_width="match_parent"
  2194.         android:layout_height="0dp"
  2195.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2196.         app:layout_constraintBottom_toBottomOf="parent"
  2197.         app:layout_constraintStart_toStartOf="parent"
  2198.         />
  2199. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductsList.add(new DiscountedProducts(10, discountberry, "西瓜","西瓜 一年生蔓生藤本;茎、枝粗壮,具明显的棱。卷须较粗壮,具短柔毛,叶柄粗,密被柔毛"));<?xml version="1.0" encoding="utf-8"?>
  2200. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2201.     xmlns:tools="http://schemas.android.com/tools"
  2202.     android:layout_width="match_parent"
  2203.     android:layout_height="match_parent"
  2204.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2205.     tools:context=".tablayout.TabLayoutHomeFragment">
  2206.     <com.google.android.material.tabs.TabLayout
  2207.         android:id="@+id/mytablayout2"
  2208.         android:layout_width="match_parent"
  2209.         android:layout_height="wrap_content"
  2210.         app:tabMode="auto"
  2211.         app:tabGravity="start"
  2212.         app:tabBackground="@color/pink"
  2213.         app:tabTextColor="@color/white"
  2214.         app:layout_constraintStart_toStartOf="parent"
  2215.         app:layout_constraintTop_toTopOf="parent"
  2216.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2217.         />
  2218.     <androidx.viewpager2.widget.ViewPager2
  2219.         android:id="@+id/myviepage2"
  2220.         android:layout_width="match_parent"
  2221.         android:layout_height="0dp"
  2222.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2223.         app:layout_constraintBottom_toBottomOf="parent"
  2224.         app:layout_constraintStart_toStartOf="parent"
  2225.         />
  2226. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductsList.add(new DiscountedProducts(11, discountbrocoli,  "南瓜","南瓜 葫芦科南瓜属的一个种,一年生蔓生草本植物"));<?xml version="1.0" encoding="utf-8"?>
  2227. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2228.     xmlns:tools="http://schemas.android.com/tools"
  2229.     android:layout_width="match_parent"
  2230.     android:layout_height="match_parent"
  2231.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2232.     tools:context=".tablayout.TabLayoutHomeFragment">
  2233.     <com.google.android.material.tabs.TabLayout
  2234.         android:id="@+id/mytablayout2"
  2235.         android:layout_width="match_parent"
  2236.         android:layout_height="wrap_content"
  2237.         app:tabMode="auto"
  2238.         app:tabGravity="start"
  2239.         app:tabBackground="@color/pink"
  2240.         app:tabTextColor="@color/white"
  2241.         app:layout_constraintStart_toStartOf="parent"
  2242.         app:layout_constraintTop_toTopOf="parent"
  2243.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2244.         />
  2245.     <androidx.viewpager2.widget.ViewPager2
  2246.         android:id="@+id/myviepage2"
  2247.         android:layout_width="match_parent"
  2248.         android:layout_height="0dp"
  2249.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2250.         app:layout_constraintBottom_toBottomOf="parent"
  2251.         app:layout_constraintStart_toStartOf="parent"
  2252.         />
  2253. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductsList.add(new DiscountedProducts(12, discountmeat, "猕猴桃", "中华猕猴桃 是猕猴桃科、猕猴桃属大植物。大型落叶藤本;幼一枝或厚或薄地被有灰白色茸毛或褐色长硬毛或铁锈色硬毛状刺毛,老时秃净或留有断损残毛"));<?xml version="1.0" encoding="utf-8"?>
  2254. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2255.     xmlns:tools="http://schemas.android.com/tools"
  2256.     android:layout_width="match_parent"
  2257.     android:layout_height="match_parent"
  2258.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2259.     tools:context=".tablayout.TabLayoutHomeFragment">
  2260.     <com.google.android.material.tabs.TabLayout
  2261.         android:id="@+id/mytablayout2"
  2262.         android:layout_width="match_parent"
  2263.         android:layout_height="wrap_content"
  2264.         app:tabMode="auto"
  2265.         app:tabGravity="start"
  2266.         app:tabBackground="@color/pink"
  2267.         app:tabTextColor="@color/white"
  2268.         app:layout_constraintStart_toStartOf="parent"
  2269.         app:layout_constraintTop_toTopOf="parent"
  2270.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2271.         />
  2272.     <androidx.viewpager2.widget.ViewPager2
  2273.         android:id="@+id/myviepage2"
  2274.         android:layout_width="match_parent"
  2275.         android:layout_height="0dp"
  2276.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2277.         app:layout_constraintBottom_toBottomOf="parent"
  2278.         app:layout_constraintStart_toStartOf="parent"
  2279.         />
  2280. </androidx.constraintlayout.widget.ConstraintLayout>return discountedProductsList ;    }    private void setDiscountedRecycler(List dataList) {<?xml version="1.0" encoding="utf-8"?>
  2281. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2282.     xmlns:tools="http://schemas.android.com/tools"
  2283.     android:layout_width="match_parent"
  2284.     android:layout_height="match_parent"
  2285.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2286.     tools:context=".tablayout.TabLayoutHomeFragment">
  2287.     <com.google.android.material.tabs.TabLayout
  2288.         android:id="@+id/mytablayout2"
  2289.         android:layout_width="match_parent"
  2290.         android:layout_height="wrap_content"
  2291.         app:tabMode="auto"
  2292.         app:tabGravity="start"
  2293.         app:tabBackground="@color/pink"
  2294.         app:tabTextColor="@color/white"
  2295.         app:layout_constraintStart_toStartOf="parent"
  2296.         app:layout_constraintTop_toTopOf="parent"
  2297.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2298.         />
  2299.     <androidx.viewpager2.widget.ViewPager2
  2300.         android:id="@+id/myviepage2"
  2301.         android:layout_width="match_parent"
  2302.         android:layout_height="0dp"
  2303.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2304.         app:layout_constraintBottom_toBottomOf="parent"
  2305.         app:layout_constraintStart_toStartOf="parent"
  2306.         />
  2307. </androidx.constraintlayout.widget.ConstraintLayout>RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false);<?xml version="1.0" encoding="utf-8"?>
  2308. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2309.     xmlns:tools="http://schemas.android.com/tools"
  2310.     android:layout_width="match_parent"
  2311.     android:layout_height="match_parent"
  2312.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2313.     tools:context=".tablayout.TabLayoutHomeFragment">
  2314.     <com.google.android.material.tabs.TabLayout
  2315.         android:id="@+id/mytablayout2"
  2316.         android:layout_width="match_parent"
  2317.         android:layout_height="wrap_content"
  2318.         app:tabMode="auto"
  2319.         app:tabGravity="start"
  2320.         app:tabBackground="@color/pink"
  2321.         app:tabTextColor="@color/white"
  2322.         app:layout_constraintStart_toStartOf="parent"
  2323.         app:layout_constraintTop_toTopOf="parent"
  2324.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2325.         />
  2326.     <androidx.viewpager2.widget.ViewPager2
  2327.         android:id="@+id/myviepage2"
  2328.         android:layout_width="match_parent"
  2329.         android:layout_height="0dp"
  2330.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2331.         app:layout_constraintBottom_toBottomOf="parent"
  2332.         app:layout_constraintStart_toStartOf="parent"
  2333.         />
  2334. </androidx.constraintlayout.widget.ConstraintLayout>discountedProductAdapter = new DiscountedProductAdapter(getContext(),dataList);<?xml version="1.0" encoding="utf-8"?>
  2335. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2336.     xmlns:tools="http://schemas.android.com/tools"
  2337.     android:layout_width="match_parent"
  2338.     android:layout_height="match_parent"
  2339.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2340.     tools:context=".tablayout.TabLayoutHomeFragment">
  2341.     <com.google.android.material.tabs.TabLayout
  2342.         android:id="@+id/mytablayout2"
  2343.         android:layout_width="match_parent"
  2344.         android:layout_height="wrap_content"
  2345.         app:tabMode="auto"
  2346.         app:tabGravity="start"
  2347.         app:tabBackground="@color/pink"
  2348.         app:tabTextColor="@color/white"
  2349.         app:layout_constraintStart_toStartOf="parent"
  2350.         app:layout_constraintTop_toTopOf="parent"
  2351.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2352.         />
  2353.     <androidx.viewpager2.widget.ViewPager2
  2354.         android:id="@+id/myviepage2"
  2355.         android:layout_width="match_parent"
  2356.         android:layout_height="0dp"
  2357.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2358.         app:layout_constraintBottom_toBottomOf="parent"
  2359.         app:layout_constraintStart_toStartOf="parent"
  2360.         />
  2361. </androidx.constraintlayout.widget.ConstraintLayout>discountRecyclerView.setLayoutManager(layoutManager);<?xml version="1.0" encoding="utf-8"?>
  2362. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2363.     xmlns:tools="http://schemas.android.com/tools"
  2364.     android:layout_width="match_parent"
  2365.     android:layout_height="match_parent"
  2366.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2367.     tools:context=".tablayout.TabLayoutHomeFragment">
  2368.     <com.google.android.material.tabs.TabLayout
  2369.         android:id="@+id/mytablayout2"
  2370.         android:layout_width="match_parent"
  2371.         android:layout_height="wrap_content"
  2372.         app:tabMode="auto"
  2373.         app:tabGravity="start"
  2374.         app:tabBackground="@color/pink"
  2375.         app:tabTextColor="@color/white"
  2376.         app:layout_constraintStart_toStartOf="parent"
  2377.         app:layout_constraintTop_toTopOf="parent"
  2378.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2379.         />
  2380.     <androidx.viewpager2.widget.ViewPager2
  2381.         android:id="@+id/myviepage2"
  2382.         android:layout_width="match_parent"
  2383.         android:layout_height="0dp"
  2384.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2385.         app:layout_constraintBottom_toBottomOf="parent"
  2386.         app:layout_constraintStart_toStartOf="parent"
  2387.         />
  2388. </androidx.constraintlayout.widget.ConstraintLayout>discountRecyclerView.setAdapter(discountedProductAdapter);    }}
复制代码
5.实现 ViewPager2TabLayoutActivity
  1. package com.johnny.slzzing;import android.annotation.SuppressLint;import android.os.Bundle;import android.view.MenuItem;import androidx.annotation.NonNull;import androidx.appcompat.app.AppCompatActivity;import androidx.fragment.app.Fragment;import androidx.fragment.app.FragmentContainerView;import com.google.android.material.bottomnavigation.BottomNavigationView;import com.google.android.material.navigation.NavigationBarView;import com.johnny.slzzing.tablayout.TabLayoutHomeFragment2;import java.util.HashMap;import java.util.Map;public class ViewPager2TabLayoutActivity extends AppCompatActivity {    BottomNavigationView bottomNavigationView;    FragmentContainerView fragmentContainerView;    @Override    protected void onCreate(Bundle savedInstanceState) {<?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:tools="http://schemas.android.com/tools"
  4.     android:layout_width="match_parent"
  5.     android:layout_height="match_parent"
  6.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7.     tools:context=".tablayout.TabLayoutHomeFragment">
  8.     <com.google.android.material.tabs.TabLayout
  9.         android:id="@+id/mytablayout2"
  10.         android:layout_width="match_parent"
  11.         android:layout_height="wrap_content"
  12.         app:tabMode="auto"
  13.         app:tabGravity="start"
  14.         app:tabBackground="@color/pink"
  15.         app:tabTextColor="@color/white"
  16.         app:layout_constraintStart_toStartOf="parent"
  17.         app:layout_constraintTop_toTopOf="parent"
  18.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  19.         />
  20.     <androidx.viewpager2.widget.ViewPager2
  21.         android:id="@+id/myviepage2"
  22.         android:layout_width="match_parent"
  23.         android:layout_height="0dp"
  24.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  25.         app:layout_constraintBottom_toBottomOf="parent"
  26.         app:layout_constraintStart_toStartOf="parent"
  27.         />
  28. </androidx.constraintlayout.widget.ConstraintLayout>super.onCreate(savedInstanceState);<?xml version="1.0" encoding="utf-8"?>
  29. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  30.     xmlns:tools="http://schemas.android.com/tools"
  31.     android:layout_width="match_parent"
  32.     android:layout_height="match_parent"
  33.     xmlns:app="http://schemas.android.com/apk/res-auto"
  34.     tools:context=".tablayout.TabLayoutHomeFragment">
  35.     <com.google.android.material.tabs.TabLayout
  36.         android:id="@+id/mytablayout2"
  37.         android:layout_width="match_parent"
  38.         android:layout_height="wrap_content"
  39.         app:tabMode="auto"
  40.         app:tabGravity="start"
  41.         app:tabBackground="@color/pink"
  42.         app:tabTextColor="@color/white"
  43.         app:layout_constraintStart_toStartOf="parent"
  44.         app:layout_constraintTop_toTopOf="parent"
  45.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  46.         />
  47.     <androidx.viewpager2.widget.ViewPager2
  48.         android:id="@+id/myviepage2"
  49.         android:layout_width="match_parent"
  50.         android:layout_height="0dp"
  51.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  52.         app:layout_constraintBottom_toBottomOf="parent"
  53.         app:layout_constraintStart_toStartOf="parent"
  54.         />
  55. </androidx.constraintlayout.widget.ConstraintLayout>setContentView(R.layout.activity_view_pager2_tab_layout);<?xml version="1.0" encoding="utf-8"?>
  56. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  57.     xmlns:tools="http://schemas.android.com/tools"
  58.     android:layout_width="match_parent"
  59.     android:layout_height="match_parent"
  60.     xmlns:app="http://schemas.android.com/apk/res-auto"
  61.     tools:context=".tablayout.TabLayoutHomeFragment">
  62.     <com.google.android.material.tabs.TabLayout
  63.         android:id="@+id/mytablayout2"
  64.         android:layout_width="match_parent"
  65.         android:layout_height="wrap_content"
  66.         app:tabMode="auto"
  67.         app:tabGravity="start"
  68.         app:tabBackground="@color/pink"
  69.         app:tabTextColor="@color/white"
  70.         app:layout_constraintStart_toStartOf="parent"
  71.         app:layout_constraintTop_toTopOf="parent"
  72.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  73.         />
  74.     <androidx.viewpager2.widget.ViewPager2
  75.         android:id="@+id/myviepage2"
  76.         android:layout_width="match_parent"
  77.         android:layout_height="0dp"
  78.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  79.         app:layout_constraintBottom_toBottomOf="parent"
  80.         app:layout_constraintStart_toStartOf="parent"
  81.         />
  82. </androidx.constraintlayout.widget.ConstraintLayout>bottomNavigationView = findViewById(R.id.bootomnav3);<?xml version="1.0" encoding="utf-8"?>
  83. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  84.     xmlns:tools="http://schemas.android.com/tools"
  85.     android:layout_width="match_parent"
  86.     android:layout_height="match_parent"
  87.     xmlns:app="http://schemas.android.com/apk/res-auto"
  88.     tools:context=".tablayout.TabLayoutHomeFragment">
  89.     <com.google.android.material.tabs.TabLayout
  90.         android:id="@+id/mytablayout2"
  91.         android:layout_width="match_parent"
  92.         android:layout_height="wrap_content"
  93.         app:tabMode="auto"
  94.         app:tabGravity="start"
  95.         app:tabBackground="@color/pink"
  96.         app:tabTextColor="@color/white"
  97.         app:layout_constraintStart_toStartOf="parent"
  98.         app:layout_constraintTop_toTopOf="parent"
  99.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  100.         />
  101.     <androidx.viewpager2.widget.ViewPager2
  102.         android:id="@+id/myviepage2"
  103.         android:layout_width="match_parent"
  104.         android:layout_height="0dp"
  105.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  106.         app:layout_constraintBottom_toBottomOf="parent"
  107.         app:layout_constraintStart_toStartOf="parent"
  108.         />
  109. </androidx.constraintlayout.widget.ConstraintLayout>fragmentContainerView  = findViewById(R.id.container_view);<?xml version="1.0" encoding="utf-8"?>
  110. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  111.     xmlns:tools="http://schemas.android.com/tools"
  112.     android:layout_width="match_parent"
  113.     android:layout_height="match_parent"
  114.     xmlns:app="http://schemas.android.com/apk/res-auto"
  115.     tools:context=".tablayout.TabLayoutHomeFragment">
  116.     <com.google.android.material.tabs.TabLayout
  117.         android:id="@+id/mytablayout2"
  118.         android:layout_width="match_parent"
  119.         android:layout_height="wrap_content"
  120.         app:tabMode="auto"
  121.         app:tabGravity="start"
  122.         app:tabBackground="@color/pink"
  123.         app:tabTextColor="@color/white"
  124.         app:layout_constraintStart_toStartOf="parent"
  125.         app:layout_constraintTop_toTopOf="parent"
  126.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  127.         />
  128.     <androidx.viewpager2.widget.ViewPager2
  129.         android:id="@+id/myviepage2"
  130.         android:layout_width="match_parent"
  131.         android:layout_height="0dp"
  132.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  133.         app:layout_constraintBottom_toBottomOf="parent"
  134.         app:layout_constraintStart_toStartOf="parent"
  135.         />
  136. </androidx.constraintlayout.widget.ConstraintLayout>Map fragmentMap = new HashMap();<?xml version="1.0" encoding="utf-8"?>
  137. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  138.     xmlns:tools="http://schemas.android.com/tools"
  139.     android:layout_width="match_parent"
  140.     android:layout_height="match_parent"
  141.     xmlns:app="http://schemas.android.com/apk/res-auto"
  142.     tools:context=".tablayout.TabLayoutHomeFragment">
  143.     <com.google.android.material.tabs.TabLayout
  144.         android:id="@+id/mytablayout2"
  145.         android:layout_width="match_parent"
  146.         android:layout_height="wrap_content"
  147.         app:tabMode="auto"
  148.         app:tabGravity="start"
  149.         app:tabBackground="@color/pink"
  150.         app:tabTextColor="@color/white"
  151.         app:layout_constraintStart_toStartOf="parent"
  152.         app:layout_constraintTop_toTopOf="parent"
  153.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  154.         />
  155.     <androidx.viewpager2.widget.ViewPager2
  156.         android:id="@+id/myviepage2"
  157.         android:layout_width="match_parent"
  158.         android:layout_height="0dp"
  159.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  160.         app:layout_constraintBottom_toBottomOf="parent"
  161.         app:layout_constraintStart_toStartOf="parent"
  162.         />
  163. </androidx.constraintlayout.widget.ConstraintLayout>TabLayoutHomeFragment2 tabLayoutHomeFragment2 = new TabLayoutHomeFragment2();<?xml version="1.0" encoding="utf-8"?>
  164. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  165.     xmlns:tools="http://schemas.android.com/tools"
  166.     android:layout_width="match_parent"
  167.     android:layout_height="match_parent"
  168.     xmlns:app="http://schemas.android.com/apk/res-auto"
  169.     tools:context=".tablayout.TabLayoutHomeFragment">
  170.     <com.google.android.material.tabs.TabLayout
  171.         android:id="@+id/mytablayout2"
  172.         android:layout_width="match_parent"
  173.         android:layout_height="wrap_content"
  174.         app:tabMode="auto"
  175.         app:tabGravity="start"
  176.         app:tabBackground="@color/pink"
  177.         app:tabTextColor="@color/white"
  178.         app:layout_constraintStart_toStartOf="parent"
  179.         app:layout_constraintTop_toTopOf="parent"
  180.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  181.         />
  182.     <androidx.viewpager2.widget.ViewPager2
  183.         android:id="@+id/myviepage2"
  184.         android:layout_width="match_parent"
  185.         android:layout_height="0dp"
  186.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  187.         app:layout_constraintBottom_toBottomOf="parent"
  188.         app:layout_constraintStart_toStartOf="parent"
  189.         />
  190. </androidx.constraintlayout.widget.ConstraintLayout>//这里 第一个home fragment 使用上面编写的 TabLayoutHomeFragment2<?xml version="1.0" encoding="utf-8"?>
  191. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  192.     xmlns:tools="http://schemas.android.com/tools"
  193.     android:layout_width="match_parent"
  194.     android:layout_height="match_parent"
  195.     xmlns:app="http://schemas.android.com/apk/res-auto"
  196.     tools:context=".tablayout.TabLayoutHomeFragment">
  197.     <com.google.android.material.tabs.TabLayout
  198.         android:id="@+id/mytablayout2"
  199.         android:layout_width="match_parent"
  200.         android:layout_height="wrap_content"
  201.         app:tabMode="auto"
  202.         app:tabGravity="start"
  203.         app:tabBackground="@color/pink"
  204.         app:tabTextColor="@color/white"
  205.         app:layout_constraintStart_toStartOf="parent"
  206.         app:layout_constraintTop_toTopOf="parent"
  207.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  208.         />
  209.     <androidx.viewpager2.widget.ViewPager2
  210.         android:id="@+id/myviepage2"
  211.         android:layout_width="match_parent"
  212.         android:layout_height="0dp"
  213.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  214.         app:layout_constraintBottom_toBottomOf="parent"
  215.         app:layout_constraintStart_toStartOf="parent"
  216.         />
  217. </androidx.constraintlayout.widget.ConstraintLayout>fragmentMap.put(R.id.home_item,tabLayoutHomeFragment2);<?xml version="1.0" encoding="utf-8"?>
  218. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  219.     xmlns:tools="http://schemas.android.com/tools"
  220.     android:layout_width="match_parent"
  221.     android:layout_height="match_parent"
  222.     xmlns:app="http://schemas.android.com/apk/res-auto"
  223.     tools:context=".tablayout.TabLayoutHomeFragment">
  224.     <com.google.android.material.tabs.TabLayout
  225.         android:id="@+id/mytablayout2"
  226.         android:layout_width="match_parent"
  227.         android:layout_height="wrap_content"
  228.         app:tabMode="auto"
  229.         app:tabGravity="start"
  230.         app:tabBackground="@color/pink"
  231.         app:tabTextColor="@color/white"
  232.         app:layout_constraintStart_toStartOf="parent"
  233.         app:layout_constraintTop_toTopOf="parent"
  234.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  235.         />
  236.     <androidx.viewpager2.widget.ViewPager2
  237.         android:id="@+id/myviepage2"
  238.         android:layout_width="match_parent"
  239.         android:layout_height="0dp"
  240.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  241.         app:layout_constraintBottom_toBottomOf="parent"
  242.         app:layout_constraintStart_toStartOf="parent"
  243.         />
  244. </androidx.constraintlayout.widget.ConstraintLayout>fragmentMap.put(R.id.type_item,Bottom2Fragment.newInstance("我是typefragment", ""));<?xml version="1.0" encoding="utf-8"?>
  245. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  246.     xmlns:tools="http://schemas.android.com/tools"
  247.     android:layout_width="match_parent"
  248.     android:layout_height="match_parent"
  249.     xmlns:app="http://schemas.android.com/apk/res-auto"
  250.     tools:context=".tablayout.TabLayoutHomeFragment">
  251.     <com.google.android.material.tabs.TabLayout
  252.         android:id="@+id/mytablayout2"
  253.         android:layout_width="match_parent"
  254.         android:layout_height="wrap_content"
  255.         app:tabMode="auto"
  256.         app:tabGravity="start"
  257.         app:tabBackground="@color/pink"
  258.         app:tabTextColor="@color/white"
  259.         app:layout_constraintStart_toStartOf="parent"
  260.         app:layout_constraintTop_toTopOf="parent"
  261.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  262.         />
  263.     <androidx.viewpager2.widget.ViewPager2
  264.         android:id="@+id/myviepage2"
  265.         android:layout_width="match_parent"
  266.         android:layout_height="0dp"
  267.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  268.         app:layout_constraintBottom_toBottomOf="parent"
  269.         app:layout_constraintStart_toStartOf="parent"
  270.         />
  271. </androidx.constraintlayout.widget.ConstraintLayout>fragmentMap.put(R.id.add_item,Bottom2Fragment.newInstance("我是addfragment", ""));<?xml version="1.0" encoding="utf-8"?>
  272. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  273.     xmlns:tools="http://schemas.android.com/tools"
  274.     android:layout_width="match_parent"
  275.     android:layout_height="match_parent"
  276.     xmlns:app="http://schemas.android.com/apk/res-auto"
  277.     tools:context=".tablayout.TabLayoutHomeFragment">
  278.     <com.google.android.material.tabs.TabLayout
  279.         android:id="@+id/mytablayout2"
  280.         android:layout_width="match_parent"
  281.         android:layout_height="wrap_content"
  282.         app:tabMode="auto"
  283.         app:tabGravity="start"
  284.         app:tabBackground="@color/pink"
  285.         app:tabTextColor="@color/white"
  286.         app:layout_constraintStart_toStartOf="parent"
  287.         app:layout_constraintTop_toTopOf="parent"
  288.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  289.         />
  290.     <androidx.viewpager2.widget.ViewPager2
  291.         android:id="@+id/myviepage2"
  292.         android:layout_width="match_parent"
  293.         android:layout_height="0dp"
  294.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  295.         app:layout_constraintBottom_toBottomOf="parent"
  296.         app:layout_constraintStart_toStartOf="parent"
  297.         />
  298. </androidx.constraintlayout.widget.ConstraintLayout>fragmentMap.put(R.id.setting_item,Bottom2Fragment.newInstance("我是settingfragment", ""));<?xml version="1.0" encoding="utf-8"?>
  299. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  300.     xmlns:tools="http://schemas.android.com/tools"
  301.     android:layout_width="match_parent"
  302.     android:layout_height="match_parent"
  303.     xmlns:app="http://schemas.android.com/apk/res-auto"
  304.     tools:context=".tablayout.TabLayoutHomeFragment">
  305.     <com.google.android.material.tabs.TabLayout
  306.         android:id="@+id/mytablayout2"
  307.         android:layout_width="match_parent"
  308.         android:layout_height="wrap_content"
  309.         app:tabMode="auto"
  310.         app:tabGravity="start"
  311.         app:tabBackground="@color/pink"
  312.         app:tabTextColor="@color/white"
  313.         app:layout_constraintStart_toStartOf="parent"
  314.         app:layout_constraintTop_toTopOf="parent"
  315.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  316.         />
  317.     <androidx.viewpager2.widget.ViewPager2
  318.         android:id="@+id/myviepage2"
  319.         android:layout_width="match_parent"
  320.         android:layout_height="0dp"
  321.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  322.         app:layout_constraintBottom_toBottomOf="parent"
  323.         app:layout_constraintStart_toStartOf="parent"
  324.         />
  325. </androidx.constraintlayout.widget.ConstraintLayout>//bottomNavigationView 点击用于替换 FragmentContainerView<?xml version="1.0" encoding="utf-8"?>
  326. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  327.     xmlns:tools="http://schemas.android.com/tools"
  328.     android:layout_width="match_parent"
  329.     android:layout_height="match_parent"
  330.     xmlns:app="http://schemas.android.com/apk/res-auto"
  331.     tools:context=".tablayout.TabLayoutHomeFragment">
  332.     <com.google.android.material.tabs.TabLayout
  333.         android:id="@+id/mytablayout2"
  334.         android:layout_width="match_parent"
  335.         android:layout_height="wrap_content"
  336.         app:tabMode="auto"
  337.         app:tabGravity="start"
  338.         app:tabBackground="@color/pink"
  339.         app:tabTextColor="@color/white"
  340.         app:layout_constraintStart_toStartOf="parent"
  341.         app:layout_constraintTop_toTopOf="parent"
  342.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  343.         />
  344.     <androidx.viewpager2.widget.ViewPager2
  345.         android:id="@+id/myviepage2"
  346.         android:layout_width="match_parent"
  347.         android:layout_height="0dp"
  348.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  349.         app:layout_constraintBottom_toBottomOf="parent"
  350.         app:layout_constraintStart_toStartOf="parent"
  351.         />
  352. </androidx.constraintlayout.widget.ConstraintLayout>bottomNavigationView.setOnItemSelectedListener(new NavigationBarView.OnItemSelectedListener() {<?xml version="1.0" encoding="utf-8"?>
  353. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  354.     xmlns:app="http://schemas.android.com/apk/res-auto"
  355.     xmlns:tools="http://schemas.android.com/tools"
  356.     android:layout_width="match_parent"
  357.     android:layout_height="match_parent"
  358.     tools:context=".ViewPager2TabLayoutActivity">
  359.    
  360.     <androidx.fragment.app.FragmentContainerView
  361. <?xml version="1.0" encoding="utf-8"?>
  362. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  363.     xmlns:tools="http://schemas.android.com/tools"
  364.     android:layout_width="match_parent"
  365.     android:layout_height="match_parent"
  366.     xmlns:app="http://schemas.android.com/apk/res-auto"
  367.     tools:context=".tablayout.TabLayoutHomeFragment">
  368.     <com.google.android.material.tabs.TabLayout
  369.         android:id="@+id/mytablayout2"
  370.         android:layout_width="match_parent"
  371.         android:layout_height="wrap_content"
  372.         app:tabMode="auto"
  373.         app:tabGravity="start"
  374.         app:tabBackground="@color/pink"
  375.         app:tabTextColor="@color/white"
  376.         app:layout_constraintStart_toStartOf="parent"
  377.         app:layout_constraintTop_toTopOf="parent"
  378.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  379.         />
  380.     <androidx.viewpager2.widget.ViewPager2
  381.         android:id="@+id/myviepage2"
  382.         android:layout_width="match_parent"
  383.         android:layout_height="0dp"
  384.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  385.         app:layout_constraintBottom_toBottomOf="parent"
  386.         app:layout_constraintStart_toStartOf="parent"
  387.         />
  388. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  389. <?xml version="1.0" encoding="utf-8"?>
  390. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  391.     xmlns:tools="http://schemas.android.com/tools"
  392.     android:layout_width="match_parent"
  393.     android:layout_height="match_parent"
  394.     xmlns:app="http://schemas.android.com/apk/res-auto"
  395.     tools:context=".tablayout.TabLayoutHomeFragment">
  396.     <com.google.android.material.tabs.TabLayout
  397.         android:id="@+id/mytablayout2"
  398.         android:layout_width="match_parent"
  399.         android:layout_height="wrap_content"
  400.         app:tabMode="auto"
  401.         app:tabGravity="start"
  402.         app:tabBackground="@color/pink"
  403.         app:tabTextColor="@color/white"
  404.         app:layout_constraintStart_toStartOf="parent"
  405.         app:layout_constraintTop_toTopOf="parent"
  406.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  407.         />
  408.     <androidx.viewpager2.widget.ViewPager2
  409.         android:id="@+id/myviepage2"
  410.         android:layout_width="match_parent"
  411.         android:layout_height="0dp"
  412.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  413.         app:layout_constraintBottom_toBottomOf="parent"
  414.         app:layout_constraintStart_toStartOf="parent"
  415.         />
  416. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  417. <?xml version="1.0" encoding="utf-8"?>
  418. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  419.     xmlns:tools="http://schemas.android.com/tools"
  420.     android:layout_width="match_parent"
  421.     android:layout_height="match_parent"
  422.     xmlns:app="http://schemas.android.com/apk/res-auto"
  423.     tools:context=".tablayout.TabLayoutHomeFragment">
  424.     <com.google.android.material.tabs.TabLayout
  425.         android:id="@+id/mytablayout2"
  426.         android:layout_width="match_parent"
  427.         android:layout_height="wrap_content"
  428.         app:tabMode="auto"
  429.         app:tabGravity="start"
  430.         app:tabBackground="@color/pink"
  431.         app:tabTextColor="@color/white"
  432.         app:layout_constraintStart_toStartOf="parent"
  433.         app:layout_constraintTop_toTopOf="parent"
  434.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  435.         />
  436.     <androidx.viewpager2.widget.ViewPager2
  437.         android:id="@+id/myviepage2"
  438.         android:layout_width="match_parent"
  439.         android:layout_height="0dp"
  440.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  441.         app:layout_constraintBottom_toBottomOf="parent"
  442.         app:layout_constraintStart_toStartOf="parent"
  443.         />
  444. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  445. <?xml version="1.0" encoding="utf-8"?>
  446. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  447.     xmlns:tools="http://schemas.android.com/tools"
  448.     android:layout_width="match_parent"
  449.     android:layout_height="match_parent"
  450.     xmlns:app="http://schemas.android.com/apk/res-auto"
  451.     tools:context=".tablayout.TabLayoutHomeFragment">
  452.     <com.google.android.material.tabs.TabLayout
  453.         android:id="@+id/mytablayout2"
  454.         android:layout_width="match_parent"
  455.         android:layout_height="wrap_content"
  456.         app:tabMode="auto"
  457.         app:tabGravity="start"
  458.         app:tabBackground="@color/pink"
  459.         app:tabTextColor="@color/white"
  460.         app:layout_constraintStart_toStartOf="parent"
  461.         app:layout_constraintTop_toTopOf="parent"
  462.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  463.         />
  464.     <androidx.viewpager2.widget.ViewPager2
  465.         android:id="@+id/myviepage2"
  466.         android:layout_width="match_parent"
  467.         android:layout_height="0dp"
  468.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  469.         app:layout_constraintBottom_toBottomOf="parent"
  470.         app:layout_constraintStart_toStartOf="parent"
  471.         />
  472. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  473. <?xml version="1.0" encoding="utf-8"?>
  474. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  475.     xmlns:tools="http://schemas.android.com/tools"
  476.     android:layout_width="match_parent"
  477.     android:layout_height="match_parent"
  478.     xmlns:app="http://schemas.android.com/apk/res-auto"
  479.     tools:context=".tablayout.TabLayoutHomeFragment">
  480.     <com.google.android.material.tabs.TabLayout
  481.         android:id="@+id/mytablayout2"
  482.         android:layout_width="match_parent"
  483.         android:layout_height="wrap_content"
  484.         app:tabMode="auto"
  485.         app:tabGravity="start"
  486.         app:tabBackground="@color/pink"
  487.         app:tabTextColor="@color/white"
  488.         app:layout_constraintStart_toStartOf="parent"
  489.         app:layout_constraintTop_toTopOf="parent"
  490.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  491.         />
  492.     <androidx.viewpager2.widget.ViewPager2
  493.         android:id="@+id/myviepage2"
  494.         android:layout_width="match_parent"
  495.         android:layout_height="0dp"
  496.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  497.         app:layout_constraintBottom_toBottomOf="parent"
  498.         app:layout_constraintStart_toStartOf="parent"
  499.         />
  500. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  501.     <com.google.android.material.bottomnavigation.BottomNavigationView
  502. <?xml version="1.0" encoding="utf-8"?>
  503. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  504.     xmlns:tools="http://schemas.android.com/tools"
  505.     android:layout_width="match_parent"
  506.     android:layout_height="match_parent"
  507.     xmlns:app="http://schemas.android.com/apk/res-auto"
  508.     tools:context=".tablayout.TabLayoutHomeFragment">
  509.     <com.google.android.material.tabs.TabLayout
  510.         android:id="@+id/mytablayout2"
  511.         android:layout_width="match_parent"
  512.         android:layout_height="wrap_content"
  513.         app:tabMode="auto"
  514.         app:tabGravity="start"
  515.         app:tabBackground="@color/pink"
  516.         app:tabTextColor="@color/white"
  517.         app:layout_constraintStart_toStartOf="parent"
  518.         app:layout_constraintTop_toTopOf="parent"
  519.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  520.         />
  521.     <androidx.viewpager2.widget.ViewPager2
  522.         android:id="@+id/myviepage2"
  523.         android:layout_width="match_parent"
  524.         android:layout_height="0dp"
  525.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  526.         app:layout_constraintBottom_toBottomOf="parent"
  527.         app:layout_constraintStart_toStartOf="parent"
  528.         />
  529. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  530. <?xml version="1.0" encoding="utf-8"?>
  531. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  532.     xmlns:tools="http://schemas.android.com/tools"
  533.     android:layout_width="match_parent"
  534.     android:layout_height="match_parent"
  535.     xmlns:app="http://schemas.android.com/apk/res-auto"
  536.     tools:context=".tablayout.TabLayoutHomeFragment">
  537.     <com.google.android.material.tabs.TabLayout
  538.         android:id="@+id/mytablayout2"
  539.         android:layout_width="match_parent"
  540.         android:layout_height="wrap_content"
  541.         app:tabMode="auto"
  542.         app:tabGravity="start"
  543.         app:tabBackground="@color/pink"
  544.         app:tabTextColor="@color/white"
  545.         app:layout_constraintStart_toStartOf="parent"
  546.         app:layout_constraintTop_toTopOf="parent"
  547.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  548.         />
  549.     <androidx.viewpager2.widget.ViewPager2
  550.         android:id="@+id/myviepage2"
  551.         android:layout_width="match_parent"
  552.         android:layout_height="0dp"
  553.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  554.         app:layout_constraintBottom_toBottomOf="parent"
  555.         app:layout_constraintStart_toStartOf="parent"
  556.         />
  557. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  558. <?xml version="1.0" encoding="utf-8"?>
  559. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  560.     xmlns:tools="http://schemas.android.com/tools"
  561.     android:layout_width="match_parent"
  562.     android:layout_height="match_parent"
  563.     xmlns:app="http://schemas.android.com/apk/res-auto"
  564.     tools:context=".tablayout.TabLayoutHomeFragment">
  565.     <com.google.android.material.tabs.TabLayout
  566.         android:id="@+id/mytablayout2"
  567.         android:layout_width="match_parent"
  568.         android:layout_height="wrap_content"
  569.         app:tabMode="auto"
  570.         app:tabGravity="start"
  571.         app:tabBackground="@color/pink"
  572.         app:tabTextColor="@color/white"
  573.         app:layout_constraintStart_toStartOf="parent"
  574.         app:layout_constraintTop_toTopOf="parent"
  575.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  576.         />
  577.     <androidx.viewpager2.widget.ViewPager2
  578.         android:id="@+id/myviepage2"
  579.         android:layout_width="match_parent"
  580.         android:layout_height="0dp"
  581.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  582.         app:layout_constraintBottom_toBottomOf="parent"
  583.         app:layout_constraintStart_toStartOf="parent"
  584.         />
  585. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  586. <?xml version="1.0" encoding="utf-8"?>
  587. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  588.     xmlns:tools="http://schemas.android.com/tools"
  589.     android:layout_width="match_parent"
  590.     android:layout_height="match_parent"
  591.     xmlns:app="http://schemas.android.com/apk/res-auto"
  592.     tools:context=".tablayout.TabLayoutHomeFragment">
  593.     <com.google.android.material.tabs.TabLayout
  594.         android:id="@+id/mytablayout2"
  595.         android:layout_width="match_parent"
  596.         android:layout_height="wrap_content"
  597.         app:tabMode="auto"
  598.         app:tabGravity="start"
  599.         app:tabBackground="@color/pink"
  600.         app:tabTextColor="@color/white"
  601.         app:layout_constraintStart_toStartOf="parent"
  602.         app:layout_constraintTop_toTopOf="parent"
  603.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  604.         />
  605.     <androidx.viewpager2.widget.ViewPager2
  606.         android:id="@+id/myviepage2"
  607.         android:layout_width="match_parent"
  608.         android:layout_height="0dp"
  609.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  610.         app:layout_constraintBottom_toBottomOf="parent"
  611.         app:layout_constraintStart_toStartOf="parent"
  612.         />
  613. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  614. <?xml version="1.0" encoding="utf-8"?>
  615. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  616.     xmlns:tools="http://schemas.android.com/tools"
  617.     android:layout_width="match_parent"
  618.     android:layout_height="match_parent"
  619.     xmlns:app="http://schemas.android.com/apk/res-auto"
  620.     tools:context=".tablayout.TabLayoutHomeFragment">
  621.     <com.google.android.material.tabs.TabLayout
  622.         android:id="@+id/mytablayout2"
  623.         android:layout_width="match_parent"
  624.         android:layout_height="wrap_content"
  625.         app:tabMode="auto"
  626.         app:tabGravity="start"
  627.         app:tabBackground="@color/pink"
  628.         app:tabTextColor="@color/white"
  629.         app:layout_constraintStart_toStartOf="parent"
  630.         app:layout_constraintTop_toTopOf="parent"
  631.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  632.         />
  633.     <androidx.viewpager2.widget.ViewPager2
  634.         android:id="@+id/myviepage2"
  635.         android:layout_width="match_parent"
  636.         android:layout_height="0dp"
  637.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  638.         app:layout_constraintBottom_toBottomOf="parent"
  639.         app:layout_constraintStart_toStartOf="parent"
  640.         />
  641. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  642. <?xml version="1.0" encoding="utf-8"?>
  643. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  644.     xmlns:tools="http://schemas.android.com/tools"
  645.     android:layout_width="match_parent"
  646.     android:layout_height="match_parent"
  647.     xmlns:app="http://schemas.android.com/apk/res-auto"
  648.     tools:context=".tablayout.TabLayoutHomeFragment">
  649.     <com.google.android.material.tabs.TabLayout
  650.         android:id="@+id/mytablayout2"
  651.         android:layout_width="match_parent"
  652.         android:layout_height="wrap_content"
  653.         app:tabMode="auto"
  654.         app:tabGravity="start"
  655.         app:tabBackground="@color/pink"
  656.         app:tabTextColor="@color/white"
  657.         app:layout_constraintStart_toStartOf="parent"
  658.         app:layout_constraintTop_toTopOf="parent"
  659.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  660.         />
  661.     <androidx.viewpager2.widget.ViewPager2
  662.         android:id="@+id/myviepage2"
  663.         android:layout_width="match_parent"
  664.         android:layout_height="0dp"
  665.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  666.         app:layout_constraintBottom_toBottomOf="parent"
  667.         app:layout_constraintStart_toStartOf="parent"
  668.         />
  669. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  670. <?xml version="1.0" encoding="utf-8"?>
  671. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  672.     xmlns:tools="http://schemas.android.com/tools"
  673.     android:layout_width="match_parent"
  674.     android:layout_height="match_parent"
  675.     xmlns:app="http://schemas.android.com/apk/res-auto"
  676.     tools:context=".tablayout.TabLayoutHomeFragment">
  677.     <com.google.android.material.tabs.TabLayout
  678.         android:id="@+id/mytablayout2"
  679.         android:layout_width="match_parent"
  680.         android:layout_height="wrap_content"
  681.         app:tabMode="auto"
  682.         app:tabGravity="start"
  683.         app:tabBackground="@color/pink"
  684.         app:tabTextColor="@color/white"
  685.         app:layout_constraintStart_toStartOf="parent"
  686.         app:layout_constraintTop_toTopOf="parent"
  687.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  688.         />
  689.     <androidx.viewpager2.widget.ViewPager2
  690.         android:id="@+id/myviepage2"
  691.         android:layout_width="match_parent"
  692.         android:layout_height="0dp"
  693.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  694.         app:layout_constraintBottom_toBottomOf="parent"
  695.         app:layout_constraintStart_toStartOf="parent"
  696.         />
  697. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  698. <?xml version="1.0" encoding="utf-8"?>
  699. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  700.     xmlns:tools="http://schemas.android.com/tools"
  701.     android:layout_width="match_parent"
  702.     android:layout_height="match_parent"
  703.     xmlns:app="http://schemas.android.com/apk/res-auto"
  704.     tools:context=".tablayout.TabLayoutHomeFragment">
  705.     <com.google.android.material.tabs.TabLayout
  706.         android:id="@+id/mytablayout2"
  707.         android:layout_width="match_parent"
  708.         android:layout_height="wrap_content"
  709.         app:tabMode="auto"
  710.         app:tabGravity="start"
  711.         app:tabBackground="@color/pink"
  712.         app:tabTextColor="@color/white"
  713.         app:layout_constraintStart_toStartOf="parent"
  714.         app:layout_constraintTop_toTopOf="parent"
  715.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  716.         />
  717.     <androidx.viewpager2.widget.ViewPager2
  718.         android:id="@+id/myviepage2"
  719.         android:layout_width="match_parent"
  720.         android:layout_height="0dp"
  721.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  722.         app:layout_constraintBottom_toBottomOf="parent"
  723.         app:layout_constraintStart_toStartOf="parent"
  724.         />
  725. </androidx.constraintlayout.widget.ConstraintLayout>/>
  726. </androidx.constraintlayout.widget.ConstraintLayout>@SuppressLint("NonConstantResourceId")<?xml version="1.0" encoding="utf-8"?>
  727. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  728.     xmlns:app="http://schemas.android.com/apk/res-auto"
  729.     xmlns:tools="http://schemas.android.com/tools"
  730.     android:layout_width="match_parent"
  731.     android:layout_height="match_parent"
  732.     tools:context=".ViewPager2TabLayoutActivity">
  733.    
  734.     <androidx.fragment.app.FragmentContainerView
  735. <?xml version="1.0" encoding="utf-8"?>
  736. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  737.     xmlns:tools="http://schemas.android.com/tools"
  738.     android:layout_width="match_parent"
  739.     android:layout_height="match_parent"
  740.     xmlns:app="http://schemas.android.com/apk/res-auto"
  741.     tools:context=".tablayout.TabLayoutHomeFragment">
  742.     <com.google.android.material.tabs.TabLayout
  743.         android:id="@+id/mytablayout2"
  744.         android:layout_width="match_parent"
  745.         android:layout_height="wrap_content"
  746.         app:tabMode="auto"
  747.         app:tabGravity="start"
  748.         app:tabBackground="@color/pink"
  749.         app:tabTextColor="@color/white"
  750.         app:layout_constraintStart_toStartOf="parent"
  751.         app:layout_constraintTop_toTopOf="parent"
  752.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  753.         />
  754.     <androidx.viewpager2.widget.ViewPager2
  755.         android:id="@+id/myviepage2"
  756.         android:layout_width="match_parent"
  757.         android:layout_height="0dp"
  758.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  759.         app:layout_constraintBottom_toBottomOf="parent"
  760.         app:layout_constraintStart_toStartOf="parent"
  761.         />
  762. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  763. <?xml version="1.0" encoding="utf-8"?>
  764. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  765.     xmlns:tools="http://schemas.android.com/tools"
  766.     android:layout_width="match_parent"
  767.     android:layout_height="match_parent"
  768.     xmlns:app="http://schemas.android.com/apk/res-auto"
  769.     tools:context=".tablayout.TabLayoutHomeFragment">
  770.     <com.google.android.material.tabs.TabLayout
  771.         android:id="@+id/mytablayout2"
  772.         android:layout_width="match_parent"
  773.         android:layout_height="wrap_content"
  774.         app:tabMode="auto"
  775.         app:tabGravity="start"
  776.         app:tabBackground="@color/pink"
  777.         app:tabTextColor="@color/white"
  778.         app:layout_constraintStart_toStartOf="parent"
  779.         app:layout_constraintTop_toTopOf="parent"
  780.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  781.         />
  782.     <androidx.viewpager2.widget.ViewPager2
  783.         android:id="@+id/myviepage2"
  784.         android:layout_width="match_parent"
  785.         android:layout_height="0dp"
  786.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  787.         app:layout_constraintBottom_toBottomOf="parent"
  788.         app:layout_constraintStart_toStartOf="parent"
  789.         />
  790. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  791. <?xml version="1.0" encoding="utf-8"?>
  792. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  793.     xmlns:tools="http://schemas.android.com/tools"
  794.     android:layout_width="match_parent"
  795.     android:layout_height="match_parent"
  796.     xmlns:app="http://schemas.android.com/apk/res-auto"
  797.     tools:context=".tablayout.TabLayoutHomeFragment">
  798.     <com.google.android.material.tabs.TabLayout
  799.         android:id="@+id/mytablayout2"
  800.         android:layout_width="match_parent"
  801.         android:layout_height="wrap_content"
  802.         app:tabMode="auto"
  803.         app:tabGravity="start"
  804.         app:tabBackground="@color/pink"
  805.         app:tabTextColor="@color/white"
  806.         app:layout_constraintStart_toStartOf="parent"
  807.         app:layout_constraintTop_toTopOf="parent"
  808.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  809.         />
  810.     <androidx.viewpager2.widget.ViewPager2
  811.         android:id="@+id/myviepage2"
  812.         android:layout_width="match_parent"
  813.         android:layout_height="0dp"
  814.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  815.         app:layout_constraintBottom_toBottomOf="parent"
  816.         app:layout_constraintStart_toStartOf="parent"
  817.         />
  818. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  819. <?xml version="1.0" encoding="utf-8"?>
  820. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  821.     xmlns:tools="http://schemas.android.com/tools"
  822.     android:layout_width="match_parent"
  823.     android:layout_height="match_parent"
  824.     xmlns:app="http://schemas.android.com/apk/res-auto"
  825.     tools:context=".tablayout.TabLayoutHomeFragment">
  826.     <com.google.android.material.tabs.TabLayout
  827.         android:id="@+id/mytablayout2"
  828.         android:layout_width="match_parent"
  829.         android:layout_height="wrap_content"
  830.         app:tabMode="auto"
  831.         app:tabGravity="start"
  832.         app:tabBackground="@color/pink"
  833.         app:tabTextColor="@color/white"
  834.         app:layout_constraintStart_toStartOf="parent"
  835.         app:layout_constraintTop_toTopOf="parent"
  836.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  837.         />
  838.     <androidx.viewpager2.widget.ViewPager2
  839.         android:id="@+id/myviepage2"
  840.         android:layout_width="match_parent"
  841.         android:layout_height="0dp"
  842.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  843.         app:layout_constraintBottom_toBottomOf="parent"
  844.         app:layout_constraintStart_toStartOf="parent"
  845.         />
  846. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  847. <?xml version="1.0" encoding="utf-8"?>
  848. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  849.     xmlns:tools="http://schemas.android.com/tools"
  850.     android:layout_width="match_parent"
  851.     android:layout_height="match_parent"
  852.     xmlns:app="http://schemas.android.com/apk/res-auto"
  853.     tools:context=".tablayout.TabLayoutHomeFragment">
  854.     <com.google.android.material.tabs.TabLayout
  855.         android:id="@+id/mytablayout2"
  856.         android:layout_width="match_parent"
  857.         android:layout_height="wrap_content"
  858.         app:tabMode="auto"
  859.         app:tabGravity="start"
  860.         app:tabBackground="@color/pink"
  861.         app:tabTextColor="@color/white"
  862.         app:layout_constraintStart_toStartOf="parent"
  863.         app:layout_constraintTop_toTopOf="parent"
  864.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  865.         />
  866.     <androidx.viewpager2.widget.ViewPager2
  867.         android:id="@+id/myviepage2"
  868.         android:layout_width="match_parent"
  869.         android:layout_height="0dp"
  870.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  871.         app:layout_constraintBottom_toBottomOf="parent"
  872.         app:layout_constraintStart_toStartOf="parent"
  873.         />
  874. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  875.     <com.google.android.material.bottomnavigation.BottomNavigationView
  876. <?xml version="1.0" encoding="utf-8"?>
  877. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  878.     xmlns:tools="http://schemas.android.com/tools"
  879.     android:layout_width="match_parent"
  880.     android:layout_height="match_parent"
  881.     xmlns:app="http://schemas.android.com/apk/res-auto"
  882.     tools:context=".tablayout.TabLayoutHomeFragment">
  883.     <com.google.android.material.tabs.TabLayout
  884.         android:id="@+id/mytablayout2"
  885.         android:layout_width="match_parent"
  886.         android:layout_height="wrap_content"
  887.         app:tabMode="auto"
  888.         app:tabGravity="start"
  889.         app:tabBackground="@color/pink"
  890.         app:tabTextColor="@color/white"
  891.         app:layout_constraintStart_toStartOf="parent"
  892.         app:layout_constraintTop_toTopOf="parent"
  893.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  894.         />
  895.     <androidx.viewpager2.widget.ViewPager2
  896.         android:id="@+id/myviepage2"
  897.         android:layout_width="match_parent"
  898.         android:layout_height="0dp"
  899.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  900.         app:layout_constraintBottom_toBottomOf="parent"
  901.         app:layout_constraintStart_toStartOf="parent"
  902.         />
  903. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  904. <?xml version="1.0" encoding="utf-8"?>
  905. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  906.     xmlns:tools="http://schemas.android.com/tools"
  907.     android:layout_width="match_parent"
  908.     android:layout_height="match_parent"
  909.     xmlns:app="http://schemas.android.com/apk/res-auto"
  910.     tools:context=".tablayout.TabLayoutHomeFragment">
  911.     <com.google.android.material.tabs.TabLayout
  912.         android:id="@+id/mytablayout2"
  913.         android:layout_width="match_parent"
  914.         android:layout_height="wrap_content"
  915.         app:tabMode="auto"
  916.         app:tabGravity="start"
  917.         app:tabBackground="@color/pink"
  918.         app:tabTextColor="@color/white"
  919.         app:layout_constraintStart_toStartOf="parent"
  920.         app:layout_constraintTop_toTopOf="parent"
  921.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  922.         />
  923.     <androidx.viewpager2.widget.ViewPager2
  924.         android:id="@+id/myviepage2"
  925.         android:layout_width="match_parent"
  926.         android:layout_height="0dp"
  927.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  928.         app:layout_constraintBottom_toBottomOf="parent"
  929.         app:layout_constraintStart_toStartOf="parent"
  930.         />
  931. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  932. <?xml version="1.0" encoding="utf-8"?>
  933. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  934.     xmlns:tools="http://schemas.android.com/tools"
  935.     android:layout_width="match_parent"
  936.     android:layout_height="match_parent"
  937.     xmlns:app="http://schemas.android.com/apk/res-auto"
  938.     tools:context=".tablayout.TabLayoutHomeFragment">
  939.     <com.google.android.material.tabs.TabLayout
  940.         android:id="@+id/mytablayout2"
  941.         android:layout_width="match_parent"
  942.         android:layout_height="wrap_content"
  943.         app:tabMode="auto"
  944.         app:tabGravity="start"
  945.         app:tabBackground="@color/pink"
  946.         app:tabTextColor="@color/white"
  947.         app:layout_constraintStart_toStartOf="parent"
  948.         app:layout_constraintTop_toTopOf="parent"
  949.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  950.         />
  951.     <androidx.viewpager2.widget.ViewPager2
  952.         android:id="@+id/myviepage2"
  953.         android:layout_width="match_parent"
  954.         android:layout_height="0dp"
  955.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  956.         app:layout_constraintBottom_toBottomOf="parent"
  957.         app:layout_constraintStart_toStartOf="parent"
  958.         />
  959. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  960. <?xml version="1.0" encoding="utf-8"?>
  961. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  962.     xmlns:tools="http://schemas.android.com/tools"
  963.     android:layout_width="match_parent"
  964.     android:layout_height="match_parent"
  965.     xmlns:app="http://schemas.android.com/apk/res-auto"
  966.     tools:context=".tablayout.TabLayoutHomeFragment">
  967.     <com.google.android.material.tabs.TabLayout
  968.         android:id="@+id/mytablayout2"
  969.         android:layout_width="match_parent"
  970.         android:layout_height="wrap_content"
  971.         app:tabMode="auto"
  972.         app:tabGravity="start"
  973.         app:tabBackground="@color/pink"
  974.         app:tabTextColor="@color/white"
  975.         app:layout_constraintStart_toStartOf="parent"
  976.         app:layout_constraintTop_toTopOf="parent"
  977.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  978.         />
  979.     <androidx.viewpager2.widget.ViewPager2
  980.         android:id="@+id/myviepage2"
  981.         android:layout_width="match_parent"
  982.         android:layout_height="0dp"
  983.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  984.         app:layout_constraintBottom_toBottomOf="parent"
  985.         app:layout_constraintStart_toStartOf="parent"
  986.         />
  987. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  988. <?xml version="1.0" encoding="utf-8"?>
  989. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  990.     xmlns:tools="http://schemas.android.com/tools"
  991.     android:layout_width="match_parent"
  992.     android:layout_height="match_parent"
  993.     xmlns:app="http://schemas.android.com/apk/res-auto"
  994.     tools:context=".tablayout.TabLayoutHomeFragment">
  995.     <com.google.android.material.tabs.TabLayout
  996.         android:id="@+id/mytablayout2"
  997.         android:layout_width="match_parent"
  998.         android:layout_height="wrap_content"
  999.         app:tabMode="auto"
  1000.         app:tabGravity="start"
  1001.         app:tabBackground="@color/pink"
  1002.         app:tabTextColor="@color/white"
  1003.         app:layout_constraintStart_toStartOf="parent"
  1004.         app:layout_constraintTop_toTopOf="parent"
  1005.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1006.         />
  1007.     <androidx.viewpager2.widget.ViewPager2
  1008.         android:id="@+id/myviepage2"
  1009.         android:layout_width="match_parent"
  1010.         android:layout_height="0dp"
  1011.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1012.         app:layout_constraintBottom_toBottomOf="parent"
  1013.         app:layout_constraintStart_toStartOf="parent"
  1014.         />
  1015. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  1016. <?xml version="1.0" encoding="utf-8"?>
  1017. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1018.     xmlns:tools="http://schemas.android.com/tools"
  1019.     android:layout_width="match_parent"
  1020.     android:layout_height="match_parent"
  1021.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1022.     tools:context=".tablayout.TabLayoutHomeFragment">
  1023.     <com.google.android.material.tabs.TabLayout
  1024.         android:id="@+id/mytablayout2"
  1025.         android:layout_width="match_parent"
  1026.         android:layout_height="wrap_content"
  1027.         app:tabMode="auto"
  1028.         app:tabGravity="start"
  1029.         app:tabBackground="@color/pink"
  1030.         app:tabTextColor="@color/white"
  1031.         app:layout_constraintStart_toStartOf="parent"
  1032.         app:layout_constraintTop_toTopOf="parent"
  1033.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1034.         />
  1035.     <androidx.viewpager2.widget.ViewPager2
  1036.         android:id="@+id/myviepage2"
  1037.         android:layout_width="match_parent"
  1038.         android:layout_height="0dp"
  1039.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1040.         app:layout_constraintBottom_toBottomOf="parent"
  1041.         app:layout_constraintStart_toStartOf="parent"
  1042.         />
  1043. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  1044. <?xml version="1.0" encoding="utf-8"?>
  1045. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1046.     xmlns:tools="http://schemas.android.com/tools"
  1047.     android:layout_width="match_parent"
  1048.     android:layout_height="match_parent"
  1049.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1050.     tools:context=".tablayout.TabLayoutHomeFragment">
  1051.     <com.google.android.material.tabs.TabLayout
  1052.         android:id="@+id/mytablayout2"
  1053.         android:layout_width="match_parent"
  1054.         android:layout_height="wrap_content"
  1055.         app:tabMode="auto"
  1056.         app:tabGravity="start"
  1057.         app:tabBackground="@color/pink"
  1058.         app:tabTextColor="@color/white"
  1059.         app:layout_constraintStart_toStartOf="parent"
  1060.         app:layout_constraintTop_toTopOf="parent"
  1061.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1062.         />
  1063.     <androidx.viewpager2.widget.ViewPager2
  1064.         android:id="@+id/myviepage2"
  1065.         android:layout_width="match_parent"
  1066.         android:layout_height="0dp"
  1067.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1068.         app:layout_constraintBottom_toBottomOf="parent"
  1069.         app:layout_constraintStart_toStartOf="parent"
  1070.         />
  1071. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  1072. <?xml version="1.0" encoding="utf-8"?>
  1073. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1074.     xmlns:tools="http://schemas.android.com/tools"
  1075.     android:layout_width="match_parent"
  1076.     android:layout_height="match_parent"
  1077.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1078.     tools:context=".tablayout.TabLayoutHomeFragment">
  1079.     <com.google.android.material.tabs.TabLayout
  1080.         android:id="@+id/mytablayout2"
  1081.         android:layout_width="match_parent"
  1082.         android:layout_height="wrap_content"
  1083.         app:tabMode="auto"
  1084.         app:tabGravity="start"
  1085.         app:tabBackground="@color/pink"
  1086.         app:tabTextColor="@color/white"
  1087.         app:layout_constraintStart_toStartOf="parent"
  1088.         app:layout_constraintTop_toTopOf="parent"
  1089.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1090.         />
  1091.     <androidx.viewpager2.widget.ViewPager2
  1092.         android:id="@+id/myviepage2"
  1093.         android:layout_width="match_parent"
  1094.         android:layout_height="0dp"
  1095.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1096.         app:layout_constraintBottom_toBottomOf="parent"
  1097.         app:layout_constraintStart_toStartOf="parent"
  1098.         />
  1099. </androidx.constraintlayout.widget.ConstraintLayout>/>
  1100. </androidx.constraintlayout.widget.ConstraintLayout>@Override<?xml version="1.0" encoding="utf-8"?>
  1101. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1102.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1103.     xmlns:tools="http://schemas.android.com/tools"
  1104.     android:layout_width="match_parent"
  1105.     android:layout_height="match_parent"
  1106.     tools:context=".ViewPager2TabLayoutActivity">
  1107.    
  1108.     <androidx.fragment.app.FragmentContainerView
  1109. <?xml version="1.0" encoding="utf-8"?>
  1110. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1111.     xmlns:tools="http://schemas.android.com/tools"
  1112.     android:layout_width="match_parent"
  1113.     android:layout_height="match_parent"
  1114.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1115.     tools:context=".tablayout.TabLayoutHomeFragment">
  1116.     <com.google.android.material.tabs.TabLayout
  1117.         android:id="@+id/mytablayout2"
  1118.         android:layout_width="match_parent"
  1119.         android:layout_height="wrap_content"
  1120.         app:tabMode="auto"
  1121.         app:tabGravity="start"
  1122.         app:tabBackground="@color/pink"
  1123.         app:tabTextColor="@color/white"
  1124.         app:layout_constraintStart_toStartOf="parent"
  1125.         app:layout_constraintTop_toTopOf="parent"
  1126.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1127.         />
  1128.     <androidx.viewpager2.widget.ViewPager2
  1129.         android:id="@+id/myviepage2"
  1130.         android:layout_width="match_parent"
  1131.         android:layout_height="0dp"
  1132.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1133.         app:layout_constraintBottom_toBottomOf="parent"
  1134.         app:layout_constraintStart_toStartOf="parent"
  1135.         />
  1136. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  1137. <?xml version="1.0" encoding="utf-8"?>
  1138. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1139.     xmlns:tools="http://schemas.android.com/tools"
  1140.     android:layout_width="match_parent"
  1141.     android:layout_height="match_parent"
  1142.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1143.     tools:context=".tablayout.TabLayoutHomeFragment">
  1144.     <com.google.android.material.tabs.TabLayout
  1145.         android:id="@+id/mytablayout2"
  1146.         android:layout_width="match_parent"
  1147.         android:layout_height="wrap_content"
  1148.         app:tabMode="auto"
  1149.         app:tabGravity="start"
  1150.         app:tabBackground="@color/pink"
  1151.         app:tabTextColor="@color/white"
  1152.         app:layout_constraintStart_toStartOf="parent"
  1153.         app:layout_constraintTop_toTopOf="parent"
  1154.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1155.         />
  1156.     <androidx.viewpager2.widget.ViewPager2
  1157.         android:id="@+id/myviepage2"
  1158.         android:layout_width="match_parent"
  1159.         android:layout_height="0dp"
  1160.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1161.         app:layout_constraintBottom_toBottomOf="parent"
  1162.         app:layout_constraintStart_toStartOf="parent"
  1163.         />
  1164. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1165. <?xml version="1.0" encoding="utf-8"?>
  1166. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1167.     xmlns:tools="http://schemas.android.com/tools"
  1168.     android:layout_width="match_parent"
  1169.     android:layout_height="match_parent"
  1170.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1171.     tools:context=".tablayout.TabLayoutHomeFragment">
  1172.     <com.google.android.material.tabs.TabLayout
  1173.         android:id="@+id/mytablayout2"
  1174.         android:layout_width="match_parent"
  1175.         android:layout_height="wrap_content"
  1176.         app:tabMode="auto"
  1177.         app:tabGravity="start"
  1178.         app:tabBackground="@color/pink"
  1179.         app:tabTextColor="@color/white"
  1180.         app:layout_constraintStart_toStartOf="parent"
  1181.         app:layout_constraintTop_toTopOf="parent"
  1182.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1183.         />
  1184.     <androidx.viewpager2.widget.ViewPager2
  1185.         android:id="@+id/myviepage2"
  1186.         android:layout_width="match_parent"
  1187.         android:layout_height="0dp"
  1188.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1189.         app:layout_constraintBottom_toBottomOf="parent"
  1190.         app:layout_constraintStart_toStartOf="parent"
  1191.         />
  1192. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1193. <?xml version="1.0" encoding="utf-8"?>
  1194. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1195.     xmlns:tools="http://schemas.android.com/tools"
  1196.     android:layout_width="match_parent"
  1197.     android:layout_height="match_parent"
  1198.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1199.     tools:context=".tablayout.TabLayoutHomeFragment">
  1200.     <com.google.android.material.tabs.TabLayout
  1201.         android:id="@+id/mytablayout2"
  1202.         android:layout_width="match_parent"
  1203.         android:layout_height="wrap_content"
  1204.         app:tabMode="auto"
  1205.         app:tabGravity="start"
  1206.         app:tabBackground="@color/pink"
  1207.         app:tabTextColor="@color/white"
  1208.         app:layout_constraintStart_toStartOf="parent"
  1209.         app:layout_constraintTop_toTopOf="parent"
  1210.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1211.         />
  1212.     <androidx.viewpager2.widget.ViewPager2
  1213.         android:id="@+id/myviepage2"
  1214.         android:layout_width="match_parent"
  1215.         android:layout_height="0dp"
  1216.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1217.         app:layout_constraintBottom_toBottomOf="parent"
  1218.         app:layout_constraintStart_toStartOf="parent"
  1219.         />
  1220. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  1221. <?xml version="1.0" encoding="utf-8"?>
  1222. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1223.     xmlns:tools="http://schemas.android.com/tools"
  1224.     android:layout_width="match_parent"
  1225.     android:layout_height="match_parent"
  1226.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1227.     tools:context=".tablayout.TabLayoutHomeFragment">
  1228.     <com.google.android.material.tabs.TabLayout
  1229.         android:id="@+id/mytablayout2"
  1230.         android:layout_width="match_parent"
  1231.         android:layout_height="wrap_content"
  1232.         app:tabMode="auto"
  1233.         app:tabGravity="start"
  1234.         app:tabBackground="@color/pink"
  1235.         app:tabTextColor="@color/white"
  1236.         app:layout_constraintStart_toStartOf="parent"
  1237.         app:layout_constraintTop_toTopOf="parent"
  1238.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1239.         />
  1240.     <androidx.viewpager2.widget.ViewPager2
  1241.         android:id="@+id/myviepage2"
  1242.         android:layout_width="match_parent"
  1243.         android:layout_height="0dp"
  1244.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1245.         app:layout_constraintBottom_toBottomOf="parent"
  1246.         app:layout_constraintStart_toStartOf="parent"
  1247.         />
  1248. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  1249.     <com.google.android.material.bottomnavigation.BottomNavigationView
  1250. <?xml version="1.0" encoding="utf-8"?>
  1251. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1252.     xmlns:tools="http://schemas.android.com/tools"
  1253.     android:layout_width="match_parent"
  1254.     android:layout_height="match_parent"
  1255.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1256.     tools:context=".tablayout.TabLayoutHomeFragment">
  1257.     <com.google.android.material.tabs.TabLayout
  1258.         android:id="@+id/mytablayout2"
  1259.         android:layout_width="match_parent"
  1260.         android:layout_height="wrap_content"
  1261.         app:tabMode="auto"
  1262.         app:tabGravity="start"
  1263.         app:tabBackground="@color/pink"
  1264.         app:tabTextColor="@color/white"
  1265.         app:layout_constraintStart_toStartOf="parent"
  1266.         app:layout_constraintTop_toTopOf="parent"
  1267.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1268.         />
  1269.     <androidx.viewpager2.widget.ViewPager2
  1270.         android:id="@+id/myviepage2"
  1271.         android:layout_width="match_parent"
  1272.         android:layout_height="0dp"
  1273.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1274.         app:layout_constraintBottom_toBottomOf="parent"
  1275.         app:layout_constraintStart_toStartOf="parent"
  1276.         />
  1277. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  1278. <?xml version="1.0" encoding="utf-8"?>
  1279. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1280.     xmlns:tools="http://schemas.android.com/tools"
  1281.     android:layout_width="match_parent"
  1282.     android:layout_height="match_parent"
  1283.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1284.     tools:context=".tablayout.TabLayoutHomeFragment">
  1285.     <com.google.android.material.tabs.TabLayout
  1286.         android:id="@+id/mytablayout2"
  1287.         android:layout_width="match_parent"
  1288.         android:layout_height="wrap_content"
  1289.         app:tabMode="auto"
  1290.         app:tabGravity="start"
  1291.         app:tabBackground="@color/pink"
  1292.         app:tabTextColor="@color/white"
  1293.         app:layout_constraintStart_toStartOf="parent"
  1294.         app:layout_constraintTop_toTopOf="parent"
  1295.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1296.         />
  1297.     <androidx.viewpager2.widget.ViewPager2
  1298.         android:id="@+id/myviepage2"
  1299.         android:layout_width="match_parent"
  1300.         android:layout_height="0dp"
  1301.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1302.         app:layout_constraintBottom_toBottomOf="parent"
  1303.         app:layout_constraintStart_toStartOf="parent"
  1304.         />
  1305. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1306. <?xml version="1.0" encoding="utf-8"?>
  1307. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1308.     xmlns:tools="http://schemas.android.com/tools"
  1309.     android:layout_width="match_parent"
  1310.     android:layout_height="match_parent"
  1311.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1312.     tools:context=".tablayout.TabLayoutHomeFragment">
  1313.     <com.google.android.material.tabs.TabLayout
  1314.         android:id="@+id/mytablayout2"
  1315.         android:layout_width="match_parent"
  1316.         android:layout_height="wrap_content"
  1317.         app:tabMode="auto"
  1318.         app:tabGravity="start"
  1319.         app:tabBackground="@color/pink"
  1320.         app:tabTextColor="@color/white"
  1321.         app:layout_constraintStart_toStartOf="parent"
  1322.         app:layout_constraintTop_toTopOf="parent"
  1323.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1324.         />
  1325.     <androidx.viewpager2.widget.ViewPager2
  1326.         android:id="@+id/myviepage2"
  1327.         android:layout_width="match_parent"
  1328.         android:layout_height="0dp"
  1329.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1330.         app:layout_constraintBottom_toBottomOf="parent"
  1331.         app:layout_constraintStart_toStartOf="parent"
  1332.         />
  1333. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1334. <?xml version="1.0" encoding="utf-8"?>
  1335. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1336.     xmlns:tools="http://schemas.android.com/tools"
  1337.     android:layout_width="match_parent"
  1338.     android:layout_height="match_parent"
  1339.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1340.     tools:context=".tablayout.TabLayoutHomeFragment">
  1341.     <com.google.android.material.tabs.TabLayout
  1342.         android:id="@+id/mytablayout2"
  1343.         android:layout_width="match_parent"
  1344.         android:layout_height="wrap_content"
  1345.         app:tabMode="auto"
  1346.         app:tabGravity="start"
  1347.         app:tabBackground="@color/pink"
  1348.         app:tabTextColor="@color/white"
  1349.         app:layout_constraintStart_toStartOf="parent"
  1350.         app:layout_constraintTop_toTopOf="parent"
  1351.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1352.         />
  1353.     <androidx.viewpager2.widget.ViewPager2
  1354.         android:id="@+id/myviepage2"
  1355.         android:layout_width="match_parent"
  1356.         android:layout_height="0dp"
  1357.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1358.         app:layout_constraintBottom_toBottomOf="parent"
  1359.         app:layout_constraintStart_toStartOf="parent"
  1360.         />
  1361. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  1362. <?xml version="1.0" encoding="utf-8"?>
  1363. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1364.     xmlns:tools="http://schemas.android.com/tools"
  1365.     android:layout_width="match_parent"
  1366.     android:layout_height="match_parent"
  1367.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1368.     tools:context=".tablayout.TabLayoutHomeFragment">
  1369.     <com.google.android.material.tabs.TabLayout
  1370.         android:id="@+id/mytablayout2"
  1371.         android:layout_width="match_parent"
  1372.         android:layout_height="wrap_content"
  1373.         app:tabMode="auto"
  1374.         app:tabGravity="start"
  1375.         app:tabBackground="@color/pink"
  1376.         app:tabTextColor="@color/white"
  1377.         app:layout_constraintStart_toStartOf="parent"
  1378.         app:layout_constraintTop_toTopOf="parent"
  1379.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1380.         />
  1381.     <androidx.viewpager2.widget.ViewPager2
  1382.         android:id="@+id/myviepage2"
  1383.         android:layout_width="match_parent"
  1384.         android:layout_height="0dp"
  1385.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1386.         app:layout_constraintBottom_toBottomOf="parent"
  1387.         app:layout_constraintStart_toStartOf="parent"
  1388.         />
  1389. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  1390. <?xml version="1.0" encoding="utf-8"?>
  1391. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1392.     xmlns:tools="http://schemas.android.com/tools"
  1393.     android:layout_width="match_parent"
  1394.     android:layout_height="match_parent"
  1395.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1396.     tools:context=".tablayout.TabLayoutHomeFragment">
  1397.     <com.google.android.material.tabs.TabLayout
  1398.         android:id="@+id/mytablayout2"
  1399.         android:layout_width="match_parent"
  1400.         android:layout_height="wrap_content"
  1401.         app:tabMode="auto"
  1402.         app:tabGravity="start"
  1403.         app:tabBackground="@color/pink"
  1404.         app:tabTextColor="@color/white"
  1405.         app:layout_constraintStart_toStartOf="parent"
  1406.         app:layout_constraintTop_toTopOf="parent"
  1407.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1408.         />
  1409.     <androidx.viewpager2.widget.ViewPager2
  1410.         android:id="@+id/myviepage2"
  1411.         android:layout_width="match_parent"
  1412.         android:layout_height="0dp"
  1413.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1414.         app:layout_constraintBottom_toBottomOf="parent"
  1415.         app:layout_constraintStart_toStartOf="parent"
  1416.         />
  1417. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  1418. <?xml version="1.0" encoding="utf-8"?>
  1419. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1420.     xmlns:tools="http://schemas.android.com/tools"
  1421.     android:layout_width="match_parent"
  1422.     android:layout_height="match_parent"
  1423.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1424.     tools:context=".tablayout.TabLayoutHomeFragment">
  1425.     <com.google.android.material.tabs.TabLayout
  1426.         android:id="@+id/mytablayout2"
  1427.         android:layout_width="match_parent"
  1428.         android:layout_height="wrap_content"
  1429.         app:tabMode="auto"
  1430.         app:tabGravity="start"
  1431.         app:tabBackground="@color/pink"
  1432.         app:tabTextColor="@color/white"
  1433.         app:layout_constraintStart_toStartOf="parent"
  1434.         app:layout_constraintTop_toTopOf="parent"
  1435.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1436.         />
  1437.     <androidx.viewpager2.widget.ViewPager2
  1438.         android:id="@+id/myviepage2"
  1439.         android:layout_width="match_parent"
  1440.         android:layout_height="0dp"
  1441.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1442.         app:layout_constraintBottom_toBottomOf="parent"
  1443.         app:layout_constraintStart_toStartOf="parent"
  1444.         />
  1445. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  1446. <?xml version="1.0" encoding="utf-8"?>
  1447. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1448.     xmlns:tools="http://schemas.android.com/tools"
  1449.     android:layout_width="match_parent"
  1450.     android:layout_height="match_parent"
  1451.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1452.     tools:context=".tablayout.TabLayoutHomeFragment">
  1453.     <com.google.android.material.tabs.TabLayout
  1454.         android:id="@+id/mytablayout2"
  1455.         android:layout_width="match_parent"
  1456.         android:layout_height="wrap_content"
  1457.         app:tabMode="auto"
  1458.         app:tabGravity="start"
  1459.         app:tabBackground="@color/pink"
  1460.         app:tabTextColor="@color/white"
  1461.         app:layout_constraintStart_toStartOf="parent"
  1462.         app:layout_constraintTop_toTopOf="parent"
  1463.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1464.         />
  1465.     <androidx.viewpager2.widget.ViewPager2
  1466.         android:id="@+id/myviepage2"
  1467.         android:layout_width="match_parent"
  1468.         android:layout_height="0dp"
  1469.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1470.         app:layout_constraintBottom_toBottomOf="parent"
  1471.         app:layout_constraintStart_toStartOf="parent"
  1472.         />
  1473. </androidx.constraintlayout.widget.ConstraintLayout>/>
  1474. </androidx.constraintlayout.widget.ConstraintLayout>public boolean onNavigationItemSelected(@NonNull MenuItem item) {<?xml version="1.0" encoding="utf-8"?>
  1475. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1476.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1477.     xmlns:tools="http://schemas.android.com/tools"
  1478.     android:layout_width="match_parent"
  1479.     android:layout_height="match_parent"
  1480.     tools:context=".ViewPager2TabLayoutActivity">
  1481.    
  1482.     <androidx.fragment.app.FragmentContainerView
  1483. <?xml version="1.0" encoding="utf-8"?>
  1484. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1485.     xmlns:tools="http://schemas.android.com/tools"
  1486.     android:layout_width="match_parent"
  1487.     android:layout_height="match_parent"
  1488.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1489.     tools:context=".tablayout.TabLayoutHomeFragment">
  1490.     <com.google.android.material.tabs.TabLayout
  1491.         android:id="@+id/mytablayout2"
  1492.         android:layout_width="match_parent"
  1493.         android:layout_height="wrap_content"
  1494.         app:tabMode="auto"
  1495.         app:tabGravity="start"
  1496.         app:tabBackground="@color/pink"
  1497.         app:tabTextColor="@color/white"
  1498.         app:layout_constraintStart_toStartOf="parent"
  1499.         app:layout_constraintTop_toTopOf="parent"
  1500.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1501.         />
  1502.     <androidx.viewpager2.widget.ViewPager2
  1503.         android:id="@+id/myviepage2"
  1504.         android:layout_width="match_parent"
  1505.         android:layout_height="0dp"
  1506.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1507.         app:layout_constraintBottom_toBottomOf="parent"
  1508.         app:layout_constraintStart_toStartOf="parent"
  1509.         />
  1510. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  1511. <?xml version="1.0" encoding="utf-8"?>
  1512. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1513.     xmlns:tools="http://schemas.android.com/tools"
  1514.     android:layout_width="match_parent"
  1515.     android:layout_height="match_parent"
  1516.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1517.     tools:context=".tablayout.TabLayoutHomeFragment">
  1518.     <com.google.android.material.tabs.TabLayout
  1519.         android:id="@+id/mytablayout2"
  1520.         android:layout_width="match_parent"
  1521.         android:layout_height="wrap_content"
  1522.         app:tabMode="auto"
  1523.         app:tabGravity="start"
  1524.         app:tabBackground="@color/pink"
  1525.         app:tabTextColor="@color/white"
  1526.         app:layout_constraintStart_toStartOf="parent"
  1527.         app:layout_constraintTop_toTopOf="parent"
  1528.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1529.         />
  1530.     <androidx.viewpager2.widget.ViewPager2
  1531.         android:id="@+id/myviepage2"
  1532.         android:layout_width="match_parent"
  1533.         android:layout_height="0dp"
  1534.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1535.         app:layout_constraintBottom_toBottomOf="parent"
  1536.         app:layout_constraintStart_toStartOf="parent"
  1537.         />
  1538. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1539. <?xml version="1.0" encoding="utf-8"?>
  1540. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1541.     xmlns:tools="http://schemas.android.com/tools"
  1542.     android:layout_width="match_parent"
  1543.     android:layout_height="match_parent"
  1544.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1545.     tools:context=".tablayout.TabLayoutHomeFragment">
  1546.     <com.google.android.material.tabs.TabLayout
  1547.         android:id="@+id/mytablayout2"
  1548.         android:layout_width="match_parent"
  1549.         android:layout_height="wrap_content"
  1550.         app:tabMode="auto"
  1551.         app:tabGravity="start"
  1552.         app:tabBackground="@color/pink"
  1553.         app:tabTextColor="@color/white"
  1554.         app:layout_constraintStart_toStartOf="parent"
  1555.         app:layout_constraintTop_toTopOf="parent"
  1556.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1557.         />
  1558.     <androidx.viewpager2.widget.ViewPager2
  1559.         android:id="@+id/myviepage2"
  1560.         android:layout_width="match_parent"
  1561.         android:layout_height="0dp"
  1562.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1563.         app:layout_constraintBottom_toBottomOf="parent"
  1564.         app:layout_constraintStart_toStartOf="parent"
  1565.         />
  1566. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1567. <?xml version="1.0" encoding="utf-8"?>
  1568. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1569.     xmlns:tools="http://schemas.android.com/tools"
  1570.     android:layout_width="match_parent"
  1571.     android:layout_height="match_parent"
  1572.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1573.     tools:context=".tablayout.TabLayoutHomeFragment">
  1574.     <com.google.android.material.tabs.TabLayout
  1575.         android:id="@+id/mytablayout2"
  1576.         android:layout_width="match_parent"
  1577.         android:layout_height="wrap_content"
  1578.         app:tabMode="auto"
  1579.         app:tabGravity="start"
  1580.         app:tabBackground="@color/pink"
  1581.         app:tabTextColor="@color/white"
  1582.         app:layout_constraintStart_toStartOf="parent"
  1583.         app:layout_constraintTop_toTopOf="parent"
  1584.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1585.         />
  1586.     <androidx.viewpager2.widget.ViewPager2
  1587.         android:id="@+id/myviepage2"
  1588.         android:layout_width="match_parent"
  1589.         android:layout_height="0dp"
  1590.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1591.         app:layout_constraintBottom_toBottomOf="parent"
  1592.         app:layout_constraintStart_toStartOf="parent"
  1593.         />
  1594. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  1595. <?xml version="1.0" encoding="utf-8"?>
  1596. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1597.     xmlns:tools="http://schemas.android.com/tools"
  1598.     android:layout_width="match_parent"
  1599.     android:layout_height="match_parent"
  1600.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1601.     tools:context=".tablayout.TabLayoutHomeFragment">
  1602.     <com.google.android.material.tabs.TabLayout
  1603.         android:id="@+id/mytablayout2"
  1604.         android:layout_width="match_parent"
  1605.         android:layout_height="wrap_content"
  1606.         app:tabMode="auto"
  1607.         app:tabGravity="start"
  1608.         app:tabBackground="@color/pink"
  1609.         app:tabTextColor="@color/white"
  1610.         app:layout_constraintStart_toStartOf="parent"
  1611.         app:layout_constraintTop_toTopOf="parent"
  1612.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1613.         />
  1614.     <androidx.viewpager2.widget.ViewPager2
  1615.         android:id="@+id/myviepage2"
  1616.         android:layout_width="match_parent"
  1617.         android:layout_height="0dp"
  1618.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1619.         app:layout_constraintBottom_toBottomOf="parent"
  1620.         app:layout_constraintStart_toStartOf="parent"
  1621.         />
  1622. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  1623.     <com.google.android.material.bottomnavigation.BottomNavigationView
  1624. <?xml version="1.0" encoding="utf-8"?>
  1625. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1626.     xmlns:tools="http://schemas.android.com/tools"
  1627.     android:layout_width="match_parent"
  1628.     android:layout_height="match_parent"
  1629.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1630.     tools:context=".tablayout.TabLayoutHomeFragment">
  1631.     <com.google.android.material.tabs.TabLayout
  1632.         android:id="@+id/mytablayout2"
  1633.         android:layout_width="match_parent"
  1634.         android:layout_height="wrap_content"
  1635.         app:tabMode="auto"
  1636.         app:tabGravity="start"
  1637.         app:tabBackground="@color/pink"
  1638.         app:tabTextColor="@color/white"
  1639.         app:layout_constraintStart_toStartOf="parent"
  1640.         app:layout_constraintTop_toTopOf="parent"
  1641.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1642.         />
  1643.     <androidx.viewpager2.widget.ViewPager2
  1644.         android:id="@+id/myviepage2"
  1645.         android:layout_width="match_parent"
  1646.         android:layout_height="0dp"
  1647.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1648.         app:layout_constraintBottom_toBottomOf="parent"
  1649.         app:layout_constraintStart_toStartOf="parent"
  1650.         />
  1651. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  1652. <?xml version="1.0" encoding="utf-8"?>
  1653. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1654.     xmlns:tools="http://schemas.android.com/tools"
  1655.     android:layout_width="match_parent"
  1656.     android:layout_height="match_parent"
  1657.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1658.     tools:context=".tablayout.TabLayoutHomeFragment">
  1659.     <com.google.android.material.tabs.TabLayout
  1660.         android:id="@+id/mytablayout2"
  1661.         android:layout_width="match_parent"
  1662.         android:layout_height="wrap_content"
  1663.         app:tabMode="auto"
  1664.         app:tabGravity="start"
  1665.         app:tabBackground="@color/pink"
  1666.         app:tabTextColor="@color/white"
  1667.         app:layout_constraintStart_toStartOf="parent"
  1668.         app:layout_constraintTop_toTopOf="parent"
  1669.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1670.         />
  1671.     <androidx.viewpager2.widget.ViewPager2
  1672.         android:id="@+id/myviepage2"
  1673.         android:layout_width="match_parent"
  1674.         android:layout_height="0dp"
  1675.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1676.         app:layout_constraintBottom_toBottomOf="parent"
  1677.         app:layout_constraintStart_toStartOf="parent"
  1678.         />
  1679. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1680. <?xml version="1.0" encoding="utf-8"?>
  1681. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1682.     xmlns:tools="http://schemas.android.com/tools"
  1683.     android:layout_width="match_parent"
  1684.     android:layout_height="match_parent"
  1685.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1686.     tools:context=".tablayout.TabLayoutHomeFragment">
  1687.     <com.google.android.material.tabs.TabLayout
  1688.         android:id="@+id/mytablayout2"
  1689.         android:layout_width="match_parent"
  1690.         android:layout_height="wrap_content"
  1691.         app:tabMode="auto"
  1692.         app:tabGravity="start"
  1693.         app:tabBackground="@color/pink"
  1694.         app:tabTextColor="@color/white"
  1695.         app:layout_constraintStart_toStartOf="parent"
  1696.         app:layout_constraintTop_toTopOf="parent"
  1697.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1698.         />
  1699.     <androidx.viewpager2.widget.ViewPager2
  1700.         android:id="@+id/myviepage2"
  1701.         android:layout_width="match_parent"
  1702.         android:layout_height="0dp"
  1703.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1704.         app:layout_constraintBottom_toBottomOf="parent"
  1705.         app:layout_constraintStart_toStartOf="parent"
  1706.         />
  1707. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1708. <?xml version="1.0" encoding="utf-8"?>
  1709. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1710.     xmlns:tools="http://schemas.android.com/tools"
  1711.     android:layout_width="match_parent"
  1712.     android:layout_height="match_parent"
  1713.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1714.     tools:context=".tablayout.TabLayoutHomeFragment">
  1715.     <com.google.android.material.tabs.TabLayout
  1716.         android:id="@+id/mytablayout2"
  1717.         android:layout_width="match_parent"
  1718.         android:layout_height="wrap_content"
  1719.         app:tabMode="auto"
  1720.         app:tabGravity="start"
  1721.         app:tabBackground="@color/pink"
  1722.         app:tabTextColor="@color/white"
  1723.         app:layout_constraintStart_toStartOf="parent"
  1724.         app:layout_constraintTop_toTopOf="parent"
  1725.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1726.         />
  1727.     <androidx.viewpager2.widget.ViewPager2
  1728.         android:id="@+id/myviepage2"
  1729.         android:layout_width="match_parent"
  1730.         android:layout_height="0dp"
  1731.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1732.         app:layout_constraintBottom_toBottomOf="parent"
  1733.         app:layout_constraintStart_toStartOf="parent"
  1734.         />
  1735. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  1736. <?xml version="1.0" encoding="utf-8"?>
  1737. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1738.     xmlns:tools="http://schemas.android.com/tools"
  1739.     android:layout_width="match_parent"
  1740.     android:layout_height="match_parent"
  1741.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1742.     tools:context=".tablayout.TabLayoutHomeFragment">
  1743.     <com.google.android.material.tabs.TabLayout
  1744.         android:id="@+id/mytablayout2"
  1745.         android:layout_width="match_parent"
  1746.         android:layout_height="wrap_content"
  1747.         app:tabMode="auto"
  1748.         app:tabGravity="start"
  1749.         app:tabBackground="@color/pink"
  1750.         app:tabTextColor="@color/white"
  1751.         app:layout_constraintStart_toStartOf="parent"
  1752.         app:layout_constraintTop_toTopOf="parent"
  1753.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1754.         />
  1755.     <androidx.viewpager2.widget.ViewPager2
  1756.         android:id="@+id/myviepage2"
  1757.         android:layout_width="match_parent"
  1758.         android:layout_height="0dp"
  1759.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1760.         app:layout_constraintBottom_toBottomOf="parent"
  1761.         app:layout_constraintStart_toStartOf="parent"
  1762.         />
  1763. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  1764. <?xml version="1.0" encoding="utf-8"?>
  1765. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1766.     xmlns:tools="http://schemas.android.com/tools"
  1767.     android:layout_width="match_parent"
  1768.     android:layout_height="match_parent"
  1769.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1770.     tools:context=".tablayout.TabLayoutHomeFragment">
  1771.     <com.google.android.material.tabs.TabLayout
  1772.         android:id="@+id/mytablayout2"
  1773.         android:layout_width="match_parent"
  1774.         android:layout_height="wrap_content"
  1775.         app:tabMode="auto"
  1776.         app:tabGravity="start"
  1777.         app:tabBackground="@color/pink"
  1778.         app:tabTextColor="@color/white"
  1779.         app:layout_constraintStart_toStartOf="parent"
  1780.         app:layout_constraintTop_toTopOf="parent"
  1781.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1782.         />
  1783.     <androidx.viewpager2.widget.ViewPager2
  1784.         android:id="@+id/myviepage2"
  1785.         android:layout_width="match_parent"
  1786.         android:layout_height="0dp"
  1787.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1788.         app:layout_constraintBottom_toBottomOf="parent"
  1789.         app:layout_constraintStart_toStartOf="parent"
  1790.         />
  1791. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  1792. <?xml version="1.0" encoding="utf-8"?>
  1793. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1794.     xmlns:tools="http://schemas.android.com/tools"
  1795.     android:layout_width="match_parent"
  1796.     android:layout_height="match_parent"
  1797.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1798.     tools:context=".tablayout.TabLayoutHomeFragment">
  1799.     <com.google.android.material.tabs.TabLayout
  1800.         android:id="@+id/mytablayout2"
  1801.         android:layout_width="match_parent"
  1802.         android:layout_height="wrap_content"
  1803.         app:tabMode="auto"
  1804.         app:tabGravity="start"
  1805.         app:tabBackground="@color/pink"
  1806.         app:tabTextColor="@color/white"
  1807.         app:layout_constraintStart_toStartOf="parent"
  1808.         app:layout_constraintTop_toTopOf="parent"
  1809.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1810.         />
  1811.     <androidx.viewpager2.widget.ViewPager2
  1812.         android:id="@+id/myviepage2"
  1813.         android:layout_width="match_parent"
  1814.         android:layout_height="0dp"
  1815.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1816.         app:layout_constraintBottom_toBottomOf="parent"
  1817.         app:layout_constraintStart_toStartOf="parent"
  1818.         />
  1819. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  1820. <?xml version="1.0" encoding="utf-8"?>
  1821. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1822.     xmlns:tools="http://schemas.android.com/tools"
  1823.     android:layout_width="match_parent"
  1824.     android:layout_height="match_parent"
  1825.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1826.     tools:context=".tablayout.TabLayoutHomeFragment">
  1827.     <com.google.android.material.tabs.TabLayout
  1828.         android:id="@+id/mytablayout2"
  1829.         android:layout_width="match_parent"
  1830.         android:layout_height="wrap_content"
  1831.         app:tabMode="auto"
  1832.         app:tabGravity="start"
  1833.         app:tabBackground="@color/pink"
  1834.         app:tabTextColor="@color/white"
  1835.         app:layout_constraintStart_toStartOf="parent"
  1836.         app:layout_constraintTop_toTopOf="parent"
  1837.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1838.         />
  1839.     <androidx.viewpager2.widget.ViewPager2
  1840.         android:id="@+id/myviepage2"
  1841.         android:layout_width="match_parent"
  1842.         android:layout_height="0dp"
  1843.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1844.         app:layout_constraintBottom_toBottomOf="parent"
  1845.         app:layout_constraintStart_toStartOf="parent"
  1846.         />
  1847. </androidx.constraintlayout.widget.ConstraintLayout>/>
  1848. </androidx.constraintlayout.widget.ConstraintLayout>    int itemId = item.getItemId();<?xml version="1.0" encoding="utf-8"?>
  1849. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1850.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1851.     xmlns:tools="http://schemas.android.com/tools"
  1852.     android:layout_width="match_parent"
  1853.     android:layout_height="match_parent"
  1854.     tools:context=".ViewPager2TabLayoutActivity">
  1855.    
  1856.     <androidx.fragment.app.FragmentContainerView
  1857. <?xml version="1.0" encoding="utf-8"?>
  1858. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1859.     xmlns:tools="http://schemas.android.com/tools"
  1860.     android:layout_width="match_parent"
  1861.     android:layout_height="match_parent"
  1862.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1863.     tools:context=".tablayout.TabLayoutHomeFragment">
  1864.     <com.google.android.material.tabs.TabLayout
  1865.         android:id="@+id/mytablayout2"
  1866.         android:layout_width="match_parent"
  1867.         android:layout_height="wrap_content"
  1868.         app:tabMode="auto"
  1869.         app:tabGravity="start"
  1870.         app:tabBackground="@color/pink"
  1871.         app:tabTextColor="@color/white"
  1872.         app:layout_constraintStart_toStartOf="parent"
  1873.         app:layout_constraintTop_toTopOf="parent"
  1874.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1875.         />
  1876.     <androidx.viewpager2.widget.ViewPager2
  1877.         android:id="@+id/myviepage2"
  1878.         android:layout_width="match_parent"
  1879.         android:layout_height="0dp"
  1880.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1881.         app:layout_constraintBottom_toBottomOf="parent"
  1882.         app:layout_constraintStart_toStartOf="parent"
  1883.         />
  1884. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  1885. <?xml version="1.0" encoding="utf-8"?>
  1886. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1887.     xmlns:tools="http://schemas.android.com/tools"
  1888.     android:layout_width="match_parent"
  1889.     android:layout_height="match_parent"
  1890.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1891.     tools:context=".tablayout.TabLayoutHomeFragment">
  1892.     <com.google.android.material.tabs.TabLayout
  1893.         android:id="@+id/mytablayout2"
  1894.         android:layout_width="match_parent"
  1895.         android:layout_height="wrap_content"
  1896.         app:tabMode="auto"
  1897.         app:tabGravity="start"
  1898.         app:tabBackground="@color/pink"
  1899.         app:tabTextColor="@color/white"
  1900.         app:layout_constraintStart_toStartOf="parent"
  1901.         app:layout_constraintTop_toTopOf="parent"
  1902.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1903.         />
  1904.     <androidx.viewpager2.widget.ViewPager2
  1905.         android:id="@+id/myviepage2"
  1906.         android:layout_width="match_parent"
  1907.         android:layout_height="0dp"
  1908.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1909.         app:layout_constraintBottom_toBottomOf="parent"
  1910.         app:layout_constraintStart_toStartOf="parent"
  1911.         />
  1912. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  1913. <?xml version="1.0" encoding="utf-8"?>
  1914. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1915.     xmlns:tools="http://schemas.android.com/tools"
  1916.     android:layout_width="match_parent"
  1917.     android:layout_height="match_parent"
  1918.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1919.     tools:context=".tablayout.TabLayoutHomeFragment">
  1920.     <com.google.android.material.tabs.TabLayout
  1921.         android:id="@+id/mytablayout2"
  1922.         android:layout_width="match_parent"
  1923.         android:layout_height="wrap_content"
  1924.         app:tabMode="auto"
  1925.         app:tabGravity="start"
  1926.         app:tabBackground="@color/pink"
  1927.         app:tabTextColor="@color/white"
  1928.         app:layout_constraintStart_toStartOf="parent"
  1929.         app:layout_constraintTop_toTopOf="parent"
  1930.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1931.         />
  1932.     <androidx.viewpager2.widget.ViewPager2
  1933.         android:id="@+id/myviepage2"
  1934.         android:layout_width="match_parent"
  1935.         android:layout_height="0dp"
  1936.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1937.         app:layout_constraintBottom_toBottomOf="parent"
  1938.         app:layout_constraintStart_toStartOf="parent"
  1939.         />
  1940. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  1941. <?xml version="1.0" encoding="utf-8"?>
  1942. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1943.     xmlns:tools="http://schemas.android.com/tools"
  1944.     android:layout_width="match_parent"
  1945.     android:layout_height="match_parent"
  1946.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1947.     tools:context=".tablayout.TabLayoutHomeFragment">
  1948.     <com.google.android.material.tabs.TabLayout
  1949.         android:id="@+id/mytablayout2"
  1950.         android:layout_width="match_parent"
  1951.         android:layout_height="wrap_content"
  1952.         app:tabMode="auto"
  1953.         app:tabGravity="start"
  1954.         app:tabBackground="@color/pink"
  1955.         app:tabTextColor="@color/white"
  1956.         app:layout_constraintStart_toStartOf="parent"
  1957.         app:layout_constraintTop_toTopOf="parent"
  1958.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1959.         />
  1960.     <androidx.viewpager2.widget.ViewPager2
  1961.         android:id="@+id/myviepage2"
  1962.         android:layout_width="match_parent"
  1963.         android:layout_height="0dp"
  1964.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1965.         app:layout_constraintBottom_toBottomOf="parent"
  1966.         app:layout_constraintStart_toStartOf="parent"
  1967.         />
  1968. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  1969. <?xml version="1.0" encoding="utf-8"?>
  1970. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  1971.     xmlns:tools="http://schemas.android.com/tools"
  1972.     android:layout_width="match_parent"
  1973.     android:layout_height="match_parent"
  1974.     xmlns:app="http://schemas.android.com/apk/res-auto"
  1975.     tools:context=".tablayout.TabLayoutHomeFragment">
  1976.     <com.google.android.material.tabs.TabLayout
  1977.         android:id="@+id/mytablayout2"
  1978.         android:layout_width="match_parent"
  1979.         android:layout_height="wrap_content"
  1980.         app:tabMode="auto"
  1981.         app:tabGravity="start"
  1982.         app:tabBackground="@color/pink"
  1983.         app:tabTextColor="@color/white"
  1984.         app:layout_constraintStart_toStartOf="parent"
  1985.         app:layout_constraintTop_toTopOf="parent"
  1986.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  1987.         />
  1988.     <androidx.viewpager2.widget.ViewPager2
  1989.         android:id="@+id/myviepage2"
  1990.         android:layout_width="match_parent"
  1991.         android:layout_height="0dp"
  1992.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  1993.         app:layout_constraintBottom_toBottomOf="parent"
  1994.         app:layout_constraintStart_toStartOf="parent"
  1995.         />
  1996. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  1997.     <com.google.android.material.bottomnavigation.BottomNavigationView
  1998. <?xml version="1.0" encoding="utf-8"?>
  1999. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2000.     xmlns:tools="http://schemas.android.com/tools"
  2001.     android:layout_width="match_parent"
  2002.     android:layout_height="match_parent"
  2003.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2004.     tools:context=".tablayout.TabLayoutHomeFragment">
  2005.     <com.google.android.material.tabs.TabLayout
  2006.         android:id="@+id/mytablayout2"
  2007.         android:layout_width="match_parent"
  2008.         android:layout_height="wrap_content"
  2009.         app:tabMode="auto"
  2010.         app:tabGravity="start"
  2011.         app:tabBackground="@color/pink"
  2012.         app:tabTextColor="@color/white"
  2013.         app:layout_constraintStart_toStartOf="parent"
  2014.         app:layout_constraintTop_toTopOf="parent"
  2015.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2016.         />
  2017.     <androidx.viewpager2.widget.ViewPager2
  2018.         android:id="@+id/myviepage2"
  2019.         android:layout_width="match_parent"
  2020.         android:layout_height="0dp"
  2021.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2022.         app:layout_constraintBottom_toBottomOf="parent"
  2023.         app:layout_constraintStart_toStartOf="parent"
  2024.         />
  2025. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  2026. <?xml version="1.0" encoding="utf-8"?>
  2027. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2028.     xmlns:tools="http://schemas.android.com/tools"
  2029.     android:layout_width="match_parent"
  2030.     android:layout_height="match_parent"
  2031.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2032.     tools:context=".tablayout.TabLayoutHomeFragment">
  2033.     <com.google.android.material.tabs.TabLayout
  2034.         android:id="@+id/mytablayout2"
  2035.         android:layout_width="match_parent"
  2036.         android:layout_height="wrap_content"
  2037.         app:tabMode="auto"
  2038.         app:tabGravity="start"
  2039.         app:tabBackground="@color/pink"
  2040.         app:tabTextColor="@color/white"
  2041.         app:layout_constraintStart_toStartOf="parent"
  2042.         app:layout_constraintTop_toTopOf="parent"
  2043.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2044.         />
  2045.     <androidx.viewpager2.widget.ViewPager2
  2046.         android:id="@+id/myviepage2"
  2047.         android:layout_width="match_parent"
  2048.         android:layout_height="0dp"
  2049.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2050.         app:layout_constraintBottom_toBottomOf="parent"
  2051.         app:layout_constraintStart_toStartOf="parent"
  2052.         />
  2053. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  2054. <?xml version="1.0" encoding="utf-8"?>
  2055. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2056.     xmlns:tools="http://schemas.android.com/tools"
  2057.     android:layout_width="match_parent"
  2058.     android:layout_height="match_parent"
  2059.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2060.     tools:context=".tablayout.TabLayoutHomeFragment">
  2061.     <com.google.android.material.tabs.TabLayout
  2062.         android:id="@+id/mytablayout2"
  2063.         android:layout_width="match_parent"
  2064.         android:layout_height="wrap_content"
  2065.         app:tabMode="auto"
  2066.         app:tabGravity="start"
  2067.         app:tabBackground="@color/pink"
  2068.         app:tabTextColor="@color/white"
  2069.         app:layout_constraintStart_toStartOf="parent"
  2070.         app:layout_constraintTop_toTopOf="parent"
  2071.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2072.         />
  2073.     <androidx.viewpager2.widget.ViewPager2
  2074.         android:id="@+id/myviepage2"
  2075.         android:layout_width="match_parent"
  2076.         android:layout_height="0dp"
  2077.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2078.         app:layout_constraintBottom_toBottomOf="parent"
  2079.         app:layout_constraintStart_toStartOf="parent"
  2080.         />
  2081. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  2082. <?xml version="1.0" encoding="utf-8"?>
  2083. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2084.     xmlns:tools="http://schemas.android.com/tools"
  2085.     android:layout_width="match_parent"
  2086.     android:layout_height="match_parent"
  2087.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2088.     tools:context=".tablayout.TabLayoutHomeFragment">
  2089.     <com.google.android.material.tabs.TabLayout
  2090.         android:id="@+id/mytablayout2"
  2091.         android:layout_width="match_parent"
  2092.         android:layout_height="wrap_content"
  2093.         app:tabMode="auto"
  2094.         app:tabGravity="start"
  2095.         app:tabBackground="@color/pink"
  2096.         app:tabTextColor="@color/white"
  2097.         app:layout_constraintStart_toStartOf="parent"
  2098.         app:layout_constraintTop_toTopOf="parent"
  2099.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2100.         />
  2101.     <androidx.viewpager2.widget.ViewPager2
  2102.         android:id="@+id/myviepage2"
  2103.         android:layout_width="match_parent"
  2104.         android:layout_height="0dp"
  2105.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2106.         app:layout_constraintBottom_toBottomOf="parent"
  2107.         app:layout_constraintStart_toStartOf="parent"
  2108.         />
  2109. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  2110. <?xml version="1.0" encoding="utf-8"?>
  2111. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2112.     xmlns:tools="http://schemas.android.com/tools"
  2113.     android:layout_width="match_parent"
  2114.     android:layout_height="match_parent"
  2115.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2116.     tools:context=".tablayout.TabLayoutHomeFragment">
  2117.     <com.google.android.material.tabs.TabLayout
  2118.         android:id="@+id/mytablayout2"
  2119.         android:layout_width="match_parent"
  2120.         android:layout_height="wrap_content"
  2121.         app:tabMode="auto"
  2122.         app:tabGravity="start"
  2123.         app:tabBackground="@color/pink"
  2124.         app:tabTextColor="@color/white"
  2125.         app:layout_constraintStart_toStartOf="parent"
  2126.         app:layout_constraintTop_toTopOf="parent"
  2127.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2128.         />
  2129.     <androidx.viewpager2.widget.ViewPager2
  2130.         android:id="@+id/myviepage2"
  2131.         android:layout_width="match_parent"
  2132.         android:layout_height="0dp"
  2133.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2134.         app:layout_constraintBottom_toBottomOf="parent"
  2135.         app:layout_constraintStart_toStartOf="parent"
  2136.         />
  2137. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  2138. <?xml version="1.0" encoding="utf-8"?>
  2139. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2140.     xmlns:tools="http://schemas.android.com/tools"
  2141.     android:layout_width="match_parent"
  2142.     android:layout_height="match_parent"
  2143.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2144.     tools:context=".tablayout.TabLayoutHomeFragment">
  2145.     <com.google.android.material.tabs.TabLayout
  2146.         android:id="@+id/mytablayout2"
  2147.         android:layout_width="match_parent"
  2148.         android:layout_height="wrap_content"
  2149.         app:tabMode="auto"
  2150.         app:tabGravity="start"
  2151.         app:tabBackground="@color/pink"
  2152.         app:tabTextColor="@color/white"
  2153.         app:layout_constraintStart_toStartOf="parent"
  2154.         app:layout_constraintTop_toTopOf="parent"
  2155.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2156.         />
  2157.     <androidx.viewpager2.widget.ViewPager2
  2158.         android:id="@+id/myviepage2"
  2159.         android:layout_width="match_parent"
  2160.         android:layout_height="0dp"
  2161.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2162.         app:layout_constraintBottom_toBottomOf="parent"
  2163.         app:layout_constraintStart_toStartOf="parent"
  2164.         />
  2165. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  2166. <?xml version="1.0" encoding="utf-8"?>
  2167. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2168.     xmlns:tools="http://schemas.android.com/tools"
  2169.     android:layout_width="match_parent"
  2170.     android:layout_height="match_parent"
  2171.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2172.     tools:context=".tablayout.TabLayoutHomeFragment">
  2173.     <com.google.android.material.tabs.TabLayout
  2174.         android:id="@+id/mytablayout2"
  2175.         android:layout_width="match_parent"
  2176.         android:layout_height="wrap_content"
  2177.         app:tabMode="auto"
  2178.         app:tabGravity="start"
  2179.         app:tabBackground="@color/pink"
  2180.         app:tabTextColor="@color/white"
  2181.         app:layout_constraintStart_toStartOf="parent"
  2182.         app:layout_constraintTop_toTopOf="parent"
  2183.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2184.         />
  2185.     <androidx.viewpager2.widget.ViewPager2
  2186.         android:id="@+id/myviepage2"
  2187.         android:layout_width="match_parent"
  2188.         android:layout_height="0dp"
  2189.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2190.         app:layout_constraintBottom_toBottomOf="parent"
  2191.         app:layout_constraintStart_toStartOf="parent"
  2192.         />
  2193. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  2194. <?xml version="1.0" encoding="utf-8"?>
  2195. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2196.     xmlns:tools="http://schemas.android.com/tools"
  2197.     android:layout_width="match_parent"
  2198.     android:layout_height="match_parent"
  2199.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2200.     tools:context=".tablayout.TabLayoutHomeFragment">
  2201.     <com.google.android.material.tabs.TabLayout
  2202.         android:id="@+id/mytablayout2"
  2203.         android:layout_width="match_parent"
  2204.         android:layout_height="wrap_content"
  2205.         app:tabMode="auto"
  2206.         app:tabGravity="start"
  2207.         app:tabBackground="@color/pink"
  2208.         app:tabTextColor="@color/white"
  2209.         app:layout_constraintStart_toStartOf="parent"
  2210.         app:layout_constraintTop_toTopOf="parent"
  2211.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2212.         />
  2213.     <androidx.viewpager2.widget.ViewPager2
  2214.         android:id="@+id/myviepage2"
  2215.         android:layout_width="match_parent"
  2216.         android:layout_height="0dp"
  2217.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2218.         app:layout_constraintBottom_toBottomOf="parent"
  2219.         app:layout_constraintStart_toStartOf="parent"
  2220.         />
  2221. </androidx.constraintlayout.widget.ConstraintLayout>/>
  2222. </androidx.constraintlayout.widget.ConstraintLayout>    switch (itemId){<?xml version="1.0" encoding="utf-8"?>
  2223. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2224.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2225.     xmlns:tools="http://schemas.android.com/tools"
  2226.     android:layout_width="match_parent"
  2227.     android:layout_height="match_parent"
  2228.     tools:context=".ViewPager2TabLayoutActivity">
  2229.    
  2230.     <androidx.fragment.app.FragmentContainerView
  2231. <?xml version="1.0" encoding="utf-8"?>
  2232. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2233.     xmlns:tools="http://schemas.android.com/tools"
  2234.     android:layout_width="match_parent"
  2235.     android:layout_height="match_parent"
  2236.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2237.     tools:context=".tablayout.TabLayoutHomeFragment">
  2238.     <com.google.android.material.tabs.TabLayout
  2239.         android:id="@+id/mytablayout2"
  2240.         android:layout_width="match_parent"
  2241.         android:layout_height="wrap_content"
  2242.         app:tabMode="auto"
  2243.         app:tabGravity="start"
  2244.         app:tabBackground="@color/pink"
  2245.         app:tabTextColor="@color/white"
  2246.         app:layout_constraintStart_toStartOf="parent"
  2247.         app:layout_constraintTop_toTopOf="parent"
  2248.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2249.         />
  2250.     <androidx.viewpager2.widget.ViewPager2
  2251.         android:id="@+id/myviepage2"
  2252.         android:layout_width="match_parent"
  2253.         android:layout_height="0dp"
  2254.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2255.         app:layout_constraintBottom_toBottomOf="parent"
  2256.         app:layout_constraintStart_toStartOf="parent"
  2257.         />
  2258. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  2259. <?xml version="1.0" encoding="utf-8"?>
  2260. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2261.     xmlns:tools="http://schemas.android.com/tools"
  2262.     android:layout_width="match_parent"
  2263.     android:layout_height="match_parent"
  2264.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2265.     tools:context=".tablayout.TabLayoutHomeFragment">
  2266.     <com.google.android.material.tabs.TabLayout
  2267.         android:id="@+id/mytablayout2"
  2268.         android:layout_width="match_parent"
  2269.         android:layout_height="wrap_content"
  2270.         app:tabMode="auto"
  2271.         app:tabGravity="start"
  2272.         app:tabBackground="@color/pink"
  2273.         app:tabTextColor="@color/white"
  2274.         app:layout_constraintStart_toStartOf="parent"
  2275.         app:layout_constraintTop_toTopOf="parent"
  2276.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2277.         />
  2278.     <androidx.viewpager2.widget.ViewPager2
  2279.         android:id="@+id/myviepage2"
  2280.         android:layout_width="match_parent"
  2281.         android:layout_height="0dp"
  2282.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2283.         app:layout_constraintBottom_toBottomOf="parent"
  2284.         app:layout_constraintStart_toStartOf="parent"
  2285.         />
  2286. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  2287. <?xml version="1.0" encoding="utf-8"?>
  2288. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2289.     xmlns:tools="http://schemas.android.com/tools"
  2290.     android:layout_width="match_parent"
  2291.     android:layout_height="match_parent"
  2292.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2293.     tools:context=".tablayout.TabLayoutHomeFragment">
  2294.     <com.google.android.material.tabs.TabLayout
  2295.         android:id="@+id/mytablayout2"
  2296.         android:layout_width="match_parent"
  2297.         android:layout_height="wrap_content"
  2298.         app:tabMode="auto"
  2299.         app:tabGravity="start"
  2300.         app:tabBackground="@color/pink"
  2301.         app:tabTextColor="@color/white"
  2302.         app:layout_constraintStart_toStartOf="parent"
  2303.         app:layout_constraintTop_toTopOf="parent"
  2304.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2305.         />
  2306.     <androidx.viewpager2.widget.ViewPager2
  2307.         android:id="@+id/myviepage2"
  2308.         android:layout_width="match_parent"
  2309.         android:layout_height="0dp"
  2310.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2311.         app:layout_constraintBottom_toBottomOf="parent"
  2312.         app:layout_constraintStart_toStartOf="parent"
  2313.         />
  2314. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  2315. <?xml version="1.0" encoding="utf-8"?>
  2316. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2317.     xmlns:tools="http://schemas.android.com/tools"
  2318.     android:layout_width="match_parent"
  2319.     android:layout_height="match_parent"
  2320.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2321.     tools:context=".tablayout.TabLayoutHomeFragment">
  2322.     <com.google.android.material.tabs.TabLayout
  2323.         android:id="@+id/mytablayout2"
  2324.         android:layout_width="match_parent"
  2325.         android:layout_height="wrap_content"
  2326.         app:tabMode="auto"
  2327.         app:tabGravity="start"
  2328.         app:tabBackground="@color/pink"
  2329.         app:tabTextColor="@color/white"
  2330.         app:layout_constraintStart_toStartOf="parent"
  2331.         app:layout_constraintTop_toTopOf="parent"
  2332.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2333.         />
  2334.     <androidx.viewpager2.widget.ViewPager2
  2335.         android:id="@+id/myviepage2"
  2336.         android:layout_width="match_parent"
  2337.         android:layout_height="0dp"
  2338.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2339.         app:layout_constraintBottom_toBottomOf="parent"
  2340.         app:layout_constraintStart_toStartOf="parent"
  2341.         />
  2342. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  2343. <?xml version="1.0" encoding="utf-8"?>
  2344. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2345.     xmlns:tools="http://schemas.android.com/tools"
  2346.     android:layout_width="match_parent"
  2347.     android:layout_height="match_parent"
  2348.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2349.     tools:context=".tablayout.TabLayoutHomeFragment">
  2350.     <com.google.android.material.tabs.TabLayout
  2351.         android:id="@+id/mytablayout2"
  2352.         android:layout_width="match_parent"
  2353.         android:layout_height="wrap_content"
  2354.         app:tabMode="auto"
  2355.         app:tabGravity="start"
  2356.         app:tabBackground="@color/pink"
  2357.         app:tabTextColor="@color/white"
  2358.         app:layout_constraintStart_toStartOf="parent"
  2359.         app:layout_constraintTop_toTopOf="parent"
  2360.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2361.         />
  2362.     <androidx.viewpager2.widget.ViewPager2
  2363.         android:id="@+id/myviepage2"
  2364.         android:layout_width="match_parent"
  2365.         android:layout_height="0dp"
  2366.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2367.         app:layout_constraintBottom_toBottomOf="parent"
  2368.         app:layout_constraintStart_toStartOf="parent"
  2369.         />
  2370. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  2371.     <com.google.android.material.bottomnavigation.BottomNavigationView
  2372. <?xml version="1.0" encoding="utf-8"?>
  2373. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2374.     xmlns:tools="http://schemas.android.com/tools"
  2375.     android:layout_width="match_parent"
  2376.     android:layout_height="match_parent"
  2377.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2378.     tools:context=".tablayout.TabLayoutHomeFragment">
  2379.     <com.google.android.material.tabs.TabLayout
  2380.         android:id="@+id/mytablayout2"
  2381.         android:layout_width="match_parent"
  2382.         android:layout_height="wrap_content"
  2383.         app:tabMode="auto"
  2384.         app:tabGravity="start"
  2385.         app:tabBackground="@color/pink"
  2386.         app:tabTextColor="@color/white"
  2387.         app:layout_constraintStart_toStartOf="parent"
  2388.         app:layout_constraintTop_toTopOf="parent"
  2389.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2390.         />
  2391.     <androidx.viewpager2.widget.ViewPager2
  2392.         android:id="@+id/myviepage2"
  2393.         android:layout_width="match_parent"
  2394.         android:layout_height="0dp"
  2395.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2396.         app:layout_constraintBottom_toBottomOf="parent"
  2397.         app:layout_constraintStart_toStartOf="parent"
  2398.         />
  2399. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  2400. <?xml version="1.0" encoding="utf-8"?>
  2401. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2402.     xmlns:tools="http://schemas.android.com/tools"
  2403.     android:layout_width="match_parent"
  2404.     android:layout_height="match_parent"
  2405.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2406.     tools:context=".tablayout.TabLayoutHomeFragment">
  2407.     <com.google.android.material.tabs.TabLayout
  2408.         android:id="@+id/mytablayout2"
  2409.         android:layout_width="match_parent"
  2410.         android:layout_height="wrap_content"
  2411.         app:tabMode="auto"
  2412.         app:tabGravity="start"
  2413.         app:tabBackground="@color/pink"
  2414.         app:tabTextColor="@color/white"
  2415.         app:layout_constraintStart_toStartOf="parent"
  2416.         app:layout_constraintTop_toTopOf="parent"
  2417.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2418.         />
  2419.     <androidx.viewpager2.widget.ViewPager2
  2420.         android:id="@+id/myviepage2"
  2421.         android:layout_width="match_parent"
  2422.         android:layout_height="0dp"
  2423.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2424.         app:layout_constraintBottom_toBottomOf="parent"
  2425.         app:layout_constraintStart_toStartOf="parent"
  2426.         />
  2427. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  2428. <?xml version="1.0" encoding="utf-8"?>
  2429. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2430.     xmlns:tools="http://schemas.android.com/tools"
  2431.     android:layout_width="match_parent"
  2432.     android:layout_height="match_parent"
  2433.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2434.     tools:context=".tablayout.TabLayoutHomeFragment">
  2435.     <com.google.android.material.tabs.TabLayout
  2436.         android:id="@+id/mytablayout2"
  2437.         android:layout_width="match_parent"
  2438.         android:layout_height="wrap_content"
  2439.         app:tabMode="auto"
  2440.         app:tabGravity="start"
  2441.         app:tabBackground="@color/pink"
  2442.         app:tabTextColor="@color/white"
  2443.         app:layout_constraintStart_toStartOf="parent"
  2444.         app:layout_constraintTop_toTopOf="parent"
  2445.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2446.         />
  2447.     <androidx.viewpager2.widget.ViewPager2
  2448.         android:id="@+id/myviepage2"
  2449.         android:layout_width="match_parent"
  2450.         android:layout_height="0dp"
  2451.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2452.         app:layout_constraintBottom_toBottomOf="parent"
  2453.         app:layout_constraintStart_toStartOf="parent"
  2454.         />
  2455. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  2456. <?xml version="1.0" encoding="utf-8"?>
  2457. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2458.     xmlns:tools="http://schemas.android.com/tools"
  2459.     android:layout_width="match_parent"
  2460.     android:layout_height="match_parent"
  2461.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2462.     tools:context=".tablayout.TabLayoutHomeFragment">
  2463.     <com.google.android.material.tabs.TabLayout
  2464.         android:id="@+id/mytablayout2"
  2465.         android:layout_width="match_parent"
  2466.         android:layout_height="wrap_content"
  2467.         app:tabMode="auto"
  2468.         app:tabGravity="start"
  2469.         app:tabBackground="@color/pink"
  2470.         app:tabTextColor="@color/white"
  2471.         app:layout_constraintStart_toStartOf="parent"
  2472.         app:layout_constraintTop_toTopOf="parent"
  2473.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2474.         />
  2475.     <androidx.viewpager2.widget.ViewPager2
  2476.         android:id="@+id/myviepage2"
  2477.         android:layout_width="match_parent"
  2478.         android:layout_height="0dp"
  2479.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2480.         app:layout_constraintBottom_toBottomOf="parent"
  2481.         app:layout_constraintStart_toStartOf="parent"
  2482.         />
  2483. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  2484. <?xml version="1.0" encoding="utf-8"?>
  2485. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2486.     xmlns:tools="http://schemas.android.com/tools"
  2487.     android:layout_width="match_parent"
  2488.     android:layout_height="match_parent"
  2489.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2490.     tools:context=".tablayout.TabLayoutHomeFragment">
  2491.     <com.google.android.material.tabs.TabLayout
  2492.         android:id="@+id/mytablayout2"
  2493.         android:layout_width="match_parent"
  2494.         android:layout_height="wrap_content"
  2495.         app:tabMode="auto"
  2496.         app:tabGravity="start"
  2497.         app:tabBackground="@color/pink"
  2498.         app:tabTextColor="@color/white"
  2499.         app:layout_constraintStart_toStartOf="parent"
  2500.         app:layout_constraintTop_toTopOf="parent"
  2501.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2502.         />
  2503.     <androidx.viewpager2.widget.ViewPager2
  2504.         android:id="@+id/myviepage2"
  2505.         android:layout_width="match_parent"
  2506.         android:layout_height="0dp"
  2507.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2508.         app:layout_constraintBottom_toBottomOf="parent"
  2509.         app:layout_constraintStart_toStartOf="parent"
  2510.         />
  2511. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  2512. <?xml version="1.0" encoding="utf-8"?>
  2513. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2514.     xmlns:tools="http://schemas.android.com/tools"
  2515.     android:layout_width="match_parent"
  2516.     android:layout_height="match_parent"
  2517.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2518.     tools:context=".tablayout.TabLayoutHomeFragment">
  2519.     <com.google.android.material.tabs.TabLayout
  2520.         android:id="@+id/mytablayout2"
  2521.         android:layout_width="match_parent"
  2522.         android:layout_height="wrap_content"
  2523.         app:tabMode="auto"
  2524.         app:tabGravity="start"
  2525.         app:tabBackground="@color/pink"
  2526.         app:tabTextColor="@color/white"
  2527.         app:layout_constraintStart_toStartOf="parent"
  2528.         app:layout_constraintTop_toTopOf="parent"
  2529.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2530.         />
  2531.     <androidx.viewpager2.widget.ViewPager2
  2532.         android:id="@+id/myviepage2"
  2533.         android:layout_width="match_parent"
  2534.         android:layout_height="0dp"
  2535.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2536.         app:layout_constraintBottom_toBottomOf="parent"
  2537.         app:layout_constraintStart_toStartOf="parent"
  2538.         />
  2539. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  2540. <?xml version="1.0" encoding="utf-8"?>
  2541. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2542.     xmlns:tools="http://schemas.android.com/tools"
  2543.     android:layout_width="match_parent"
  2544.     android:layout_height="match_parent"
  2545.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2546.     tools:context=".tablayout.TabLayoutHomeFragment">
  2547.     <com.google.android.material.tabs.TabLayout
  2548.         android:id="@+id/mytablayout2"
  2549.         android:layout_width="match_parent"
  2550.         android:layout_height="wrap_content"
  2551.         app:tabMode="auto"
  2552.         app:tabGravity="start"
  2553.         app:tabBackground="@color/pink"
  2554.         app:tabTextColor="@color/white"
  2555.         app:layout_constraintStart_toStartOf="parent"
  2556.         app:layout_constraintTop_toTopOf="parent"
  2557.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2558.         />
  2559.     <androidx.viewpager2.widget.ViewPager2
  2560.         android:id="@+id/myviepage2"
  2561.         android:layout_width="match_parent"
  2562.         android:layout_height="0dp"
  2563.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2564.         app:layout_constraintBottom_toBottomOf="parent"
  2565.         app:layout_constraintStart_toStartOf="parent"
  2566.         />
  2567. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  2568. <?xml version="1.0" encoding="utf-8"?>
  2569. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2570.     xmlns:tools="http://schemas.android.com/tools"
  2571.     android:layout_width="match_parent"
  2572.     android:layout_height="match_parent"
  2573.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2574.     tools:context=".tablayout.TabLayoutHomeFragment">
  2575.     <com.google.android.material.tabs.TabLayout
  2576.         android:id="@+id/mytablayout2"
  2577.         android:layout_width="match_parent"
  2578.         android:layout_height="wrap_content"
  2579.         app:tabMode="auto"
  2580.         app:tabGravity="start"
  2581.         app:tabBackground="@color/pink"
  2582.         app:tabTextColor="@color/white"
  2583.         app:layout_constraintStart_toStartOf="parent"
  2584.         app:layout_constraintTop_toTopOf="parent"
  2585.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2586.         />
  2587.     <androidx.viewpager2.widget.ViewPager2
  2588.         android:id="@+id/myviepage2"
  2589.         android:layout_width="match_parent"
  2590.         android:layout_height="0dp"
  2591.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2592.         app:layout_constraintBottom_toBottomOf="parent"
  2593.         app:layout_constraintStart_toStartOf="parent"
  2594.         />
  2595. </androidx.constraintlayout.widget.ConstraintLayout>/>
  2596. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  2597. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2598.     xmlns:tools="http://schemas.android.com/tools"
  2599.     android:layout_width="match_parent"
  2600.     android:layout_height="match_parent"
  2601.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2602.     tools:context=".tablayout.TabLayoutHomeFragment">
  2603.     <com.google.android.material.tabs.TabLayout
  2604.         android:id="@+id/mytablayout2"
  2605.         android:layout_width="match_parent"
  2606.         android:layout_height="wrap_content"
  2607.         app:tabMode="auto"
  2608.         app:tabGravity="start"
  2609.         app:tabBackground="@color/pink"
  2610.         app:tabTextColor="@color/white"
  2611.         app:layout_constraintStart_toStartOf="parent"
  2612.         app:layout_constraintTop_toTopOf="parent"
  2613.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2614.         />
  2615.     <androidx.viewpager2.widget.ViewPager2
  2616.         android:id="@+id/myviepage2"
  2617.         android:layout_width="match_parent"
  2618.         android:layout_height="0dp"
  2619.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2620.         app:layout_constraintBottom_toBottomOf="parent"
  2621.         app:layout_constraintStart_toStartOf="parent"
  2622.         />
  2623. </androidx.constraintlayout.widget.ConstraintLayout>case R.id.home_item:<?xml version="1.0" encoding="utf-8"?>
  2624. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2625.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2626.     xmlns:tools="http://schemas.android.com/tools"
  2627.     android:layout_width="match_parent"
  2628.     android:layout_height="match_parent"
  2629.     tools:context=".ViewPager2TabLayoutActivity">
  2630.    
  2631.     <androidx.fragment.app.FragmentContainerView
  2632. <?xml version="1.0" encoding="utf-8"?>
  2633. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2634.     xmlns:tools="http://schemas.android.com/tools"
  2635.     android:layout_width="match_parent"
  2636.     android:layout_height="match_parent"
  2637.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2638.     tools:context=".tablayout.TabLayoutHomeFragment">
  2639.     <com.google.android.material.tabs.TabLayout
  2640.         android:id="@+id/mytablayout2"
  2641.         android:layout_width="match_parent"
  2642.         android:layout_height="wrap_content"
  2643.         app:tabMode="auto"
  2644.         app:tabGravity="start"
  2645.         app:tabBackground="@color/pink"
  2646.         app:tabTextColor="@color/white"
  2647.         app:layout_constraintStart_toStartOf="parent"
  2648.         app:layout_constraintTop_toTopOf="parent"
  2649.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2650.         />
  2651.     <androidx.viewpager2.widget.ViewPager2
  2652.         android:id="@+id/myviepage2"
  2653.         android:layout_width="match_parent"
  2654.         android:layout_height="0dp"
  2655.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2656.         app:layout_constraintBottom_toBottomOf="parent"
  2657.         app:layout_constraintStart_toStartOf="parent"
  2658.         />
  2659. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  2660. <?xml version="1.0" encoding="utf-8"?>
  2661. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2662.     xmlns:tools="http://schemas.android.com/tools"
  2663.     android:layout_width="match_parent"
  2664.     android:layout_height="match_parent"
  2665.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2666.     tools:context=".tablayout.TabLayoutHomeFragment">
  2667.     <com.google.android.material.tabs.TabLayout
  2668.         android:id="@+id/mytablayout2"
  2669.         android:layout_width="match_parent"
  2670.         android:layout_height="wrap_content"
  2671.         app:tabMode="auto"
  2672.         app:tabGravity="start"
  2673.         app:tabBackground="@color/pink"
  2674.         app:tabTextColor="@color/white"
  2675.         app:layout_constraintStart_toStartOf="parent"
  2676.         app:layout_constraintTop_toTopOf="parent"
  2677.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2678.         />
  2679.     <androidx.viewpager2.widget.ViewPager2
  2680.         android:id="@+id/myviepage2"
  2681.         android:layout_width="match_parent"
  2682.         android:layout_height="0dp"
  2683.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2684.         app:layout_constraintBottom_toBottomOf="parent"
  2685.         app:layout_constraintStart_toStartOf="parent"
  2686.         />
  2687. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  2688. <?xml version="1.0" encoding="utf-8"?>
  2689. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2690.     xmlns:tools="http://schemas.android.com/tools"
  2691.     android:layout_width="match_parent"
  2692.     android:layout_height="match_parent"
  2693.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2694.     tools:context=".tablayout.TabLayoutHomeFragment">
  2695.     <com.google.android.material.tabs.TabLayout
  2696.         android:id="@+id/mytablayout2"
  2697.         android:layout_width="match_parent"
  2698.         android:layout_height="wrap_content"
  2699.         app:tabMode="auto"
  2700.         app:tabGravity="start"
  2701.         app:tabBackground="@color/pink"
  2702.         app:tabTextColor="@color/white"
  2703.         app:layout_constraintStart_toStartOf="parent"
  2704.         app:layout_constraintTop_toTopOf="parent"
  2705.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2706.         />
  2707.     <androidx.viewpager2.widget.ViewPager2
  2708.         android:id="@+id/myviepage2"
  2709.         android:layout_width="match_parent"
  2710.         android:layout_height="0dp"
  2711.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2712.         app:layout_constraintBottom_toBottomOf="parent"
  2713.         app:layout_constraintStart_toStartOf="parent"
  2714.         />
  2715. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  2716. <?xml version="1.0" encoding="utf-8"?>
  2717. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2718.     xmlns:tools="http://schemas.android.com/tools"
  2719.     android:layout_width="match_parent"
  2720.     android:layout_height="match_parent"
  2721.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2722.     tools:context=".tablayout.TabLayoutHomeFragment">
  2723.     <com.google.android.material.tabs.TabLayout
  2724.         android:id="@+id/mytablayout2"
  2725.         android:layout_width="match_parent"
  2726.         android:layout_height="wrap_content"
  2727.         app:tabMode="auto"
  2728.         app:tabGravity="start"
  2729.         app:tabBackground="@color/pink"
  2730.         app:tabTextColor="@color/white"
  2731.         app:layout_constraintStart_toStartOf="parent"
  2732.         app:layout_constraintTop_toTopOf="parent"
  2733.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2734.         />
  2735.     <androidx.viewpager2.widget.ViewPager2
  2736.         android:id="@+id/myviepage2"
  2737.         android:layout_width="match_parent"
  2738.         android:layout_height="0dp"
  2739.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2740.         app:layout_constraintBottom_toBottomOf="parent"
  2741.         app:layout_constraintStart_toStartOf="parent"
  2742.         />
  2743. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  2744. <?xml version="1.0" encoding="utf-8"?>
  2745. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2746.     xmlns:tools="http://schemas.android.com/tools"
  2747.     android:layout_width="match_parent"
  2748.     android:layout_height="match_parent"
  2749.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2750.     tools:context=".tablayout.TabLayoutHomeFragment">
  2751.     <com.google.android.material.tabs.TabLayout
  2752.         android:id="@+id/mytablayout2"
  2753.         android:layout_width="match_parent"
  2754.         android:layout_height="wrap_content"
  2755.         app:tabMode="auto"
  2756.         app:tabGravity="start"
  2757.         app:tabBackground="@color/pink"
  2758.         app:tabTextColor="@color/white"
  2759.         app:layout_constraintStart_toStartOf="parent"
  2760.         app:layout_constraintTop_toTopOf="parent"
  2761.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2762.         />
  2763.     <androidx.viewpager2.widget.ViewPager2
  2764.         android:id="@+id/myviepage2"
  2765.         android:layout_width="match_parent"
  2766.         android:layout_height="0dp"
  2767.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2768.         app:layout_constraintBottom_toBottomOf="parent"
  2769.         app:layout_constraintStart_toStartOf="parent"
  2770.         />
  2771. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  2772.     <com.google.android.material.bottomnavigation.BottomNavigationView
  2773. <?xml version="1.0" encoding="utf-8"?>
  2774. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2775.     xmlns:tools="http://schemas.android.com/tools"
  2776.     android:layout_width="match_parent"
  2777.     android:layout_height="match_parent"
  2778.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2779.     tools:context=".tablayout.TabLayoutHomeFragment">
  2780.     <com.google.android.material.tabs.TabLayout
  2781.         android:id="@+id/mytablayout2"
  2782.         android:layout_width="match_parent"
  2783.         android:layout_height="wrap_content"
  2784.         app:tabMode="auto"
  2785.         app:tabGravity="start"
  2786.         app:tabBackground="@color/pink"
  2787.         app:tabTextColor="@color/white"
  2788.         app:layout_constraintStart_toStartOf="parent"
  2789.         app:layout_constraintTop_toTopOf="parent"
  2790.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2791.         />
  2792.     <androidx.viewpager2.widget.ViewPager2
  2793.         android:id="@+id/myviepage2"
  2794.         android:layout_width="match_parent"
  2795.         android:layout_height="0dp"
  2796.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2797.         app:layout_constraintBottom_toBottomOf="parent"
  2798.         app:layout_constraintStart_toStartOf="parent"
  2799.         />
  2800. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  2801. <?xml version="1.0" encoding="utf-8"?>
  2802. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2803.     xmlns:tools="http://schemas.android.com/tools"
  2804.     android:layout_width="match_parent"
  2805.     android:layout_height="match_parent"
  2806.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2807.     tools:context=".tablayout.TabLayoutHomeFragment">
  2808.     <com.google.android.material.tabs.TabLayout
  2809.         android:id="@+id/mytablayout2"
  2810.         android:layout_width="match_parent"
  2811.         android:layout_height="wrap_content"
  2812.         app:tabMode="auto"
  2813.         app:tabGravity="start"
  2814.         app:tabBackground="@color/pink"
  2815.         app:tabTextColor="@color/white"
  2816.         app:layout_constraintStart_toStartOf="parent"
  2817.         app:layout_constraintTop_toTopOf="parent"
  2818.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2819.         />
  2820.     <androidx.viewpager2.widget.ViewPager2
  2821.         android:id="@+id/myviepage2"
  2822.         android:layout_width="match_parent"
  2823.         android:layout_height="0dp"
  2824.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2825.         app:layout_constraintBottom_toBottomOf="parent"
  2826.         app:layout_constraintStart_toStartOf="parent"
  2827.         />
  2828. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  2829. <?xml version="1.0" encoding="utf-8"?>
  2830. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2831.     xmlns:tools="http://schemas.android.com/tools"
  2832.     android:layout_width="match_parent"
  2833.     android:layout_height="match_parent"
  2834.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2835.     tools:context=".tablayout.TabLayoutHomeFragment">
  2836.     <com.google.android.material.tabs.TabLayout
  2837.         android:id="@+id/mytablayout2"
  2838.         android:layout_width="match_parent"
  2839.         android:layout_height="wrap_content"
  2840.         app:tabMode="auto"
  2841.         app:tabGravity="start"
  2842.         app:tabBackground="@color/pink"
  2843.         app:tabTextColor="@color/white"
  2844.         app:layout_constraintStart_toStartOf="parent"
  2845.         app:layout_constraintTop_toTopOf="parent"
  2846.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2847.         />
  2848.     <androidx.viewpager2.widget.ViewPager2
  2849.         android:id="@+id/myviepage2"
  2850.         android:layout_width="match_parent"
  2851.         android:layout_height="0dp"
  2852.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2853.         app:layout_constraintBottom_toBottomOf="parent"
  2854.         app:layout_constraintStart_toStartOf="parent"
  2855.         />
  2856. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  2857. <?xml version="1.0" encoding="utf-8"?>
  2858. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2859.     xmlns:tools="http://schemas.android.com/tools"
  2860.     android:layout_width="match_parent"
  2861.     android:layout_height="match_parent"
  2862.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2863.     tools:context=".tablayout.TabLayoutHomeFragment">
  2864.     <com.google.android.material.tabs.TabLayout
  2865.         android:id="@+id/mytablayout2"
  2866.         android:layout_width="match_parent"
  2867.         android:layout_height="wrap_content"
  2868.         app:tabMode="auto"
  2869.         app:tabGravity="start"
  2870.         app:tabBackground="@color/pink"
  2871.         app:tabTextColor="@color/white"
  2872.         app:layout_constraintStart_toStartOf="parent"
  2873.         app:layout_constraintTop_toTopOf="parent"
  2874.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2875.         />
  2876.     <androidx.viewpager2.widget.ViewPager2
  2877.         android:id="@+id/myviepage2"
  2878.         android:layout_width="match_parent"
  2879.         android:layout_height="0dp"
  2880.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2881.         app:layout_constraintBottom_toBottomOf="parent"
  2882.         app:layout_constraintStart_toStartOf="parent"
  2883.         />
  2884. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  2885. <?xml version="1.0" encoding="utf-8"?>
  2886. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2887.     xmlns:tools="http://schemas.android.com/tools"
  2888.     android:layout_width="match_parent"
  2889.     android:layout_height="match_parent"
  2890.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2891.     tools:context=".tablayout.TabLayoutHomeFragment">
  2892.     <com.google.android.material.tabs.TabLayout
  2893.         android:id="@+id/mytablayout2"
  2894.         android:layout_width="match_parent"
  2895.         android:layout_height="wrap_content"
  2896.         app:tabMode="auto"
  2897.         app:tabGravity="start"
  2898.         app:tabBackground="@color/pink"
  2899.         app:tabTextColor="@color/white"
  2900.         app:layout_constraintStart_toStartOf="parent"
  2901.         app:layout_constraintTop_toTopOf="parent"
  2902.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2903.         />
  2904.     <androidx.viewpager2.widget.ViewPager2
  2905.         android:id="@+id/myviepage2"
  2906.         android:layout_width="match_parent"
  2907.         android:layout_height="0dp"
  2908.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2909.         app:layout_constraintBottom_toBottomOf="parent"
  2910.         app:layout_constraintStart_toStartOf="parent"
  2911.         />
  2912. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  2913. <?xml version="1.0" encoding="utf-8"?>
  2914. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2915.     xmlns:tools="http://schemas.android.com/tools"
  2916.     android:layout_width="match_parent"
  2917.     android:layout_height="match_parent"
  2918.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2919.     tools:context=".tablayout.TabLayoutHomeFragment">
  2920.     <com.google.android.material.tabs.TabLayout
  2921.         android:id="@+id/mytablayout2"
  2922.         android:layout_width="match_parent"
  2923.         android:layout_height="wrap_content"
  2924.         app:tabMode="auto"
  2925.         app:tabGravity="start"
  2926.         app:tabBackground="@color/pink"
  2927.         app:tabTextColor="@color/white"
  2928.         app:layout_constraintStart_toStartOf="parent"
  2929.         app:layout_constraintTop_toTopOf="parent"
  2930.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2931.         />
  2932.     <androidx.viewpager2.widget.ViewPager2
  2933.         android:id="@+id/myviepage2"
  2934.         android:layout_width="match_parent"
  2935.         android:layout_height="0dp"
  2936.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2937.         app:layout_constraintBottom_toBottomOf="parent"
  2938.         app:layout_constraintStart_toStartOf="parent"
  2939.         />
  2940. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  2941. <?xml version="1.0" encoding="utf-8"?>
  2942. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2943.     xmlns:tools="http://schemas.android.com/tools"
  2944.     android:layout_width="match_parent"
  2945.     android:layout_height="match_parent"
  2946.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2947.     tools:context=".tablayout.TabLayoutHomeFragment">
  2948.     <com.google.android.material.tabs.TabLayout
  2949.         android:id="@+id/mytablayout2"
  2950.         android:layout_width="match_parent"
  2951.         android:layout_height="wrap_content"
  2952.         app:tabMode="auto"
  2953.         app:tabGravity="start"
  2954.         app:tabBackground="@color/pink"
  2955.         app:tabTextColor="@color/white"
  2956.         app:layout_constraintStart_toStartOf="parent"
  2957.         app:layout_constraintTop_toTopOf="parent"
  2958.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2959.         />
  2960.     <androidx.viewpager2.widget.ViewPager2
  2961.         android:id="@+id/myviepage2"
  2962.         android:layout_width="match_parent"
  2963.         android:layout_height="0dp"
  2964.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2965.         app:layout_constraintBottom_toBottomOf="parent"
  2966.         app:layout_constraintStart_toStartOf="parent"
  2967.         />
  2968. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  2969. <?xml version="1.0" encoding="utf-8"?>
  2970. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2971.     xmlns:tools="http://schemas.android.com/tools"
  2972.     android:layout_width="match_parent"
  2973.     android:layout_height="match_parent"
  2974.     xmlns:app="http://schemas.android.com/apk/res-auto"
  2975.     tools:context=".tablayout.TabLayoutHomeFragment">
  2976.     <com.google.android.material.tabs.TabLayout
  2977.         android:id="@+id/mytablayout2"
  2978.         android:layout_width="match_parent"
  2979.         android:layout_height="wrap_content"
  2980.         app:tabMode="auto"
  2981.         app:tabGravity="start"
  2982.         app:tabBackground="@color/pink"
  2983.         app:tabTextColor="@color/white"
  2984.         app:layout_constraintStart_toStartOf="parent"
  2985.         app:layout_constraintTop_toTopOf="parent"
  2986.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  2987.         />
  2988.     <androidx.viewpager2.widget.ViewPager2
  2989.         android:id="@+id/myviepage2"
  2990.         android:layout_width="match_parent"
  2991.         android:layout_height="0dp"
  2992.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  2993.         app:layout_constraintBottom_toBottomOf="parent"
  2994.         app:layout_constraintStart_toStartOf="parent"
  2995.         />
  2996. </androidx.constraintlayout.widget.ConstraintLayout>/>
  2997. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  2998. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2999.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3000.     xmlns:tools="http://schemas.android.com/tools"
  3001.     android:layout_width="match_parent"
  3002.     android:layout_height="match_parent"
  3003.     tools:context=".ViewPager2TabLayoutActivity">
  3004.    
  3005.     <androidx.fragment.app.FragmentContainerView
  3006. <?xml version="1.0" encoding="utf-8"?>
  3007. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3008.     xmlns:tools="http://schemas.android.com/tools"
  3009.     android:layout_width="match_parent"
  3010.     android:layout_height="match_parent"
  3011.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3012.     tools:context=".tablayout.TabLayoutHomeFragment">
  3013.     <com.google.android.material.tabs.TabLayout
  3014.         android:id="@+id/mytablayout2"
  3015.         android:layout_width="match_parent"
  3016.         android:layout_height="wrap_content"
  3017.         app:tabMode="auto"
  3018.         app:tabGravity="start"
  3019.         app:tabBackground="@color/pink"
  3020.         app:tabTextColor="@color/white"
  3021.         app:layout_constraintStart_toStartOf="parent"
  3022.         app:layout_constraintTop_toTopOf="parent"
  3023.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3024.         />
  3025.     <androidx.viewpager2.widget.ViewPager2
  3026.         android:id="@+id/myviepage2"
  3027.         android:layout_width="match_parent"
  3028.         android:layout_height="0dp"
  3029.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3030.         app:layout_constraintBottom_toBottomOf="parent"
  3031.         app:layout_constraintStart_toStartOf="parent"
  3032.         />
  3033. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  3034. <?xml version="1.0" encoding="utf-8"?>
  3035. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3036.     xmlns:tools="http://schemas.android.com/tools"
  3037.     android:layout_width="match_parent"
  3038.     android:layout_height="match_parent"
  3039.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3040.     tools:context=".tablayout.TabLayoutHomeFragment">
  3041.     <com.google.android.material.tabs.TabLayout
  3042.         android:id="@+id/mytablayout2"
  3043.         android:layout_width="match_parent"
  3044.         android:layout_height="wrap_content"
  3045.         app:tabMode="auto"
  3046.         app:tabGravity="start"
  3047.         app:tabBackground="@color/pink"
  3048.         app:tabTextColor="@color/white"
  3049.         app:layout_constraintStart_toStartOf="parent"
  3050.         app:layout_constraintTop_toTopOf="parent"
  3051.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3052.         />
  3053.     <androidx.viewpager2.widget.ViewPager2
  3054.         android:id="@+id/myviepage2"
  3055.         android:layout_width="match_parent"
  3056.         android:layout_height="0dp"
  3057.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3058.         app:layout_constraintBottom_toBottomOf="parent"
  3059.         app:layout_constraintStart_toStartOf="parent"
  3060.         />
  3061. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  3062. <?xml version="1.0" encoding="utf-8"?>
  3063. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3064.     xmlns:tools="http://schemas.android.com/tools"
  3065.     android:layout_width="match_parent"
  3066.     android:layout_height="match_parent"
  3067.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3068.     tools:context=".tablayout.TabLayoutHomeFragment">
  3069.     <com.google.android.material.tabs.TabLayout
  3070.         android:id="@+id/mytablayout2"
  3071.         android:layout_width="match_parent"
  3072.         android:layout_height="wrap_content"
  3073.         app:tabMode="auto"
  3074.         app:tabGravity="start"
  3075.         app:tabBackground="@color/pink"
  3076.         app:tabTextColor="@color/white"
  3077.         app:layout_constraintStart_toStartOf="parent"
  3078.         app:layout_constraintTop_toTopOf="parent"
  3079.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3080.         />
  3081.     <androidx.viewpager2.widget.ViewPager2
  3082.         android:id="@+id/myviepage2"
  3083.         android:layout_width="match_parent"
  3084.         android:layout_height="0dp"
  3085.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3086.         app:layout_constraintBottom_toBottomOf="parent"
  3087.         app:layout_constraintStart_toStartOf="parent"
  3088.         />
  3089. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  3090. <?xml version="1.0" encoding="utf-8"?>
  3091. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3092.     xmlns:tools="http://schemas.android.com/tools"
  3093.     android:layout_width="match_parent"
  3094.     android:layout_height="match_parent"
  3095.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3096.     tools:context=".tablayout.TabLayoutHomeFragment">
  3097.     <com.google.android.material.tabs.TabLayout
  3098.         android:id="@+id/mytablayout2"
  3099.         android:layout_width="match_parent"
  3100.         android:layout_height="wrap_content"
  3101.         app:tabMode="auto"
  3102.         app:tabGravity="start"
  3103.         app:tabBackground="@color/pink"
  3104.         app:tabTextColor="@color/white"
  3105.         app:layout_constraintStart_toStartOf="parent"
  3106.         app:layout_constraintTop_toTopOf="parent"
  3107.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3108.         />
  3109.     <androidx.viewpager2.widget.ViewPager2
  3110.         android:id="@+id/myviepage2"
  3111.         android:layout_width="match_parent"
  3112.         android:layout_height="0dp"
  3113.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3114.         app:layout_constraintBottom_toBottomOf="parent"
  3115.         app:layout_constraintStart_toStartOf="parent"
  3116.         />
  3117. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  3118. <?xml version="1.0" encoding="utf-8"?>
  3119. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3120.     xmlns:tools="http://schemas.android.com/tools"
  3121.     android:layout_width="match_parent"
  3122.     android:layout_height="match_parent"
  3123.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3124.     tools:context=".tablayout.TabLayoutHomeFragment">
  3125.     <com.google.android.material.tabs.TabLayout
  3126.         android:id="@+id/mytablayout2"
  3127.         android:layout_width="match_parent"
  3128.         android:layout_height="wrap_content"
  3129.         app:tabMode="auto"
  3130.         app:tabGravity="start"
  3131.         app:tabBackground="@color/pink"
  3132.         app:tabTextColor="@color/white"
  3133.         app:layout_constraintStart_toStartOf="parent"
  3134.         app:layout_constraintTop_toTopOf="parent"
  3135.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3136.         />
  3137.     <androidx.viewpager2.widget.ViewPager2
  3138.         android:id="@+id/myviepage2"
  3139.         android:layout_width="match_parent"
  3140.         android:layout_height="0dp"
  3141.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3142.         app:layout_constraintBottom_toBottomOf="parent"
  3143.         app:layout_constraintStart_toStartOf="parent"
  3144.         />
  3145. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  3146.     <com.google.android.material.bottomnavigation.BottomNavigationView
  3147. <?xml version="1.0" encoding="utf-8"?>
  3148. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3149.     xmlns:tools="http://schemas.android.com/tools"
  3150.     android:layout_width="match_parent"
  3151.     android:layout_height="match_parent"
  3152.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3153.     tools:context=".tablayout.TabLayoutHomeFragment">
  3154.     <com.google.android.material.tabs.TabLayout
  3155.         android:id="@+id/mytablayout2"
  3156.         android:layout_width="match_parent"
  3157.         android:layout_height="wrap_content"
  3158.         app:tabMode="auto"
  3159.         app:tabGravity="start"
  3160.         app:tabBackground="@color/pink"
  3161.         app:tabTextColor="@color/white"
  3162.         app:layout_constraintStart_toStartOf="parent"
  3163.         app:layout_constraintTop_toTopOf="parent"
  3164.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3165.         />
  3166.     <androidx.viewpager2.widget.ViewPager2
  3167.         android:id="@+id/myviepage2"
  3168.         android:layout_width="match_parent"
  3169.         android:layout_height="0dp"
  3170.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3171.         app:layout_constraintBottom_toBottomOf="parent"
  3172.         app:layout_constraintStart_toStartOf="parent"
  3173.         />
  3174. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  3175. <?xml version="1.0" encoding="utf-8"?>
  3176. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3177.     xmlns:tools="http://schemas.android.com/tools"
  3178.     android:layout_width="match_parent"
  3179.     android:layout_height="match_parent"
  3180.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3181.     tools:context=".tablayout.TabLayoutHomeFragment">
  3182.     <com.google.android.material.tabs.TabLayout
  3183.         android:id="@+id/mytablayout2"
  3184.         android:layout_width="match_parent"
  3185.         android:layout_height="wrap_content"
  3186.         app:tabMode="auto"
  3187.         app:tabGravity="start"
  3188.         app:tabBackground="@color/pink"
  3189.         app:tabTextColor="@color/white"
  3190.         app:layout_constraintStart_toStartOf="parent"
  3191.         app:layout_constraintTop_toTopOf="parent"
  3192.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3193.         />
  3194.     <androidx.viewpager2.widget.ViewPager2
  3195.         android:id="@+id/myviepage2"
  3196.         android:layout_width="match_parent"
  3197.         android:layout_height="0dp"
  3198.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3199.         app:layout_constraintBottom_toBottomOf="parent"
  3200.         app:layout_constraintStart_toStartOf="parent"
  3201.         />
  3202. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  3203. <?xml version="1.0" encoding="utf-8"?>
  3204. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3205.     xmlns:tools="http://schemas.android.com/tools"
  3206.     android:layout_width="match_parent"
  3207.     android:layout_height="match_parent"
  3208.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3209.     tools:context=".tablayout.TabLayoutHomeFragment">
  3210.     <com.google.android.material.tabs.TabLayout
  3211.         android:id="@+id/mytablayout2"
  3212.         android:layout_width="match_parent"
  3213.         android:layout_height="wrap_content"
  3214.         app:tabMode="auto"
  3215.         app:tabGravity="start"
  3216.         app:tabBackground="@color/pink"
  3217.         app:tabTextColor="@color/white"
  3218.         app:layout_constraintStart_toStartOf="parent"
  3219.         app:layout_constraintTop_toTopOf="parent"
  3220.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3221.         />
  3222.     <androidx.viewpager2.widget.ViewPager2
  3223.         android:id="@+id/myviepage2"
  3224.         android:layout_width="match_parent"
  3225.         android:layout_height="0dp"
  3226.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3227.         app:layout_constraintBottom_toBottomOf="parent"
  3228.         app:layout_constraintStart_toStartOf="parent"
  3229.         />
  3230. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  3231. <?xml version="1.0" encoding="utf-8"?>
  3232. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3233.     xmlns:tools="http://schemas.android.com/tools"
  3234.     android:layout_width="match_parent"
  3235.     android:layout_height="match_parent"
  3236.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3237.     tools:context=".tablayout.TabLayoutHomeFragment">
  3238.     <com.google.android.material.tabs.TabLayout
  3239.         android:id="@+id/mytablayout2"
  3240.         android:layout_width="match_parent"
  3241.         android:layout_height="wrap_content"
  3242.         app:tabMode="auto"
  3243.         app:tabGravity="start"
  3244.         app:tabBackground="@color/pink"
  3245.         app:tabTextColor="@color/white"
  3246.         app:layout_constraintStart_toStartOf="parent"
  3247.         app:layout_constraintTop_toTopOf="parent"
  3248.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3249.         />
  3250.     <androidx.viewpager2.widget.ViewPager2
  3251.         android:id="@+id/myviepage2"
  3252.         android:layout_width="match_parent"
  3253.         android:layout_height="0dp"
  3254.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3255.         app:layout_constraintBottom_toBottomOf="parent"
  3256.         app:layout_constraintStart_toStartOf="parent"
  3257.         />
  3258. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  3259. <?xml version="1.0" encoding="utf-8"?>
  3260. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3261.     xmlns:tools="http://schemas.android.com/tools"
  3262.     android:layout_width="match_parent"
  3263.     android:layout_height="match_parent"
  3264.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3265.     tools:context=".tablayout.TabLayoutHomeFragment">
  3266.     <com.google.android.material.tabs.TabLayout
  3267.         android:id="@+id/mytablayout2"
  3268.         android:layout_width="match_parent"
  3269.         android:layout_height="wrap_content"
  3270.         app:tabMode="auto"
  3271.         app:tabGravity="start"
  3272.         app:tabBackground="@color/pink"
  3273.         app:tabTextColor="@color/white"
  3274.         app:layout_constraintStart_toStartOf="parent"
  3275.         app:layout_constraintTop_toTopOf="parent"
  3276.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3277.         />
  3278.     <androidx.viewpager2.widget.ViewPager2
  3279.         android:id="@+id/myviepage2"
  3280.         android:layout_width="match_parent"
  3281.         android:layout_height="0dp"
  3282.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3283.         app:layout_constraintBottom_toBottomOf="parent"
  3284.         app:layout_constraintStart_toStartOf="parent"
  3285.         />
  3286. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  3287. <?xml version="1.0" encoding="utf-8"?>
  3288. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3289.     xmlns:tools="http://schemas.android.com/tools"
  3290.     android:layout_width="match_parent"
  3291.     android:layout_height="match_parent"
  3292.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3293.     tools:context=".tablayout.TabLayoutHomeFragment">
  3294.     <com.google.android.material.tabs.TabLayout
  3295.         android:id="@+id/mytablayout2"
  3296.         android:layout_width="match_parent"
  3297.         android:layout_height="wrap_content"
  3298.         app:tabMode="auto"
  3299.         app:tabGravity="start"
  3300.         app:tabBackground="@color/pink"
  3301.         app:tabTextColor="@color/white"
  3302.         app:layout_constraintStart_toStartOf="parent"
  3303.         app:layout_constraintTop_toTopOf="parent"
  3304.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3305.         />
  3306.     <androidx.viewpager2.widget.ViewPager2
  3307.         android:id="@+id/myviepage2"
  3308.         android:layout_width="match_parent"
  3309.         android:layout_height="0dp"
  3310.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3311.         app:layout_constraintBottom_toBottomOf="parent"
  3312.         app:layout_constraintStart_toStartOf="parent"
  3313.         />
  3314. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  3315. <?xml version="1.0" encoding="utf-8"?>
  3316. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3317.     xmlns:tools="http://schemas.android.com/tools"
  3318.     android:layout_width="match_parent"
  3319.     android:layout_height="match_parent"
  3320.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3321.     tools:context=".tablayout.TabLayoutHomeFragment">
  3322.     <com.google.android.material.tabs.TabLayout
  3323.         android:id="@+id/mytablayout2"
  3324.         android:layout_width="match_parent"
  3325.         android:layout_height="wrap_content"
  3326.         app:tabMode="auto"
  3327.         app:tabGravity="start"
  3328.         app:tabBackground="@color/pink"
  3329.         app:tabTextColor="@color/white"
  3330.         app:layout_constraintStart_toStartOf="parent"
  3331.         app:layout_constraintTop_toTopOf="parent"
  3332.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3333.         />
  3334.     <androidx.viewpager2.widget.ViewPager2
  3335.         android:id="@+id/myviepage2"
  3336.         android:layout_width="match_parent"
  3337.         android:layout_height="0dp"
  3338.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3339.         app:layout_constraintBottom_toBottomOf="parent"
  3340.         app:layout_constraintStart_toStartOf="parent"
  3341.         />
  3342. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  3343. <?xml version="1.0" encoding="utf-8"?>
  3344. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3345.     xmlns:tools="http://schemas.android.com/tools"
  3346.     android:layout_width="match_parent"
  3347.     android:layout_height="match_parent"
  3348.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3349.     tools:context=".tablayout.TabLayoutHomeFragment">
  3350.     <com.google.android.material.tabs.TabLayout
  3351.         android:id="@+id/mytablayout2"
  3352.         android:layout_width="match_parent"
  3353.         android:layout_height="wrap_content"
  3354.         app:tabMode="auto"
  3355.         app:tabGravity="start"
  3356.         app:tabBackground="@color/pink"
  3357.         app:tabTextColor="@color/white"
  3358.         app:layout_constraintStart_toStartOf="parent"
  3359.         app:layout_constraintTop_toTopOf="parent"
  3360.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3361.         />
  3362.     <androidx.viewpager2.widget.ViewPager2
  3363.         android:id="@+id/myviepage2"
  3364.         android:layout_width="match_parent"
  3365.         android:layout_height="0dp"
  3366.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3367.         app:layout_constraintBottom_toBottomOf="parent"
  3368.         app:layout_constraintStart_toStartOf="parent"
  3369.         />
  3370. </androidx.constraintlayout.widget.ConstraintLayout>/>
  3371. </androidx.constraintlayout.widget.ConstraintLayout>getSupportFragmentManager().beginTransaction()<?xml version="1.0" encoding="utf-8"?>
  3372. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3373.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3374.     xmlns:tools="http://schemas.android.com/tools"
  3375.     android:layout_width="match_parent"
  3376.     android:layout_height="match_parent"
  3377.     tools:context=".ViewPager2TabLayoutActivity">
  3378.    
  3379.     <androidx.fragment.app.FragmentContainerView
  3380. <?xml version="1.0" encoding="utf-8"?>
  3381. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3382.     xmlns:tools="http://schemas.android.com/tools"
  3383.     android:layout_width="match_parent"
  3384.     android:layout_height="match_parent"
  3385.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3386.     tools:context=".tablayout.TabLayoutHomeFragment">
  3387.     <com.google.android.material.tabs.TabLayout
  3388.         android:id="@+id/mytablayout2"
  3389.         android:layout_width="match_parent"
  3390.         android:layout_height="wrap_content"
  3391.         app:tabMode="auto"
  3392.         app:tabGravity="start"
  3393.         app:tabBackground="@color/pink"
  3394.         app:tabTextColor="@color/white"
  3395.         app:layout_constraintStart_toStartOf="parent"
  3396.         app:layout_constraintTop_toTopOf="parent"
  3397.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3398.         />
  3399.     <androidx.viewpager2.widget.ViewPager2
  3400.         android:id="@+id/myviepage2"
  3401.         android:layout_width="match_parent"
  3402.         android:layout_height="0dp"
  3403.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3404.         app:layout_constraintBottom_toBottomOf="parent"
  3405.         app:layout_constraintStart_toStartOf="parent"
  3406.         />
  3407. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  3408. <?xml version="1.0" encoding="utf-8"?>
  3409. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3410.     xmlns:tools="http://schemas.android.com/tools"
  3411.     android:layout_width="match_parent"
  3412.     android:layout_height="match_parent"
  3413.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3414.     tools:context=".tablayout.TabLayoutHomeFragment">
  3415.     <com.google.android.material.tabs.TabLayout
  3416.         android:id="@+id/mytablayout2"
  3417.         android:layout_width="match_parent"
  3418.         android:layout_height="wrap_content"
  3419.         app:tabMode="auto"
  3420.         app:tabGravity="start"
  3421.         app:tabBackground="@color/pink"
  3422.         app:tabTextColor="@color/white"
  3423.         app:layout_constraintStart_toStartOf="parent"
  3424.         app:layout_constraintTop_toTopOf="parent"
  3425.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3426.         />
  3427.     <androidx.viewpager2.widget.ViewPager2
  3428.         android:id="@+id/myviepage2"
  3429.         android:layout_width="match_parent"
  3430.         android:layout_height="0dp"
  3431.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3432.         app:layout_constraintBottom_toBottomOf="parent"
  3433.         app:layout_constraintStart_toStartOf="parent"
  3434.         />
  3435. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  3436. <?xml version="1.0" encoding="utf-8"?>
  3437. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3438.     xmlns:tools="http://schemas.android.com/tools"
  3439.     android:layout_width="match_parent"
  3440.     android:layout_height="match_parent"
  3441.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3442.     tools:context=".tablayout.TabLayoutHomeFragment">
  3443.     <com.google.android.material.tabs.TabLayout
  3444.         android:id="@+id/mytablayout2"
  3445.         android:layout_width="match_parent"
  3446.         android:layout_height="wrap_content"
  3447.         app:tabMode="auto"
  3448.         app:tabGravity="start"
  3449.         app:tabBackground="@color/pink"
  3450.         app:tabTextColor="@color/white"
  3451.         app:layout_constraintStart_toStartOf="parent"
  3452.         app:layout_constraintTop_toTopOf="parent"
  3453.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3454.         />
  3455.     <androidx.viewpager2.widget.ViewPager2
  3456.         android:id="@+id/myviepage2"
  3457.         android:layout_width="match_parent"
  3458.         android:layout_height="0dp"
  3459.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3460.         app:layout_constraintBottom_toBottomOf="parent"
  3461.         app:layout_constraintStart_toStartOf="parent"
  3462.         />
  3463. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  3464. <?xml version="1.0" encoding="utf-8"?>
  3465. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3466.     xmlns:tools="http://schemas.android.com/tools"
  3467.     android:layout_width="match_parent"
  3468.     android:layout_height="match_parent"
  3469.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3470.     tools:context=".tablayout.TabLayoutHomeFragment">
  3471.     <com.google.android.material.tabs.TabLayout
  3472.         android:id="@+id/mytablayout2"
  3473.         android:layout_width="match_parent"
  3474.         android:layout_height="wrap_content"
  3475.         app:tabMode="auto"
  3476.         app:tabGravity="start"
  3477.         app:tabBackground="@color/pink"
  3478.         app:tabTextColor="@color/white"
  3479.         app:layout_constraintStart_toStartOf="parent"
  3480.         app:layout_constraintTop_toTopOf="parent"
  3481.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3482.         />
  3483.     <androidx.viewpager2.widget.ViewPager2
  3484.         android:id="@+id/myviepage2"
  3485.         android:layout_width="match_parent"
  3486.         android:layout_height="0dp"
  3487.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3488.         app:layout_constraintBottom_toBottomOf="parent"
  3489.         app:layout_constraintStart_toStartOf="parent"
  3490.         />
  3491. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  3492. <?xml version="1.0" encoding="utf-8"?>
  3493. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3494.     xmlns:tools="http://schemas.android.com/tools"
  3495.     android:layout_width="match_parent"
  3496.     android:layout_height="match_parent"
  3497.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3498.     tools:context=".tablayout.TabLayoutHomeFragment">
  3499.     <com.google.android.material.tabs.TabLayout
  3500.         android:id="@+id/mytablayout2"
  3501.         android:layout_width="match_parent"
  3502.         android:layout_height="wrap_content"
  3503.         app:tabMode="auto"
  3504.         app:tabGravity="start"
  3505.         app:tabBackground="@color/pink"
  3506.         app:tabTextColor="@color/white"
  3507.         app:layout_constraintStart_toStartOf="parent"
  3508.         app:layout_constraintTop_toTopOf="parent"
  3509.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3510.         />
  3511.     <androidx.viewpager2.widget.ViewPager2
  3512.         android:id="@+id/myviepage2"
  3513.         android:layout_width="match_parent"
  3514.         android:layout_height="0dp"
  3515.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3516.         app:layout_constraintBottom_toBottomOf="parent"
  3517.         app:layout_constraintStart_toStartOf="parent"
  3518.         />
  3519. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  3520.     <com.google.android.material.bottomnavigation.BottomNavigationView
  3521. <?xml version="1.0" encoding="utf-8"?>
  3522. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3523.     xmlns:tools="http://schemas.android.com/tools"
  3524.     android:layout_width="match_parent"
  3525.     android:layout_height="match_parent"
  3526.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3527.     tools:context=".tablayout.TabLayoutHomeFragment">
  3528.     <com.google.android.material.tabs.TabLayout
  3529.         android:id="@+id/mytablayout2"
  3530.         android:layout_width="match_parent"
  3531.         android:layout_height="wrap_content"
  3532.         app:tabMode="auto"
  3533.         app:tabGravity="start"
  3534.         app:tabBackground="@color/pink"
  3535.         app:tabTextColor="@color/white"
  3536.         app:layout_constraintStart_toStartOf="parent"
  3537.         app:layout_constraintTop_toTopOf="parent"
  3538.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3539.         />
  3540.     <androidx.viewpager2.widget.ViewPager2
  3541.         android:id="@+id/myviepage2"
  3542.         android:layout_width="match_parent"
  3543.         android:layout_height="0dp"
  3544.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3545.         app:layout_constraintBottom_toBottomOf="parent"
  3546.         app:layout_constraintStart_toStartOf="parent"
  3547.         />
  3548. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  3549. <?xml version="1.0" encoding="utf-8"?>
  3550. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3551.     xmlns:tools="http://schemas.android.com/tools"
  3552.     android:layout_width="match_parent"
  3553.     android:layout_height="match_parent"
  3554.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3555.     tools:context=".tablayout.TabLayoutHomeFragment">
  3556.     <com.google.android.material.tabs.TabLayout
  3557.         android:id="@+id/mytablayout2"
  3558.         android:layout_width="match_parent"
  3559.         android:layout_height="wrap_content"
  3560.         app:tabMode="auto"
  3561.         app:tabGravity="start"
  3562.         app:tabBackground="@color/pink"
  3563.         app:tabTextColor="@color/white"
  3564.         app:layout_constraintStart_toStartOf="parent"
  3565.         app:layout_constraintTop_toTopOf="parent"
  3566.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3567.         />
  3568.     <androidx.viewpager2.widget.ViewPager2
  3569.         android:id="@+id/myviepage2"
  3570.         android:layout_width="match_parent"
  3571.         android:layout_height="0dp"
  3572.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3573.         app:layout_constraintBottom_toBottomOf="parent"
  3574.         app:layout_constraintStart_toStartOf="parent"
  3575.         />
  3576. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  3577. <?xml version="1.0" encoding="utf-8"?>
  3578. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3579.     xmlns:tools="http://schemas.android.com/tools"
  3580.     android:layout_width="match_parent"
  3581.     android:layout_height="match_parent"
  3582.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3583.     tools:context=".tablayout.TabLayoutHomeFragment">
  3584.     <com.google.android.material.tabs.TabLayout
  3585.         android:id="@+id/mytablayout2"
  3586.         android:layout_width="match_parent"
  3587.         android:layout_height="wrap_content"
  3588.         app:tabMode="auto"
  3589.         app:tabGravity="start"
  3590.         app:tabBackground="@color/pink"
  3591.         app:tabTextColor="@color/white"
  3592.         app:layout_constraintStart_toStartOf="parent"
  3593.         app:layout_constraintTop_toTopOf="parent"
  3594.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3595.         />
  3596.     <androidx.viewpager2.widget.ViewPager2
  3597.         android:id="@+id/myviepage2"
  3598.         android:layout_width="match_parent"
  3599.         android:layout_height="0dp"
  3600.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3601.         app:layout_constraintBottom_toBottomOf="parent"
  3602.         app:layout_constraintStart_toStartOf="parent"
  3603.         />
  3604. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  3605. <?xml version="1.0" encoding="utf-8"?>
  3606. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3607.     xmlns:tools="http://schemas.android.com/tools"
  3608.     android:layout_width="match_parent"
  3609.     android:layout_height="match_parent"
  3610.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3611.     tools:context=".tablayout.TabLayoutHomeFragment">
  3612.     <com.google.android.material.tabs.TabLayout
  3613.         android:id="@+id/mytablayout2"
  3614.         android:layout_width="match_parent"
  3615.         android:layout_height="wrap_content"
  3616.         app:tabMode="auto"
  3617.         app:tabGravity="start"
  3618.         app:tabBackground="@color/pink"
  3619.         app:tabTextColor="@color/white"
  3620.         app:layout_constraintStart_toStartOf="parent"
  3621.         app:layout_constraintTop_toTopOf="parent"
  3622.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3623.         />
  3624.     <androidx.viewpager2.widget.ViewPager2
  3625.         android:id="@+id/myviepage2"
  3626.         android:layout_width="match_parent"
  3627.         android:layout_height="0dp"
  3628.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3629.         app:layout_constraintBottom_toBottomOf="parent"
  3630.         app:layout_constraintStart_toStartOf="parent"
  3631.         />
  3632. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  3633. <?xml version="1.0" encoding="utf-8"?>
  3634. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3635.     xmlns:tools="http://schemas.android.com/tools"
  3636.     android:layout_width="match_parent"
  3637.     android:layout_height="match_parent"
  3638.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3639.     tools:context=".tablayout.TabLayoutHomeFragment">
  3640.     <com.google.android.material.tabs.TabLayout
  3641.         android:id="@+id/mytablayout2"
  3642.         android:layout_width="match_parent"
  3643.         android:layout_height="wrap_content"
  3644.         app:tabMode="auto"
  3645.         app:tabGravity="start"
  3646.         app:tabBackground="@color/pink"
  3647.         app:tabTextColor="@color/white"
  3648.         app:layout_constraintStart_toStartOf="parent"
  3649.         app:layout_constraintTop_toTopOf="parent"
  3650.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3651.         />
  3652.     <androidx.viewpager2.widget.ViewPager2
  3653.         android:id="@+id/myviepage2"
  3654.         android:layout_width="match_parent"
  3655.         android:layout_height="0dp"
  3656.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3657.         app:layout_constraintBottom_toBottomOf="parent"
  3658.         app:layout_constraintStart_toStartOf="parent"
  3659.         />
  3660. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  3661. <?xml version="1.0" encoding="utf-8"?>
  3662. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3663.     xmlns:tools="http://schemas.android.com/tools"
  3664.     android:layout_width="match_parent"
  3665.     android:layout_height="match_parent"
  3666.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3667.     tools:context=".tablayout.TabLayoutHomeFragment">
  3668.     <com.google.android.material.tabs.TabLayout
  3669.         android:id="@+id/mytablayout2"
  3670.         android:layout_width="match_parent"
  3671.         android:layout_height="wrap_content"
  3672.         app:tabMode="auto"
  3673.         app:tabGravity="start"
  3674.         app:tabBackground="@color/pink"
  3675.         app:tabTextColor="@color/white"
  3676.         app:layout_constraintStart_toStartOf="parent"
  3677.         app:layout_constraintTop_toTopOf="parent"
  3678.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3679.         />
  3680.     <androidx.viewpager2.widget.ViewPager2
  3681.         android:id="@+id/myviepage2"
  3682.         android:layout_width="match_parent"
  3683.         android:layout_height="0dp"
  3684.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3685.         app:layout_constraintBottom_toBottomOf="parent"
  3686.         app:layout_constraintStart_toStartOf="parent"
  3687.         />
  3688. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  3689. <?xml version="1.0" encoding="utf-8"?>
  3690. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3691.     xmlns:tools="http://schemas.android.com/tools"
  3692.     android:layout_width="match_parent"
  3693.     android:layout_height="match_parent"
  3694.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3695.     tools:context=".tablayout.TabLayoutHomeFragment">
  3696.     <com.google.android.material.tabs.TabLayout
  3697.         android:id="@+id/mytablayout2"
  3698.         android:layout_width="match_parent"
  3699.         android:layout_height="wrap_content"
  3700.         app:tabMode="auto"
  3701.         app:tabGravity="start"
  3702.         app:tabBackground="@color/pink"
  3703.         app:tabTextColor="@color/white"
  3704.         app:layout_constraintStart_toStartOf="parent"
  3705.         app:layout_constraintTop_toTopOf="parent"
  3706.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3707.         />
  3708.     <androidx.viewpager2.widget.ViewPager2
  3709.         android:id="@+id/myviepage2"
  3710.         android:layout_width="match_parent"
  3711.         android:layout_height="0dp"
  3712.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3713.         app:layout_constraintBottom_toBottomOf="parent"
  3714.         app:layout_constraintStart_toStartOf="parent"
  3715.         />
  3716. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  3717. <?xml version="1.0" encoding="utf-8"?>
  3718. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3719.     xmlns:tools="http://schemas.android.com/tools"
  3720.     android:layout_width="match_parent"
  3721.     android:layout_height="match_parent"
  3722.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3723.     tools:context=".tablayout.TabLayoutHomeFragment">
  3724.     <com.google.android.material.tabs.TabLayout
  3725.         android:id="@+id/mytablayout2"
  3726.         android:layout_width="match_parent"
  3727.         android:layout_height="wrap_content"
  3728.         app:tabMode="auto"
  3729.         app:tabGravity="start"
  3730.         app:tabBackground="@color/pink"
  3731.         app:tabTextColor="@color/white"
  3732.         app:layout_constraintStart_toStartOf="parent"
  3733.         app:layout_constraintTop_toTopOf="parent"
  3734.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3735.         />
  3736.     <androidx.viewpager2.widget.ViewPager2
  3737.         android:id="@+id/myviepage2"
  3738.         android:layout_width="match_parent"
  3739.         android:layout_height="0dp"
  3740.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3741.         app:layout_constraintBottom_toBottomOf="parent"
  3742.         app:layout_constraintStart_toStartOf="parent"
  3743.         />
  3744. </androidx.constraintlayout.widget.ConstraintLayout>/>
  3745. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  3746. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3747.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3748.     xmlns:tools="http://schemas.android.com/tools"
  3749.     android:layout_width="match_parent"
  3750.     android:layout_height="match_parent"
  3751.     tools:context=".ViewPager2TabLayoutActivity">
  3752.    
  3753.     <androidx.fragment.app.FragmentContainerView
  3754. <?xml version="1.0" encoding="utf-8"?>
  3755. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3756.     xmlns:tools="http://schemas.android.com/tools"
  3757.     android:layout_width="match_parent"
  3758.     android:layout_height="match_parent"
  3759.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3760.     tools:context=".tablayout.TabLayoutHomeFragment">
  3761.     <com.google.android.material.tabs.TabLayout
  3762.         android:id="@+id/mytablayout2"
  3763.         android:layout_width="match_parent"
  3764.         android:layout_height="wrap_content"
  3765.         app:tabMode="auto"
  3766.         app:tabGravity="start"
  3767.         app:tabBackground="@color/pink"
  3768.         app:tabTextColor="@color/white"
  3769.         app:layout_constraintStart_toStartOf="parent"
  3770.         app:layout_constraintTop_toTopOf="parent"
  3771.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3772.         />
  3773.     <androidx.viewpager2.widget.ViewPager2
  3774.         android:id="@+id/myviepage2"
  3775.         android:layout_width="match_parent"
  3776.         android:layout_height="0dp"
  3777.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3778.         app:layout_constraintBottom_toBottomOf="parent"
  3779.         app:layout_constraintStart_toStartOf="parent"
  3780.         />
  3781. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  3782. <?xml version="1.0" encoding="utf-8"?>
  3783. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3784.     xmlns:tools="http://schemas.android.com/tools"
  3785.     android:layout_width="match_parent"
  3786.     android:layout_height="match_parent"
  3787.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3788.     tools:context=".tablayout.TabLayoutHomeFragment">
  3789.     <com.google.android.material.tabs.TabLayout
  3790.         android:id="@+id/mytablayout2"
  3791.         android:layout_width="match_parent"
  3792.         android:layout_height="wrap_content"
  3793.         app:tabMode="auto"
  3794.         app:tabGravity="start"
  3795.         app:tabBackground="@color/pink"
  3796.         app:tabTextColor="@color/white"
  3797.         app:layout_constraintStart_toStartOf="parent"
  3798.         app:layout_constraintTop_toTopOf="parent"
  3799.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3800.         />
  3801.     <androidx.viewpager2.widget.ViewPager2
  3802.         android:id="@+id/myviepage2"
  3803.         android:layout_width="match_parent"
  3804.         android:layout_height="0dp"
  3805.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3806.         app:layout_constraintBottom_toBottomOf="parent"
  3807.         app:layout_constraintStart_toStartOf="parent"
  3808.         />
  3809. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  3810. <?xml version="1.0" encoding="utf-8"?>
  3811. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3812.     xmlns:tools="http://schemas.android.com/tools"
  3813.     android:layout_width="match_parent"
  3814.     android:layout_height="match_parent"
  3815.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3816.     tools:context=".tablayout.TabLayoutHomeFragment">
  3817.     <com.google.android.material.tabs.TabLayout
  3818.         android:id="@+id/mytablayout2"
  3819.         android:layout_width="match_parent"
  3820.         android:layout_height="wrap_content"
  3821.         app:tabMode="auto"
  3822.         app:tabGravity="start"
  3823.         app:tabBackground="@color/pink"
  3824.         app:tabTextColor="@color/white"
  3825.         app:layout_constraintStart_toStartOf="parent"
  3826.         app:layout_constraintTop_toTopOf="parent"
  3827.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3828.         />
  3829.     <androidx.viewpager2.widget.ViewPager2
  3830.         android:id="@+id/myviepage2"
  3831.         android:layout_width="match_parent"
  3832.         android:layout_height="0dp"
  3833.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3834.         app:layout_constraintBottom_toBottomOf="parent"
  3835.         app:layout_constraintStart_toStartOf="parent"
  3836.         />
  3837. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  3838. <?xml version="1.0" encoding="utf-8"?>
  3839. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3840.     xmlns:tools="http://schemas.android.com/tools"
  3841.     android:layout_width="match_parent"
  3842.     android:layout_height="match_parent"
  3843.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3844.     tools:context=".tablayout.TabLayoutHomeFragment">
  3845.     <com.google.android.material.tabs.TabLayout
  3846.         android:id="@+id/mytablayout2"
  3847.         android:layout_width="match_parent"
  3848.         android:layout_height="wrap_content"
  3849.         app:tabMode="auto"
  3850.         app:tabGravity="start"
  3851.         app:tabBackground="@color/pink"
  3852.         app:tabTextColor="@color/white"
  3853.         app:layout_constraintStart_toStartOf="parent"
  3854.         app:layout_constraintTop_toTopOf="parent"
  3855.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3856.         />
  3857.     <androidx.viewpager2.widget.ViewPager2
  3858.         android:id="@+id/myviepage2"
  3859.         android:layout_width="match_parent"
  3860.         android:layout_height="0dp"
  3861.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3862.         app:layout_constraintBottom_toBottomOf="parent"
  3863.         app:layout_constraintStart_toStartOf="parent"
  3864.         />
  3865. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  3866. <?xml version="1.0" encoding="utf-8"?>
  3867. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3868.     xmlns:tools="http://schemas.android.com/tools"
  3869.     android:layout_width="match_parent"
  3870.     android:layout_height="match_parent"
  3871.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3872.     tools:context=".tablayout.TabLayoutHomeFragment">
  3873.     <com.google.android.material.tabs.TabLayout
  3874.         android:id="@+id/mytablayout2"
  3875.         android:layout_width="match_parent"
  3876.         android:layout_height="wrap_content"
  3877.         app:tabMode="auto"
  3878.         app:tabGravity="start"
  3879.         app:tabBackground="@color/pink"
  3880.         app:tabTextColor="@color/white"
  3881.         app:layout_constraintStart_toStartOf="parent"
  3882.         app:layout_constraintTop_toTopOf="parent"
  3883.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3884.         />
  3885.     <androidx.viewpager2.widget.ViewPager2
  3886.         android:id="@+id/myviepage2"
  3887.         android:layout_width="match_parent"
  3888.         android:layout_height="0dp"
  3889.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3890.         app:layout_constraintBottom_toBottomOf="parent"
  3891.         app:layout_constraintStart_toStartOf="parent"
  3892.         />
  3893. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  3894.     <com.google.android.material.bottomnavigation.BottomNavigationView
  3895. <?xml version="1.0" encoding="utf-8"?>
  3896. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3897.     xmlns:tools="http://schemas.android.com/tools"
  3898.     android:layout_width="match_parent"
  3899.     android:layout_height="match_parent"
  3900.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3901.     tools:context=".tablayout.TabLayoutHomeFragment">
  3902.     <com.google.android.material.tabs.TabLayout
  3903.         android:id="@+id/mytablayout2"
  3904.         android:layout_width="match_parent"
  3905.         android:layout_height="wrap_content"
  3906.         app:tabMode="auto"
  3907.         app:tabGravity="start"
  3908.         app:tabBackground="@color/pink"
  3909.         app:tabTextColor="@color/white"
  3910.         app:layout_constraintStart_toStartOf="parent"
  3911.         app:layout_constraintTop_toTopOf="parent"
  3912.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3913.         />
  3914.     <androidx.viewpager2.widget.ViewPager2
  3915.         android:id="@+id/myviepage2"
  3916.         android:layout_width="match_parent"
  3917.         android:layout_height="0dp"
  3918.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3919.         app:layout_constraintBottom_toBottomOf="parent"
  3920.         app:layout_constraintStart_toStartOf="parent"
  3921.         />
  3922. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  3923. <?xml version="1.0" encoding="utf-8"?>
  3924. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3925.     xmlns:tools="http://schemas.android.com/tools"
  3926.     android:layout_width="match_parent"
  3927.     android:layout_height="match_parent"
  3928.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3929.     tools:context=".tablayout.TabLayoutHomeFragment">
  3930.     <com.google.android.material.tabs.TabLayout
  3931.         android:id="@+id/mytablayout2"
  3932.         android:layout_width="match_parent"
  3933.         android:layout_height="wrap_content"
  3934.         app:tabMode="auto"
  3935.         app:tabGravity="start"
  3936.         app:tabBackground="@color/pink"
  3937.         app:tabTextColor="@color/white"
  3938.         app:layout_constraintStart_toStartOf="parent"
  3939.         app:layout_constraintTop_toTopOf="parent"
  3940.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3941.         />
  3942.     <androidx.viewpager2.widget.ViewPager2
  3943.         android:id="@+id/myviepage2"
  3944.         android:layout_width="match_parent"
  3945.         android:layout_height="0dp"
  3946.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3947.         app:layout_constraintBottom_toBottomOf="parent"
  3948.         app:layout_constraintStart_toStartOf="parent"
  3949.         />
  3950. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  3951. <?xml version="1.0" encoding="utf-8"?>
  3952. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3953.     xmlns:tools="http://schemas.android.com/tools"
  3954.     android:layout_width="match_parent"
  3955.     android:layout_height="match_parent"
  3956.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3957.     tools:context=".tablayout.TabLayoutHomeFragment">
  3958.     <com.google.android.material.tabs.TabLayout
  3959.         android:id="@+id/mytablayout2"
  3960.         android:layout_width="match_parent"
  3961.         android:layout_height="wrap_content"
  3962.         app:tabMode="auto"
  3963.         app:tabGravity="start"
  3964.         app:tabBackground="@color/pink"
  3965.         app:tabTextColor="@color/white"
  3966.         app:layout_constraintStart_toStartOf="parent"
  3967.         app:layout_constraintTop_toTopOf="parent"
  3968.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3969.         />
  3970.     <androidx.viewpager2.widget.ViewPager2
  3971.         android:id="@+id/myviepage2"
  3972.         android:layout_width="match_parent"
  3973.         android:layout_height="0dp"
  3974.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  3975.         app:layout_constraintBottom_toBottomOf="parent"
  3976.         app:layout_constraintStart_toStartOf="parent"
  3977.         />
  3978. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  3979. <?xml version="1.0" encoding="utf-8"?>
  3980. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3981.     xmlns:tools="http://schemas.android.com/tools"
  3982.     android:layout_width="match_parent"
  3983.     android:layout_height="match_parent"
  3984.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3985.     tools:context=".tablayout.TabLayoutHomeFragment">
  3986.     <com.google.android.material.tabs.TabLayout
  3987.         android:id="@+id/mytablayout2"
  3988.         android:layout_width="match_parent"
  3989.         android:layout_height="wrap_content"
  3990.         app:tabMode="auto"
  3991.         app:tabGravity="start"
  3992.         app:tabBackground="@color/pink"
  3993.         app:tabTextColor="@color/white"
  3994.         app:layout_constraintStart_toStartOf="parent"
  3995.         app:layout_constraintTop_toTopOf="parent"
  3996.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  3997.         />
  3998.     <androidx.viewpager2.widget.ViewPager2
  3999.         android:id="@+id/myviepage2"
  4000.         android:layout_width="match_parent"
  4001.         android:layout_height="0dp"
  4002.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4003.         app:layout_constraintBottom_toBottomOf="parent"
  4004.         app:layout_constraintStart_toStartOf="parent"
  4005.         />
  4006. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  4007. <?xml version="1.0" encoding="utf-8"?>
  4008. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4009.     xmlns:tools="http://schemas.android.com/tools"
  4010.     android:layout_width="match_parent"
  4011.     android:layout_height="match_parent"
  4012.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4013.     tools:context=".tablayout.TabLayoutHomeFragment">
  4014.     <com.google.android.material.tabs.TabLayout
  4015.         android:id="@+id/mytablayout2"
  4016.         android:layout_width="match_parent"
  4017.         android:layout_height="wrap_content"
  4018.         app:tabMode="auto"
  4019.         app:tabGravity="start"
  4020.         app:tabBackground="@color/pink"
  4021.         app:tabTextColor="@color/white"
  4022.         app:layout_constraintStart_toStartOf="parent"
  4023.         app:layout_constraintTop_toTopOf="parent"
  4024.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4025.         />
  4026.     <androidx.viewpager2.widget.ViewPager2
  4027.         android:id="@+id/myviepage2"
  4028.         android:layout_width="match_parent"
  4029.         android:layout_height="0dp"
  4030.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4031.         app:layout_constraintBottom_toBottomOf="parent"
  4032.         app:layout_constraintStart_toStartOf="parent"
  4033.         />
  4034. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  4035. <?xml version="1.0" encoding="utf-8"?>
  4036. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4037.     xmlns:tools="http://schemas.android.com/tools"
  4038.     android:layout_width="match_parent"
  4039.     android:layout_height="match_parent"
  4040.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4041.     tools:context=".tablayout.TabLayoutHomeFragment">
  4042.     <com.google.android.material.tabs.TabLayout
  4043.         android:id="@+id/mytablayout2"
  4044.         android:layout_width="match_parent"
  4045.         android:layout_height="wrap_content"
  4046.         app:tabMode="auto"
  4047.         app:tabGravity="start"
  4048.         app:tabBackground="@color/pink"
  4049.         app:tabTextColor="@color/white"
  4050.         app:layout_constraintStart_toStartOf="parent"
  4051.         app:layout_constraintTop_toTopOf="parent"
  4052.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4053.         />
  4054.     <androidx.viewpager2.widget.ViewPager2
  4055.         android:id="@+id/myviepage2"
  4056.         android:layout_width="match_parent"
  4057.         android:layout_height="0dp"
  4058.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4059.         app:layout_constraintBottom_toBottomOf="parent"
  4060.         app:layout_constraintStart_toStartOf="parent"
  4061.         />
  4062. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  4063. <?xml version="1.0" encoding="utf-8"?>
  4064. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4065.     xmlns:tools="http://schemas.android.com/tools"
  4066.     android:layout_width="match_parent"
  4067.     android:layout_height="match_parent"
  4068.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4069.     tools:context=".tablayout.TabLayoutHomeFragment">
  4070.     <com.google.android.material.tabs.TabLayout
  4071.         android:id="@+id/mytablayout2"
  4072.         android:layout_width="match_parent"
  4073.         android:layout_height="wrap_content"
  4074.         app:tabMode="auto"
  4075.         app:tabGravity="start"
  4076.         app:tabBackground="@color/pink"
  4077.         app:tabTextColor="@color/white"
  4078.         app:layout_constraintStart_toStartOf="parent"
  4079.         app:layout_constraintTop_toTopOf="parent"
  4080.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4081.         />
  4082.     <androidx.viewpager2.widget.ViewPager2
  4083.         android:id="@+id/myviepage2"
  4084.         android:layout_width="match_parent"
  4085.         android:layout_height="0dp"
  4086.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4087.         app:layout_constraintBottom_toBottomOf="parent"
  4088.         app:layout_constraintStart_toStartOf="parent"
  4089.         />
  4090. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  4091. <?xml version="1.0" encoding="utf-8"?>
  4092. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4093.     xmlns:tools="http://schemas.android.com/tools"
  4094.     android:layout_width="match_parent"
  4095.     android:layout_height="match_parent"
  4096.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4097.     tools:context=".tablayout.TabLayoutHomeFragment">
  4098.     <com.google.android.material.tabs.TabLayout
  4099.         android:id="@+id/mytablayout2"
  4100.         android:layout_width="match_parent"
  4101.         android:layout_height="wrap_content"
  4102.         app:tabMode="auto"
  4103.         app:tabGravity="start"
  4104.         app:tabBackground="@color/pink"
  4105.         app:tabTextColor="@color/white"
  4106.         app:layout_constraintStart_toStartOf="parent"
  4107.         app:layout_constraintTop_toTopOf="parent"
  4108.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4109.         />
  4110.     <androidx.viewpager2.widget.ViewPager2
  4111.         android:id="@+id/myviepage2"
  4112.         android:layout_width="match_parent"
  4113.         android:layout_height="0dp"
  4114.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4115.         app:layout_constraintBottom_toBottomOf="parent"
  4116.         app:layout_constraintStart_toStartOf="parent"
  4117.         />
  4118. </androidx.constraintlayout.widget.ConstraintLayout>/>
  4119. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  4120. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4121.     xmlns:tools="http://schemas.android.com/tools"
  4122.     android:layout_width="match_parent"
  4123.     android:layout_height="match_parent"
  4124.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4125.     tools:context=".tablayout.TabLayoutHomeFragment">
  4126.     <com.google.android.material.tabs.TabLayout
  4127.         android:id="@+id/mytablayout2"
  4128.         android:layout_width="match_parent"
  4129.         android:layout_height="wrap_content"
  4130.         app:tabMode="auto"
  4131.         app:tabGravity="start"
  4132.         app:tabBackground="@color/pink"
  4133.         app:tabTextColor="@color/white"
  4134.         app:layout_constraintStart_toStartOf="parent"
  4135.         app:layout_constraintTop_toTopOf="parent"
  4136.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4137.         />
  4138.     <androidx.viewpager2.widget.ViewPager2
  4139.         android:id="@+id/myviepage2"
  4140.         android:layout_width="match_parent"
  4141.         android:layout_height="0dp"
  4142.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4143.         app:layout_constraintBottom_toBottomOf="parent"
  4144.         app:layout_constraintStart_toStartOf="parent"
  4145.         />
  4146. </androidx.constraintlayout.widget.ConstraintLayout>.replace(R.id.container_view, fragmentMap.get(R.id.home_item))<?xml version="1.0" encoding="utf-8"?>
  4147. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4148.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4149.     xmlns:tools="http://schemas.android.com/tools"
  4150.     android:layout_width="match_parent"
  4151.     android:layout_height="match_parent"
  4152.     tools:context=".ViewPager2TabLayoutActivity">
  4153.    
  4154.     <androidx.fragment.app.FragmentContainerView
  4155. <?xml version="1.0" encoding="utf-8"?>
  4156. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4157.     xmlns:tools="http://schemas.android.com/tools"
  4158.     android:layout_width="match_parent"
  4159.     android:layout_height="match_parent"
  4160.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4161.     tools:context=".tablayout.TabLayoutHomeFragment">
  4162.     <com.google.android.material.tabs.TabLayout
  4163.         android:id="@+id/mytablayout2"
  4164.         android:layout_width="match_parent"
  4165.         android:layout_height="wrap_content"
  4166.         app:tabMode="auto"
  4167.         app:tabGravity="start"
  4168.         app:tabBackground="@color/pink"
  4169.         app:tabTextColor="@color/white"
  4170.         app:layout_constraintStart_toStartOf="parent"
  4171.         app:layout_constraintTop_toTopOf="parent"
  4172.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4173.         />
  4174.     <androidx.viewpager2.widget.ViewPager2
  4175.         android:id="@+id/myviepage2"
  4176.         android:layout_width="match_parent"
  4177.         android:layout_height="0dp"
  4178.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4179.         app:layout_constraintBottom_toBottomOf="parent"
  4180.         app:layout_constraintStart_toStartOf="parent"
  4181.         />
  4182. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  4183. <?xml version="1.0" encoding="utf-8"?>
  4184. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4185.     xmlns:tools="http://schemas.android.com/tools"
  4186.     android:layout_width="match_parent"
  4187.     android:layout_height="match_parent"
  4188.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4189.     tools:context=".tablayout.TabLayoutHomeFragment">
  4190.     <com.google.android.material.tabs.TabLayout
  4191.         android:id="@+id/mytablayout2"
  4192.         android:layout_width="match_parent"
  4193.         android:layout_height="wrap_content"
  4194.         app:tabMode="auto"
  4195.         app:tabGravity="start"
  4196.         app:tabBackground="@color/pink"
  4197.         app:tabTextColor="@color/white"
  4198.         app:layout_constraintStart_toStartOf="parent"
  4199.         app:layout_constraintTop_toTopOf="parent"
  4200.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4201.         />
  4202.     <androidx.viewpager2.widget.ViewPager2
  4203.         android:id="@+id/myviepage2"
  4204.         android:layout_width="match_parent"
  4205.         android:layout_height="0dp"
  4206.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4207.         app:layout_constraintBottom_toBottomOf="parent"
  4208.         app:layout_constraintStart_toStartOf="parent"
  4209.         />
  4210. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  4211. <?xml version="1.0" encoding="utf-8"?>
  4212. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4213.     xmlns:tools="http://schemas.android.com/tools"
  4214.     android:layout_width="match_parent"
  4215.     android:layout_height="match_parent"
  4216.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4217.     tools:context=".tablayout.TabLayoutHomeFragment">
  4218.     <com.google.android.material.tabs.TabLayout
  4219.         android:id="@+id/mytablayout2"
  4220.         android:layout_width="match_parent"
  4221.         android:layout_height="wrap_content"
  4222.         app:tabMode="auto"
  4223.         app:tabGravity="start"
  4224.         app:tabBackground="@color/pink"
  4225.         app:tabTextColor="@color/white"
  4226.         app:layout_constraintStart_toStartOf="parent"
  4227.         app:layout_constraintTop_toTopOf="parent"
  4228.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4229.         />
  4230.     <androidx.viewpager2.widget.ViewPager2
  4231.         android:id="@+id/myviepage2"
  4232.         android:layout_width="match_parent"
  4233.         android:layout_height="0dp"
  4234.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4235.         app:layout_constraintBottom_toBottomOf="parent"
  4236.         app:layout_constraintStart_toStartOf="parent"
  4237.         />
  4238. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  4239. <?xml version="1.0" encoding="utf-8"?>
  4240. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4241.     xmlns:tools="http://schemas.android.com/tools"
  4242.     android:layout_width="match_parent"
  4243.     android:layout_height="match_parent"
  4244.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4245.     tools:context=".tablayout.TabLayoutHomeFragment">
  4246.     <com.google.android.material.tabs.TabLayout
  4247.         android:id="@+id/mytablayout2"
  4248.         android:layout_width="match_parent"
  4249.         android:layout_height="wrap_content"
  4250.         app:tabMode="auto"
  4251.         app:tabGravity="start"
  4252.         app:tabBackground="@color/pink"
  4253.         app:tabTextColor="@color/white"
  4254.         app:layout_constraintStart_toStartOf="parent"
  4255.         app:layout_constraintTop_toTopOf="parent"
  4256.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4257.         />
  4258.     <androidx.viewpager2.widget.ViewPager2
  4259.         android:id="@+id/myviepage2"
  4260.         android:layout_width="match_parent"
  4261.         android:layout_height="0dp"
  4262.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4263.         app:layout_constraintBottom_toBottomOf="parent"
  4264.         app:layout_constraintStart_toStartOf="parent"
  4265.         />
  4266. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  4267. <?xml version="1.0" encoding="utf-8"?>
  4268. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4269.     xmlns:tools="http://schemas.android.com/tools"
  4270.     android:layout_width="match_parent"
  4271.     android:layout_height="match_parent"
  4272.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4273.     tools:context=".tablayout.TabLayoutHomeFragment">
  4274.     <com.google.android.material.tabs.TabLayout
  4275.         android:id="@+id/mytablayout2"
  4276.         android:layout_width="match_parent"
  4277.         android:layout_height="wrap_content"
  4278.         app:tabMode="auto"
  4279.         app:tabGravity="start"
  4280.         app:tabBackground="@color/pink"
  4281.         app:tabTextColor="@color/white"
  4282.         app:layout_constraintStart_toStartOf="parent"
  4283.         app:layout_constraintTop_toTopOf="parent"
  4284.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4285.         />
  4286.     <androidx.viewpager2.widget.ViewPager2
  4287.         android:id="@+id/myviepage2"
  4288.         android:layout_width="match_parent"
  4289.         android:layout_height="0dp"
  4290.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4291.         app:layout_constraintBottom_toBottomOf="parent"
  4292.         app:layout_constraintStart_toStartOf="parent"
  4293.         />
  4294. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  4295.     <com.google.android.material.bottomnavigation.BottomNavigationView
  4296. <?xml version="1.0" encoding="utf-8"?>
  4297. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4298.     xmlns:tools="http://schemas.android.com/tools"
  4299.     android:layout_width="match_parent"
  4300.     android:layout_height="match_parent"
  4301.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4302.     tools:context=".tablayout.TabLayoutHomeFragment">
  4303.     <com.google.android.material.tabs.TabLayout
  4304.         android:id="@+id/mytablayout2"
  4305.         android:layout_width="match_parent"
  4306.         android:layout_height="wrap_content"
  4307.         app:tabMode="auto"
  4308.         app:tabGravity="start"
  4309.         app:tabBackground="@color/pink"
  4310.         app:tabTextColor="@color/white"
  4311.         app:layout_constraintStart_toStartOf="parent"
  4312.         app:layout_constraintTop_toTopOf="parent"
  4313.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4314.         />
  4315.     <androidx.viewpager2.widget.ViewPager2
  4316.         android:id="@+id/myviepage2"
  4317.         android:layout_width="match_parent"
  4318.         android:layout_height="0dp"
  4319.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4320.         app:layout_constraintBottom_toBottomOf="parent"
  4321.         app:layout_constraintStart_toStartOf="parent"
  4322.         />
  4323. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  4324. <?xml version="1.0" encoding="utf-8"?>
  4325. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4326.     xmlns:tools="http://schemas.android.com/tools"
  4327.     android:layout_width="match_parent"
  4328.     android:layout_height="match_parent"
  4329.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4330.     tools:context=".tablayout.TabLayoutHomeFragment">
  4331.     <com.google.android.material.tabs.TabLayout
  4332.         android:id="@+id/mytablayout2"
  4333.         android:layout_width="match_parent"
  4334.         android:layout_height="wrap_content"
  4335.         app:tabMode="auto"
  4336.         app:tabGravity="start"
  4337.         app:tabBackground="@color/pink"
  4338.         app:tabTextColor="@color/white"
  4339.         app:layout_constraintStart_toStartOf="parent"
  4340.         app:layout_constraintTop_toTopOf="parent"
  4341.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4342.         />
  4343.     <androidx.viewpager2.widget.ViewPager2
  4344.         android:id="@+id/myviepage2"
  4345.         android:layout_width="match_parent"
  4346.         android:layout_height="0dp"
  4347.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4348.         app:layout_constraintBottom_toBottomOf="parent"
  4349.         app:layout_constraintStart_toStartOf="parent"
  4350.         />
  4351. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  4352. <?xml version="1.0" encoding="utf-8"?>
  4353. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4354.     xmlns:tools="http://schemas.android.com/tools"
  4355.     android:layout_width="match_parent"
  4356.     android:layout_height="match_parent"
  4357.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4358.     tools:context=".tablayout.TabLayoutHomeFragment">
  4359.     <com.google.android.material.tabs.TabLayout
  4360.         android:id="@+id/mytablayout2"
  4361.         android:layout_width="match_parent"
  4362.         android:layout_height="wrap_content"
  4363.         app:tabMode="auto"
  4364.         app:tabGravity="start"
  4365.         app:tabBackground="@color/pink"
  4366.         app:tabTextColor="@color/white"
  4367.         app:layout_constraintStart_toStartOf="parent"
  4368.         app:layout_constraintTop_toTopOf="parent"
  4369.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4370.         />
  4371.     <androidx.viewpager2.widget.ViewPager2
  4372.         android:id="@+id/myviepage2"
  4373.         android:layout_width="match_parent"
  4374.         android:layout_height="0dp"
  4375.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4376.         app:layout_constraintBottom_toBottomOf="parent"
  4377.         app:layout_constraintStart_toStartOf="parent"
  4378.         />
  4379. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  4380. <?xml version="1.0" encoding="utf-8"?>
  4381. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4382.     xmlns:tools="http://schemas.android.com/tools"
  4383.     android:layout_width="match_parent"
  4384.     android:layout_height="match_parent"
  4385.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4386.     tools:context=".tablayout.TabLayoutHomeFragment">
  4387.     <com.google.android.material.tabs.TabLayout
  4388.         android:id="@+id/mytablayout2"
  4389.         android:layout_width="match_parent"
  4390.         android:layout_height="wrap_content"
  4391.         app:tabMode="auto"
  4392.         app:tabGravity="start"
  4393.         app:tabBackground="@color/pink"
  4394.         app:tabTextColor="@color/white"
  4395.         app:layout_constraintStart_toStartOf="parent"
  4396.         app:layout_constraintTop_toTopOf="parent"
  4397.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4398.         />
  4399.     <androidx.viewpager2.widget.ViewPager2
  4400.         android:id="@+id/myviepage2"
  4401.         android:layout_width="match_parent"
  4402.         android:layout_height="0dp"
  4403.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4404.         app:layout_constraintBottom_toBottomOf="parent"
  4405.         app:layout_constraintStart_toStartOf="parent"
  4406.         />
  4407. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  4408. <?xml version="1.0" encoding="utf-8"?>
  4409. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4410.     xmlns:tools="http://schemas.android.com/tools"
  4411.     android:layout_width="match_parent"
  4412.     android:layout_height="match_parent"
  4413.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4414.     tools:context=".tablayout.TabLayoutHomeFragment">
  4415.     <com.google.android.material.tabs.TabLayout
  4416.         android:id="@+id/mytablayout2"
  4417.         android:layout_width="match_parent"
  4418.         android:layout_height="wrap_content"
  4419.         app:tabMode="auto"
  4420.         app:tabGravity="start"
  4421.         app:tabBackground="@color/pink"
  4422.         app:tabTextColor="@color/white"
  4423.         app:layout_constraintStart_toStartOf="parent"
  4424.         app:layout_constraintTop_toTopOf="parent"
  4425.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4426.         />
  4427.     <androidx.viewpager2.widget.ViewPager2
  4428.         android:id="@+id/myviepage2"
  4429.         android:layout_width="match_parent"
  4430.         android:layout_height="0dp"
  4431.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4432.         app:layout_constraintBottom_toBottomOf="parent"
  4433.         app:layout_constraintStart_toStartOf="parent"
  4434.         />
  4435. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  4436. <?xml version="1.0" encoding="utf-8"?>
  4437. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4438.     xmlns:tools="http://schemas.android.com/tools"
  4439.     android:layout_width="match_parent"
  4440.     android:layout_height="match_parent"
  4441.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4442.     tools:context=".tablayout.TabLayoutHomeFragment">
  4443.     <com.google.android.material.tabs.TabLayout
  4444.         android:id="@+id/mytablayout2"
  4445.         android:layout_width="match_parent"
  4446.         android:layout_height="wrap_content"
  4447.         app:tabMode="auto"
  4448.         app:tabGravity="start"
  4449.         app:tabBackground="@color/pink"
  4450.         app:tabTextColor="@color/white"
  4451.         app:layout_constraintStart_toStartOf="parent"
  4452.         app:layout_constraintTop_toTopOf="parent"
  4453.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4454.         />
  4455.     <androidx.viewpager2.widget.ViewPager2
  4456.         android:id="@+id/myviepage2"
  4457.         android:layout_width="match_parent"
  4458.         android:layout_height="0dp"
  4459.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4460.         app:layout_constraintBottom_toBottomOf="parent"
  4461.         app:layout_constraintStart_toStartOf="parent"
  4462.         />
  4463. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  4464. <?xml version="1.0" encoding="utf-8"?>
  4465. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4466.     xmlns:tools="http://schemas.android.com/tools"
  4467.     android:layout_width="match_parent"
  4468.     android:layout_height="match_parent"
  4469.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4470.     tools:context=".tablayout.TabLayoutHomeFragment">
  4471.     <com.google.android.material.tabs.TabLayout
  4472.         android:id="@+id/mytablayout2"
  4473.         android:layout_width="match_parent"
  4474.         android:layout_height="wrap_content"
  4475.         app:tabMode="auto"
  4476.         app:tabGravity="start"
  4477.         app:tabBackground="@color/pink"
  4478.         app:tabTextColor="@color/white"
  4479.         app:layout_constraintStart_toStartOf="parent"
  4480.         app:layout_constraintTop_toTopOf="parent"
  4481.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4482.         />
  4483.     <androidx.viewpager2.widget.ViewPager2
  4484.         android:id="@+id/myviepage2"
  4485.         android:layout_width="match_parent"
  4486.         android:layout_height="0dp"
  4487.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4488.         app:layout_constraintBottom_toBottomOf="parent"
  4489.         app:layout_constraintStart_toStartOf="parent"
  4490.         />
  4491. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  4492. <?xml version="1.0" encoding="utf-8"?>
  4493. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4494.     xmlns:tools="http://schemas.android.com/tools"
  4495.     android:layout_width="match_parent"
  4496.     android:layout_height="match_parent"
  4497.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4498.     tools:context=".tablayout.TabLayoutHomeFragment">
  4499.     <com.google.android.material.tabs.TabLayout
  4500.         android:id="@+id/mytablayout2"
  4501.         android:layout_width="match_parent"
  4502.         android:layout_height="wrap_content"
  4503.         app:tabMode="auto"
  4504.         app:tabGravity="start"
  4505.         app:tabBackground="@color/pink"
  4506.         app:tabTextColor="@color/white"
  4507.         app:layout_constraintStart_toStartOf="parent"
  4508.         app:layout_constraintTop_toTopOf="parent"
  4509.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4510.         />
  4511.     <androidx.viewpager2.widget.ViewPager2
  4512.         android:id="@+id/myviepage2"
  4513.         android:layout_width="match_parent"
  4514.         android:layout_height="0dp"
  4515.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4516.         app:layout_constraintBottom_toBottomOf="parent"
  4517.         app:layout_constraintStart_toStartOf="parent"
  4518.         />
  4519. </androidx.constraintlayout.widget.ConstraintLayout>/>
  4520. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  4521. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4522.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4523.     xmlns:tools="http://schemas.android.com/tools"
  4524.     android:layout_width="match_parent"
  4525.     android:layout_height="match_parent"
  4526.     tools:context=".ViewPager2TabLayoutActivity">
  4527.    
  4528.     <androidx.fragment.app.FragmentContainerView
  4529. <?xml version="1.0" encoding="utf-8"?>
  4530. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4531.     xmlns:tools="http://schemas.android.com/tools"
  4532.     android:layout_width="match_parent"
  4533.     android:layout_height="match_parent"
  4534.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4535.     tools:context=".tablayout.TabLayoutHomeFragment">
  4536.     <com.google.android.material.tabs.TabLayout
  4537.         android:id="@+id/mytablayout2"
  4538.         android:layout_width="match_parent"
  4539.         android:layout_height="wrap_content"
  4540.         app:tabMode="auto"
  4541.         app:tabGravity="start"
  4542.         app:tabBackground="@color/pink"
  4543.         app:tabTextColor="@color/white"
  4544.         app:layout_constraintStart_toStartOf="parent"
  4545.         app:layout_constraintTop_toTopOf="parent"
  4546.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4547.         />
  4548.     <androidx.viewpager2.widget.ViewPager2
  4549.         android:id="@+id/myviepage2"
  4550.         android:layout_width="match_parent"
  4551.         android:layout_height="0dp"
  4552.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4553.         app:layout_constraintBottom_toBottomOf="parent"
  4554.         app:layout_constraintStart_toStartOf="parent"
  4555.         />
  4556. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  4557. <?xml version="1.0" encoding="utf-8"?>
  4558. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4559.     xmlns:tools="http://schemas.android.com/tools"
  4560.     android:layout_width="match_parent"
  4561.     android:layout_height="match_parent"
  4562.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4563.     tools:context=".tablayout.TabLayoutHomeFragment">
  4564.     <com.google.android.material.tabs.TabLayout
  4565.         android:id="@+id/mytablayout2"
  4566.         android:layout_width="match_parent"
  4567.         android:layout_height="wrap_content"
  4568.         app:tabMode="auto"
  4569.         app:tabGravity="start"
  4570.         app:tabBackground="@color/pink"
  4571.         app:tabTextColor="@color/white"
  4572.         app:layout_constraintStart_toStartOf="parent"
  4573.         app:layout_constraintTop_toTopOf="parent"
  4574.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4575.         />
  4576.     <androidx.viewpager2.widget.ViewPager2
  4577.         android:id="@+id/myviepage2"
  4578.         android:layout_width="match_parent"
  4579.         android:layout_height="0dp"
  4580.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4581.         app:layout_constraintBottom_toBottomOf="parent"
  4582.         app:layout_constraintStart_toStartOf="parent"
  4583.         />
  4584. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  4585. <?xml version="1.0" encoding="utf-8"?>
  4586. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4587.     xmlns:tools="http://schemas.android.com/tools"
  4588.     android:layout_width="match_parent"
  4589.     android:layout_height="match_parent"
  4590.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4591.     tools:context=".tablayout.TabLayoutHomeFragment">
  4592.     <com.google.android.material.tabs.TabLayout
  4593.         android:id="@+id/mytablayout2"
  4594.         android:layout_width="match_parent"
  4595.         android:layout_height="wrap_content"
  4596.         app:tabMode="auto"
  4597.         app:tabGravity="start"
  4598.         app:tabBackground="@color/pink"
  4599.         app:tabTextColor="@color/white"
  4600.         app:layout_constraintStart_toStartOf="parent"
  4601.         app:layout_constraintTop_toTopOf="parent"
  4602.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4603.         />
  4604.     <androidx.viewpager2.widget.ViewPager2
  4605.         android:id="@+id/myviepage2"
  4606.         android:layout_width="match_parent"
  4607.         android:layout_height="0dp"
  4608.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4609.         app:layout_constraintBottom_toBottomOf="parent"
  4610.         app:layout_constraintStart_toStartOf="parent"
  4611.         />
  4612. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  4613. <?xml version="1.0" encoding="utf-8"?>
  4614. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4615.     xmlns:tools="http://schemas.android.com/tools"
  4616.     android:layout_width="match_parent"
  4617.     android:layout_height="match_parent"
  4618.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4619.     tools:context=".tablayout.TabLayoutHomeFragment">
  4620.     <com.google.android.material.tabs.TabLayout
  4621.         android:id="@+id/mytablayout2"
  4622.         android:layout_width="match_parent"
  4623.         android:layout_height="wrap_content"
  4624.         app:tabMode="auto"
  4625.         app:tabGravity="start"
  4626.         app:tabBackground="@color/pink"
  4627.         app:tabTextColor="@color/white"
  4628.         app:layout_constraintStart_toStartOf="parent"
  4629.         app:layout_constraintTop_toTopOf="parent"
  4630.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4631.         />
  4632.     <androidx.viewpager2.widget.ViewPager2
  4633.         android:id="@+id/myviepage2"
  4634.         android:layout_width="match_parent"
  4635.         android:layout_height="0dp"
  4636.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4637.         app:layout_constraintBottom_toBottomOf="parent"
  4638.         app:layout_constraintStart_toStartOf="parent"
  4639.         />
  4640. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  4641. <?xml version="1.0" encoding="utf-8"?>
  4642. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4643.     xmlns:tools="http://schemas.android.com/tools"
  4644.     android:layout_width="match_parent"
  4645.     android:layout_height="match_parent"
  4646.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4647.     tools:context=".tablayout.TabLayoutHomeFragment">
  4648.     <com.google.android.material.tabs.TabLayout
  4649.         android:id="@+id/mytablayout2"
  4650.         android:layout_width="match_parent"
  4651.         android:layout_height="wrap_content"
  4652.         app:tabMode="auto"
  4653.         app:tabGravity="start"
  4654.         app:tabBackground="@color/pink"
  4655.         app:tabTextColor="@color/white"
  4656.         app:layout_constraintStart_toStartOf="parent"
  4657.         app:layout_constraintTop_toTopOf="parent"
  4658.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4659.         />
  4660.     <androidx.viewpager2.widget.ViewPager2
  4661.         android:id="@+id/myviepage2"
  4662.         android:layout_width="match_parent"
  4663.         android:layout_height="0dp"
  4664.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4665.         app:layout_constraintBottom_toBottomOf="parent"
  4666.         app:layout_constraintStart_toStartOf="parent"
  4667.         />
  4668. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  4669.     <com.google.android.material.bottomnavigation.BottomNavigationView
  4670. <?xml version="1.0" encoding="utf-8"?>
  4671. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4672.     xmlns:tools="http://schemas.android.com/tools"
  4673.     android:layout_width="match_parent"
  4674.     android:layout_height="match_parent"
  4675.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4676.     tools:context=".tablayout.TabLayoutHomeFragment">
  4677.     <com.google.android.material.tabs.TabLayout
  4678.         android:id="@+id/mytablayout2"
  4679.         android:layout_width="match_parent"
  4680.         android:layout_height="wrap_content"
  4681.         app:tabMode="auto"
  4682.         app:tabGravity="start"
  4683.         app:tabBackground="@color/pink"
  4684.         app:tabTextColor="@color/white"
  4685.         app:layout_constraintStart_toStartOf="parent"
  4686.         app:layout_constraintTop_toTopOf="parent"
  4687.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4688.         />
  4689.     <androidx.viewpager2.widget.ViewPager2
  4690.         android:id="@+id/myviepage2"
  4691.         android:layout_width="match_parent"
  4692.         android:layout_height="0dp"
  4693.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4694.         app:layout_constraintBottom_toBottomOf="parent"
  4695.         app:layout_constraintStart_toStartOf="parent"
  4696.         />
  4697. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  4698. <?xml version="1.0" encoding="utf-8"?>
  4699. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4700.     xmlns:tools="http://schemas.android.com/tools"
  4701.     android:layout_width="match_parent"
  4702.     android:layout_height="match_parent"
  4703.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4704.     tools:context=".tablayout.TabLayoutHomeFragment">
  4705.     <com.google.android.material.tabs.TabLayout
  4706.         android:id="@+id/mytablayout2"
  4707.         android:layout_width="match_parent"
  4708.         android:layout_height="wrap_content"
  4709.         app:tabMode="auto"
  4710.         app:tabGravity="start"
  4711.         app:tabBackground="@color/pink"
  4712.         app:tabTextColor="@color/white"
  4713.         app:layout_constraintStart_toStartOf="parent"
  4714.         app:layout_constraintTop_toTopOf="parent"
  4715.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4716.         />
  4717.     <androidx.viewpager2.widget.ViewPager2
  4718.         android:id="@+id/myviepage2"
  4719.         android:layout_width="match_parent"
  4720.         android:layout_height="0dp"
  4721.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4722.         app:layout_constraintBottom_toBottomOf="parent"
  4723.         app:layout_constraintStart_toStartOf="parent"
  4724.         />
  4725. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  4726. <?xml version="1.0" encoding="utf-8"?>
  4727. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4728.     xmlns:tools="http://schemas.android.com/tools"
  4729.     android:layout_width="match_parent"
  4730.     android:layout_height="match_parent"
  4731.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4732.     tools:context=".tablayout.TabLayoutHomeFragment">
  4733.     <com.google.android.material.tabs.TabLayout
  4734.         android:id="@+id/mytablayout2"
  4735.         android:layout_width="match_parent"
  4736.         android:layout_height="wrap_content"
  4737.         app:tabMode="auto"
  4738.         app:tabGravity="start"
  4739.         app:tabBackground="@color/pink"
  4740.         app:tabTextColor="@color/white"
  4741.         app:layout_constraintStart_toStartOf="parent"
  4742.         app:layout_constraintTop_toTopOf="parent"
  4743.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4744.         />
  4745.     <androidx.viewpager2.widget.ViewPager2
  4746.         android:id="@+id/myviepage2"
  4747.         android:layout_width="match_parent"
  4748.         android:layout_height="0dp"
  4749.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4750.         app:layout_constraintBottom_toBottomOf="parent"
  4751.         app:layout_constraintStart_toStartOf="parent"
  4752.         />
  4753. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  4754. <?xml version="1.0" encoding="utf-8"?>
  4755. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4756.     xmlns:tools="http://schemas.android.com/tools"
  4757.     android:layout_width="match_parent"
  4758.     android:layout_height="match_parent"
  4759.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4760.     tools:context=".tablayout.TabLayoutHomeFragment">
  4761.     <com.google.android.material.tabs.TabLayout
  4762.         android:id="@+id/mytablayout2"
  4763.         android:layout_width="match_parent"
  4764.         android:layout_height="wrap_content"
  4765.         app:tabMode="auto"
  4766.         app:tabGravity="start"
  4767.         app:tabBackground="@color/pink"
  4768.         app:tabTextColor="@color/white"
  4769.         app:layout_constraintStart_toStartOf="parent"
  4770.         app:layout_constraintTop_toTopOf="parent"
  4771.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4772.         />
  4773.     <androidx.viewpager2.widget.ViewPager2
  4774.         android:id="@+id/myviepage2"
  4775.         android:layout_width="match_parent"
  4776.         android:layout_height="0dp"
  4777.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4778.         app:layout_constraintBottom_toBottomOf="parent"
  4779.         app:layout_constraintStart_toStartOf="parent"
  4780.         />
  4781. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  4782. <?xml version="1.0" encoding="utf-8"?>
  4783. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4784.     xmlns:tools="http://schemas.android.com/tools"
  4785.     android:layout_width="match_parent"
  4786.     android:layout_height="match_parent"
  4787.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4788.     tools:context=".tablayout.TabLayoutHomeFragment">
  4789.     <com.google.android.material.tabs.TabLayout
  4790.         android:id="@+id/mytablayout2"
  4791.         android:layout_width="match_parent"
  4792.         android:layout_height="wrap_content"
  4793.         app:tabMode="auto"
  4794.         app:tabGravity="start"
  4795.         app:tabBackground="@color/pink"
  4796.         app:tabTextColor="@color/white"
  4797.         app:layout_constraintStart_toStartOf="parent"
  4798.         app:layout_constraintTop_toTopOf="parent"
  4799.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4800.         />
  4801.     <androidx.viewpager2.widget.ViewPager2
  4802.         android:id="@+id/myviepage2"
  4803.         android:layout_width="match_parent"
  4804.         android:layout_height="0dp"
  4805.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4806.         app:layout_constraintBottom_toBottomOf="parent"
  4807.         app:layout_constraintStart_toStartOf="parent"
  4808.         />
  4809. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  4810. <?xml version="1.0" encoding="utf-8"?>
  4811. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4812.     xmlns:tools="http://schemas.android.com/tools"
  4813.     android:layout_width="match_parent"
  4814.     android:layout_height="match_parent"
  4815.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4816.     tools:context=".tablayout.TabLayoutHomeFragment">
  4817.     <com.google.android.material.tabs.TabLayout
  4818.         android:id="@+id/mytablayout2"
  4819.         android:layout_width="match_parent"
  4820.         android:layout_height="wrap_content"
  4821.         app:tabMode="auto"
  4822.         app:tabGravity="start"
  4823.         app:tabBackground="@color/pink"
  4824.         app:tabTextColor="@color/white"
  4825.         app:layout_constraintStart_toStartOf="parent"
  4826.         app:layout_constraintTop_toTopOf="parent"
  4827.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4828.         />
  4829.     <androidx.viewpager2.widget.ViewPager2
  4830.         android:id="@+id/myviepage2"
  4831.         android:layout_width="match_parent"
  4832.         android:layout_height="0dp"
  4833.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4834.         app:layout_constraintBottom_toBottomOf="parent"
  4835.         app:layout_constraintStart_toStartOf="parent"
  4836.         />
  4837. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  4838. <?xml version="1.0" encoding="utf-8"?>
  4839. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4840.     xmlns:tools="http://schemas.android.com/tools"
  4841.     android:layout_width="match_parent"
  4842.     android:layout_height="match_parent"
  4843.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4844.     tools:context=".tablayout.TabLayoutHomeFragment">
  4845.     <com.google.android.material.tabs.TabLayout
  4846.         android:id="@+id/mytablayout2"
  4847.         android:layout_width="match_parent"
  4848.         android:layout_height="wrap_content"
  4849.         app:tabMode="auto"
  4850.         app:tabGravity="start"
  4851.         app:tabBackground="@color/pink"
  4852.         app:tabTextColor="@color/white"
  4853.         app:layout_constraintStart_toStartOf="parent"
  4854.         app:layout_constraintTop_toTopOf="parent"
  4855.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4856.         />
  4857.     <androidx.viewpager2.widget.ViewPager2
  4858.         android:id="@+id/myviepage2"
  4859.         android:layout_width="match_parent"
  4860.         android:layout_height="0dp"
  4861.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4862.         app:layout_constraintBottom_toBottomOf="parent"
  4863.         app:layout_constraintStart_toStartOf="parent"
  4864.         />
  4865. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  4866. <?xml version="1.0" encoding="utf-8"?>
  4867. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4868.     xmlns:tools="http://schemas.android.com/tools"
  4869.     android:layout_width="match_parent"
  4870.     android:layout_height="match_parent"
  4871.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4872.     tools:context=".tablayout.TabLayoutHomeFragment">
  4873.     <com.google.android.material.tabs.TabLayout
  4874.         android:id="@+id/mytablayout2"
  4875.         android:layout_width="match_parent"
  4876.         android:layout_height="wrap_content"
  4877.         app:tabMode="auto"
  4878.         app:tabGravity="start"
  4879.         app:tabBackground="@color/pink"
  4880.         app:tabTextColor="@color/white"
  4881.         app:layout_constraintStart_toStartOf="parent"
  4882.         app:layout_constraintTop_toTopOf="parent"
  4883.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4884.         />
  4885.     <androidx.viewpager2.widget.ViewPager2
  4886.         android:id="@+id/myviepage2"
  4887.         android:layout_width="match_parent"
  4888.         android:layout_height="0dp"
  4889.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4890.         app:layout_constraintBottom_toBottomOf="parent"
  4891.         app:layout_constraintStart_toStartOf="parent"
  4892.         />
  4893. </androidx.constraintlayout.widget.ConstraintLayout>/>
  4894. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  4895. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4896.     xmlns:tools="http://schemas.android.com/tools"
  4897.     android:layout_width="match_parent"
  4898.     android:layout_height="match_parent"
  4899.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4900.     tools:context=".tablayout.TabLayoutHomeFragment">
  4901.     <com.google.android.material.tabs.TabLayout
  4902.         android:id="@+id/mytablayout2"
  4903.         android:layout_width="match_parent"
  4904.         android:layout_height="wrap_content"
  4905.         app:tabMode="auto"
  4906.         app:tabGravity="start"
  4907.         app:tabBackground="@color/pink"
  4908.         app:tabTextColor="@color/white"
  4909.         app:layout_constraintStart_toStartOf="parent"
  4910.         app:layout_constraintTop_toTopOf="parent"
  4911.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4912.         />
  4913.     <androidx.viewpager2.widget.ViewPager2
  4914.         android:id="@+id/myviepage2"
  4915.         android:layout_width="match_parent"
  4916.         android:layout_height="0dp"
  4917.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4918.         app:layout_constraintBottom_toBottomOf="parent"
  4919.         app:layout_constraintStart_toStartOf="parent"
  4920.         />
  4921. </androidx.constraintlayout.widget.ConstraintLayout>.commit();<?xml version="1.0" encoding="utf-8"?>
  4922. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4923.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4924.     xmlns:tools="http://schemas.android.com/tools"
  4925.     android:layout_width="match_parent"
  4926.     android:layout_height="match_parent"
  4927.     tools:context=".ViewPager2TabLayoutActivity">
  4928.    
  4929.     <androidx.fragment.app.FragmentContainerView
  4930. <?xml version="1.0" encoding="utf-8"?>
  4931. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4932.     xmlns:tools="http://schemas.android.com/tools"
  4933.     android:layout_width="match_parent"
  4934.     android:layout_height="match_parent"
  4935.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4936.     tools:context=".tablayout.TabLayoutHomeFragment">
  4937.     <com.google.android.material.tabs.TabLayout
  4938.         android:id="@+id/mytablayout2"
  4939.         android:layout_width="match_parent"
  4940.         android:layout_height="wrap_content"
  4941.         app:tabMode="auto"
  4942.         app:tabGravity="start"
  4943.         app:tabBackground="@color/pink"
  4944.         app:tabTextColor="@color/white"
  4945.         app:layout_constraintStart_toStartOf="parent"
  4946.         app:layout_constraintTop_toTopOf="parent"
  4947.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4948.         />
  4949.     <androidx.viewpager2.widget.ViewPager2
  4950.         android:id="@+id/myviepage2"
  4951.         android:layout_width="match_parent"
  4952.         android:layout_height="0dp"
  4953.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4954.         app:layout_constraintBottom_toBottomOf="parent"
  4955.         app:layout_constraintStart_toStartOf="parent"
  4956.         />
  4957. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  4958. <?xml version="1.0" encoding="utf-8"?>
  4959. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4960.     xmlns:tools="http://schemas.android.com/tools"
  4961.     android:layout_width="match_parent"
  4962.     android:layout_height="match_parent"
  4963.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4964.     tools:context=".tablayout.TabLayoutHomeFragment">
  4965.     <com.google.android.material.tabs.TabLayout
  4966.         android:id="@+id/mytablayout2"
  4967.         android:layout_width="match_parent"
  4968.         android:layout_height="wrap_content"
  4969.         app:tabMode="auto"
  4970.         app:tabGravity="start"
  4971.         app:tabBackground="@color/pink"
  4972.         app:tabTextColor="@color/white"
  4973.         app:layout_constraintStart_toStartOf="parent"
  4974.         app:layout_constraintTop_toTopOf="parent"
  4975.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  4976.         />
  4977.     <androidx.viewpager2.widget.ViewPager2
  4978.         android:id="@+id/myviepage2"
  4979.         android:layout_width="match_parent"
  4980.         android:layout_height="0dp"
  4981.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  4982.         app:layout_constraintBottom_toBottomOf="parent"
  4983.         app:layout_constraintStart_toStartOf="parent"
  4984.         />
  4985. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  4986. <?xml version="1.0" encoding="utf-8"?>
  4987. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4988.     xmlns:tools="http://schemas.android.com/tools"
  4989.     android:layout_width="match_parent"
  4990.     android:layout_height="match_parent"
  4991.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4992.     tools:context=".tablayout.TabLayoutHomeFragment">
  4993.     <com.google.android.material.tabs.TabLayout
  4994.         android:id="@+id/mytablayout2"
  4995.         android:layout_width="match_parent"
  4996.         android:layout_height="wrap_content"
  4997.         app:tabMode="auto"
  4998.         app:tabGravity="start"
  4999.         app:tabBackground="@color/pink"
  5000.         app:tabTextColor="@color/white"
  5001.         app:layout_constraintStart_toStartOf="parent"
  5002.         app:layout_constraintTop_toTopOf="parent"
  5003.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5004.         />
  5005.     <androidx.viewpager2.widget.ViewPager2
  5006.         android:id="@+id/myviepage2"
  5007.         android:layout_width="match_parent"
  5008.         android:layout_height="0dp"
  5009.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5010.         app:layout_constraintBottom_toBottomOf="parent"
  5011.         app:layout_constraintStart_toStartOf="parent"
  5012.         />
  5013. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  5014. <?xml version="1.0" encoding="utf-8"?>
  5015. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5016.     xmlns:tools="http://schemas.android.com/tools"
  5017.     android:layout_width="match_parent"
  5018.     android:layout_height="match_parent"
  5019.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5020.     tools:context=".tablayout.TabLayoutHomeFragment">
  5021.     <com.google.android.material.tabs.TabLayout
  5022.         android:id="@+id/mytablayout2"
  5023.         android:layout_width="match_parent"
  5024.         android:layout_height="wrap_content"
  5025.         app:tabMode="auto"
  5026.         app:tabGravity="start"
  5027.         app:tabBackground="@color/pink"
  5028.         app:tabTextColor="@color/white"
  5029.         app:layout_constraintStart_toStartOf="parent"
  5030.         app:layout_constraintTop_toTopOf="parent"
  5031.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5032.         />
  5033.     <androidx.viewpager2.widget.ViewPager2
  5034.         android:id="@+id/myviepage2"
  5035.         android:layout_width="match_parent"
  5036.         android:layout_height="0dp"
  5037.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5038.         app:layout_constraintBottom_toBottomOf="parent"
  5039.         app:layout_constraintStart_toStartOf="parent"
  5040.         />
  5041. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  5042. <?xml version="1.0" encoding="utf-8"?>
  5043. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5044.     xmlns:tools="http://schemas.android.com/tools"
  5045.     android:layout_width="match_parent"
  5046.     android:layout_height="match_parent"
  5047.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5048.     tools:context=".tablayout.TabLayoutHomeFragment">
  5049.     <com.google.android.material.tabs.TabLayout
  5050.         android:id="@+id/mytablayout2"
  5051.         android:layout_width="match_parent"
  5052.         android:layout_height="wrap_content"
  5053.         app:tabMode="auto"
  5054.         app:tabGravity="start"
  5055.         app:tabBackground="@color/pink"
  5056.         app:tabTextColor="@color/white"
  5057.         app:layout_constraintStart_toStartOf="parent"
  5058.         app:layout_constraintTop_toTopOf="parent"
  5059.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5060.         />
  5061.     <androidx.viewpager2.widget.ViewPager2
  5062.         android:id="@+id/myviepage2"
  5063.         android:layout_width="match_parent"
  5064.         android:layout_height="0dp"
  5065.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5066.         app:layout_constraintBottom_toBottomOf="parent"
  5067.         app:layout_constraintStart_toStartOf="parent"
  5068.         />
  5069. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  5070.     <com.google.android.material.bottomnavigation.BottomNavigationView
  5071. <?xml version="1.0" encoding="utf-8"?>
  5072. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5073.     xmlns:tools="http://schemas.android.com/tools"
  5074.     android:layout_width="match_parent"
  5075.     android:layout_height="match_parent"
  5076.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5077.     tools:context=".tablayout.TabLayoutHomeFragment">
  5078.     <com.google.android.material.tabs.TabLayout
  5079.         android:id="@+id/mytablayout2"
  5080.         android:layout_width="match_parent"
  5081.         android:layout_height="wrap_content"
  5082.         app:tabMode="auto"
  5083.         app:tabGravity="start"
  5084.         app:tabBackground="@color/pink"
  5085.         app:tabTextColor="@color/white"
  5086.         app:layout_constraintStart_toStartOf="parent"
  5087.         app:layout_constraintTop_toTopOf="parent"
  5088.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5089.         />
  5090.     <androidx.viewpager2.widget.ViewPager2
  5091.         android:id="@+id/myviepage2"
  5092.         android:layout_width="match_parent"
  5093.         android:layout_height="0dp"
  5094.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5095.         app:layout_constraintBottom_toBottomOf="parent"
  5096.         app:layout_constraintStart_toStartOf="parent"
  5097.         />
  5098. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  5099. <?xml version="1.0" encoding="utf-8"?>
  5100. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5101.     xmlns:tools="http://schemas.android.com/tools"
  5102.     android:layout_width="match_parent"
  5103.     android:layout_height="match_parent"
  5104.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5105.     tools:context=".tablayout.TabLayoutHomeFragment">
  5106.     <com.google.android.material.tabs.TabLayout
  5107.         android:id="@+id/mytablayout2"
  5108.         android:layout_width="match_parent"
  5109.         android:layout_height="wrap_content"
  5110.         app:tabMode="auto"
  5111.         app:tabGravity="start"
  5112.         app:tabBackground="@color/pink"
  5113.         app:tabTextColor="@color/white"
  5114.         app:layout_constraintStart_toStartOf="parent"
  5115.         app:layout_constraintTop_toTopOf="parent"
  5116.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5117.         />
  5118.     <androidx.viewpager2.widget.ViewPager2
  5119.         android:id="@+id/myviepage2"
  5120.         android:layout_width="match_parent"
  5121.         android:layout_height="0dp"
  5122.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5123.         app:layout_constraintBottom_toBottomOf="parent"
  5124.         app:layout_constraintStart_toStartOf="parent"
  5125.         />
  5126. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  5127. <?xml version="1.0" encoding="utf-8"?>
  5128. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5129.     xmlns:tools="http://schemas.android.com/tools"
  5130.     android:layout_width="match_parent"
  5131.     android:layout_height="match_parent"
  5132.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5133.     tools:context=".tablayout.TabLayoutHomeFragment">
  5134.     <com.google.android.material.tabs.TabLayout
  5135.         android:id="@+id/mytablayout2"
  5136.         android:layout_width="match_parent"
  5137.         android:layout_height="wrap_content"
  5138.         app:tabMode="auto"
  5139.         app:tabGravity="start"
  5140.         app:tabBackground="@color/pink"
  5141.         app:tabTextColor="@color/white"
  5142.         app:layout_constraintStart_toStartOf="parent"
  5143.         app:layout_constraintTop_toTopOf="parent"
  5144.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5145.         />
  5146.     <androidx.viewpager2.widget.ViewPager2
  5147.         android:id="@+id/myviepage2"
  5148.         android:layout_width="match_parent"
  5149.         android:layout_height="0dp"
  5150.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5151.         app:layout_constraintBottom_toBottomOf="parent"
  5152.         app:layout_constraintStart_toStartOf="parent"
  5153.         />
  5154. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  5155. <?xml version="1.0" encoding="utf-8"?>
  5156. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5157.     xmlns:tools="http://schemas.android.com/tools"
  5158.     android:layout_width="match_parent"
  5159.     android:layout_height="match_parent"
  5160.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5161.     tools:context=".tablayout.TabLayoutHomeFragment">
  5162.     <com.google.android.material.tabs.TabLayout
  5163.         android:id="@+id/mytablayout2"
  5164.         android:layout_width="match_parent"
  5165.         android:layout_height="wrap_content"
  5166.         app:tabMode="auto"
  5167.         app:tabGravity="start"
  5168.         app:tabBackground="@color/pink"
  5169.         app:tabTextColor="@color/white"
  5170.         app:layout_constraintStart_toStartOf="parent"
  5171.         app:layout_constraintTop_toTopOf="parent"
  5172.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5173.         />
  5174.     <androidx.viewpager2.widget.ViewPager2
  5175.         android:id="@+id/myviepage2"
  5176.         android:layout_width="match_parent"
  5177.         android:layout_height="0dp"
  5178.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5179.         app:layout_constraintBottom_toBottomOf="parent"
  5180.         app:layout_constraintStart_toStartOf="parent"
  5181.         />
  5182. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  5183. <?xml version="1.0" encoding="utf-8"?>
  5184. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5185.     xmlns:tools="http://schemas.android.com/tools"
  5186.     android:layout_width="match_parent"
  5187.     android:layout_height="match_parent"
  5188.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5189.     tools:context=".tablayout.TabLayoutHomeFragment">
  5190.     <com.google.android.material.tabs.TabLayout
  5191.         android:id="@+id/mytablayout2"
  5192.         android:layout_width="match_parent"
  5193.         android:layout_height="wrap_content"
  5194.         app:tabMode="auto"
  5195.         app:tabGravity="start"
  5196.         app:tabBackground="@color/pink"
  5197.         app:tabTextColor="@color/white"
  5198.         app:layout_constraintStart_toStartOf="parent"
  5199.         app:layout_constraintTop_toTopOf="parent"
  5200.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5201.         />
  5202.     <androidx.viewpager2.widget.ViewPager2
  5203.         android:id="@+id/myviepage2"
  5204.         android:layout_width="match_parent"
  5205.         android:layout_height="0dp"
  5206.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5207.         app:layout_constraintBottom_toBottomOf="parent"
  5208.         app:layout_constraintStart_toStartOf="parent"
  5209.         />
  5210. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  5211. <?xml version="1.0" encoding="utf-8"?>
  5212. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5213.     xmlns:tools="http://schemas.android.com/tools"
  5214.     android:layout_width="match_parent"
  5215.     android:layout_height="match_parent"
  5216.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5217.     tools:context=".tablayout.TabLayoutHomeFragment">
  5218.     <com.google.android.material.tabs.TabLayout
  5219.         android:id="@+id/mytablayout2"
  5220.         android:layout_width="match_parent"
  5221.         android:layout_height="wrap_content"
  5222.         app:tabMode="auto"
  5223.         app:tabGravity="start"
  5224.         app:tabBackground="@color/pink"
  5225.         app:tabTextColor="@color/white"
  5226.         app:layout_constraintStart_toStartOf="parent"
  5227.         app:layout_constraintTop_toTopOf="parent"
  5228.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5229.         />
  5230.     <androidx.viewpager2.widget.ViewPager2
  5231.         android:id="@+id/myviepage2"
  5232.         android:layout_width="match_parent"
  5233.         android:layout_height="0dp"
  5234.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5235.         app:layout_constraintBottom_toBottomOf="parent"
  5236.         app:layout_constraintStart_toStartOf="parent"
  5237.         />
  5238. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  5239. <?xml version="1.0" encoding="utf-8"?>
  5240. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5241.     xmlns:tools="http://schemas.android.com/tools"
  5242.     android:layout_width="match_parent"
  5243.     android:layout_height="match_parent"
  5244.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5245.     tools:context=".tablayout.TabLayoutHomeFragment">
  5246.     <com.google.android.material.tabs.TabLayout
  5247.         android:id="@+id/mytablayout2"
  5248.         android:layout_width="match_parent"
  5249.         android:layout_height="wrap_content"
  5250.         app:tabMode="auto"
  5251.         app:tabGravity="start"
  5252.         app:tabBackground="@color/pink"
  5253.         app:tabTextColor="@color/white"
  5254.         app:layout_constraintStart_toStartOf="parent"
  5255.         app:layout_constraintTop_toTopOf="parent"
  5256.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5257.         />
  5258.     <androidx.viewpager2.widget.ViewPager2
  5259.         android:id="@+id/myviepage2"
  5260.         android:layout_width="match_parent"
  5261.         android:layout_height="0dp"
  5262.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5263.         app:layout_constraintBottom_toBottomOf="parent"
  5264.         app:layout_constraintStart_toStartOf="parent"
  5265.         />
  5266. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  5267. <?xml version="1.0" encoding="utf-8"?>
  5268. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5269.     xmlns:tools="http://schemas.android.com/tools"
  5270.     android:layout_width="match_parent"
  5271.     android:layout_height="match_parent"
  5272.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5273.     tools:context=".tablayout.TabLayoutHomeFragment">
  5274.     <com.google.android.material.tabs.TabLayout
  5275.         android:id="@+id/mytablayout2"
  5276.         android:layout_width="match_parent"
  5277.         android:layout_height="wrap_content"
  5278.         app:tabMode="auto"
  5279.         app:tabGravity="start"
  5280.         app:tabBackground="@color/pink"
  5281.         app:tabTextColor="@color/white"
  5282.         app:layout_constraintStart_toStartOf="parent"
  5283.         app:layout_constraintTop_toTopOf="parent"
  5284.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5285.         />
  5286.     <androidx.viewpager2.widget.ViewPager2
  5287.         android:id="@+id/myviepage2"
  5288.         android:layout_width="match_parent"
  5289.         android:layout_height="0dp"
  5290.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5291.         app:layout_constraintBottom_toBottomOf="parent"
  5292.         app:layout_constraintStart_toStartOf="parent"
  5293.         />
  5294. </androidx.constraintlayout.widget.ConstraintLayout>/>
  5295. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  5296. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5297.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5298.     xmlns:tools="http://schemas.android.com/tools"
  5299.     android:layout_width="match_parent"
  5300.     android:layout_height="match_parent"
  5301.     tools:context=".ViewPager2TabLayoutActivity">
  5302.    
  5303.     <androidx.fragment.app.FragmentContainerView
  5304. <?xml version="1.0" encoding="utf-8"?>
  5305. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5306.     xmlns:tools="http://schemas.android.com/tools"
  5307.     android:layout_width="match_parent"
  5308.     android:layout_height="match_parent"
  5309.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5310.     tools:context=".tablayout.TabLayoutHomeFragment">
  5311.     <com.google.android.material.tabs.TabLayout
  5312.         android:id="@+id/mytablayout2"
  5313.         android:layout_width="match_parent"
  5314.         android:layout_height="wrap_content"
  5315.         app:tabMode="auto"
  5316.         app:tabGravity="start"
  5317.         app:tabBackground="@color/pink"
  5318.         app:tabTextColor="@color/white"
  5319.         app:layout_constraintStart_toStartOf="parent"
  5320.         app:layout_constraintTop_toTopOf="parent"
  5321.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5322.         />
  5323.     <androidx.viewpager2.widget.ViewPager2
  5324.         android:id="@+id/myviepage2"
  5325.         android:layout_width="match_parent"
  5326.         android:layout_height="0dp"
  5327.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5328.         app:layout_constraintBottom_toBottomOf="parent"
  5329.         app:layout_constraintStart_toStartOf="parent"
  5330.         />
  5331. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  5332. <?xml version="1.0" encoding="utf-8"?>
  5333. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5334.     xmlns:tools="http://schemas.android.com/tools"
  5335.     android:layout_width="match_parent"
  5336.     android:layout_height="match_parent"
  5337.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5338.     tools:context=".tablayout.TabLayoutHomeFragment">
  5339.     <com.google.android.material.tabs.TabLayout
  5340.         android:id="@+id/mytablayout2"
  5341.         android:layout_width="match_parent"
  5342.         android:layout_height="wrap_content"
  5343.         app:tabMode="auto"
  5344.         app:tabGravity="start"
  5345.         app:tabBackground="@color/pink"
  5346.         app:tabTextColor="@color/white"
  5347.         app:layout_constraintStart_toStartOf="parent"
  5348.         app:layout_constraintTop_toTopOf="parent"
  5349.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5350.         />
  5351.     <androidx.viewpager2.widget.ViewPager2
  5352.         android:id="@+id/myviepage2"
  5353.         android:layout_width="match_parent"
  5354.         android:layout_height="0dp"
  5355.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5356.         app:layout_constraintBottom_toBottomOf="parent"
  5357.         app:layout_constraintStart_toStartOf="parent"
  5358.         />
  5359. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  5360. <?xml version="1.0" encoding="utf-8"?>
  5361. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5362.     xmlns:tools="http://schemas.android.com/tools"
  5363.     android:layout_width="match_parent"
  5364.     android:layout_height="match_parent"
  5365.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5366.     tools:context=".tablayout.TabLayoutHomeFragment">
  5367.     <com.google.android.material.tabs.TabLayout
  5368.         android:id="@+id/mytablayout2"
  5369.         android:layout_width="match_parent"
  5370.         android:layout_height="wrap_content"
  5371.         app:tabMode="auto"
  5372.         app:tabGravity="start"
  5373.         app:tabBackground="@color/pink"
  5374.         app:tabTextColor="@color/white"
  5375.         app:layout_constraintStart_toStartOf="parent"
  5376.         app:layout_constraintTop_toTopOf="parent"
  5377.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5378.         />
  5379.     <androidx.viewpager2.widget.ViewPager2
  5380.         android:id="@+id/myviepage2"
  5381.         android:layout_width="match_parent"
  5382.         android:layout_height="0dp"
  5383.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5384.         app:layout_constraintBottom_toBottomOf="parent"
  5385.         app:layout_constraintStart_toStartOf="parent"
  5386.         />
  5387. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  5388. <?xml version="1.0" encoding="utf-8"?>
  5389. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5390.     xmlns:tools="http://schemas.android.com/tools"
  5391.     android:layout_width="match_parent"
  5392.     android:layout_height="match_parent"
  5393.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5394.     tools:context=".tablayout.TabLayoutHomeFragment">
  5395.     <com.google.android.material.tabs.TabLayout
  5396.         android:id="@+id/mytablayout2"
  5397.         android:layout_width="match_parent"
  5398.         android:layout_height="wrap_content"
  5399.         app:tabMode="auto"
  5400.         app:tabGravity="start"
  5401.         app:tabBackground="@color/pink"
  5402.         app:tabTextColor="@color/white"
  5403.         app:layout_constraintStart_toStartOf="parent"
  5404.         app:layout_constraintTop_toTopOf="parent"
  5405.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5406.         />
  5407.     <androidx.viewpager2.widget.ViewPager2
  5408.         android:id="@+id/myviepage2"
  5409.         android:layout_width="match_parent"
  5410.         android:layout_height="0dp"
  5411.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5412.         app:layout_constraintBottom_toBottomOf="parent"
  5413.         app:layout_constraintStart_toStartOf="parent"
  5414.         />
  5415. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  5416. <?xml version="1.0" encoding="utf-8"?>
  5417. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5418.     xmlns:tools="http://schemas.android.com/tools"
  5419.     android:layout_width="match_parent"
  5420.     android:layout_height="match_parent"
  5421.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5422.     tools:context=".tablayout.TabLayoutHomeFragment">
  5423.     <com.google.android.material.tabs.TabLayout
  5424.         android:id="@+id/mytablayout2"
  5425.         android:layout_width="match_parent"
  5426.         android:layout_height="wrap_content"
  5427.         app:tabMode="auto"
  5428.         app:tabGravity="start"
  5429.         app:tabBackground="@color/pink"
  5430.         app:tabTextColor="@color/white"
  5431.         app:layout_constraintStart_toStartOf="parent"
  5432.         app:layout_constraintTop_toTopOf="parent"
  5433.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5434.         />
  5435.     <androidx.viewpager2.widget.ViewPager2
  5436.         android:id="@+id/myviepage2"
  5437.         android:layout_width="match_parent"
  5438.         android:layout_height="0dp"
  5439.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5440.         app:layout_constraintBottom_toBottomOf="parent"
  5441.         app:layout_constraintStart_toStartOf="parent"
  5442.         />
  5443. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  5444.     <com.google.android.material.bottomnavigation.BottomNavigationView
  5445. <?xml version="1.0" encoding="utf-8"?>
  5446. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5447.     xmlns:tools="http://schemas.android.com/tools"
  5448.     android:layout_width="match_parent"
  5449.     android:layout_height="match_parent"
  5450.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5451.     tools:context=".tablayout.TabLayoutHomeFragment">
  5452.     <com.google.android.material.tabs.TabLayout
  5453.         android:id="@+id/mytablayout2"
  5454.         android:layout_width="match_parent"
  5455.         android:layout_height="wrap_content"
  5456.         app:tabMode="auto"
  5457.         app:tabGravity="start"
  5458.         app:tabBackground="@color/pink"
  5459.         app:tabTextColor="@color/white"
  5460.         app:layout_constraintStart_toStartOf="parent"
  5461.         app:layout_constraintTop_toTopOf="parent"
  5462.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5463.         />
  5464.     <androidx.viewpager2.widget.ViewPager2
  5465.         android:id="@+id/myviepage2"
  5466.         android:layout_width="match_parent"
  5467.         android:layout_height="0dp"
  5468.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5469.         app:layout_constraintBottom_toBottomOf="parent"
  5470.         app:layout_constraintStart_toStartOf="parent"
  5471.         />
  5472. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  5473. <?xml version="1.0" encoding="utf-8"?>
  5474. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5475.     xmlns:tools="http://schemas.android.com/tools"
  5476.     android:layout_width="match_parent"
  5477.     android:layout_height="match_parent"
  5478.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5479.     tools:context=".tablayout.TabLayoutHomeFragment">
  5480.     <com.google.android.material.tabs.TabLayout
  5481.         android:id="@+id/mytablayout2"
  5482.         android:layout_width="match_parent"
  5483.         android:layout_height="wrap_content"
  5484.         app:tabMode="auto"
  5485.         app:tabGravity="start"
  5486.         app:tabBackground="@color/pink"
  5487.         app:tabTextColor="@color/white"
  5488.         app:layout_constraintStart_toStartOf="parent"
  5489.         app:layout_constraintTop_toTopOf="parent"
  5490.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5491.         />
  5492.     <androidx.viewpager2.widget.ViewPager2
  5493.         android:id="@+id/myviepage2"
  5494.         android:layout_width="match_parent"
  5495.         android:layout_height="0dp"
  5496.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5497.         app:layout_constraintBottom_toBottomOf="parent"
  5498.         app:layout_constraintStart_toStartOf="parent"
  5499.         />
  5500. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  5501. <?xml version="1.0" encoding="utf-8"?>
  5502. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5503.     xmlns:tools="http://schemas.android.com/tools"
  5504.     android:layout_width="match_parent"
  5505.     android:layout_height="match_parent"
  5506.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5507.     tools:context=".tablayout.TabLayoutHomeFragment">
  5508.     <com.google.android.material.tabs.TabLayout
  5509.         android:id="@+id/mytablayout2"
  5510.         android:layout_width="match_parent"
  5511.         android:layout_height="wrap_content"
  5512.         app:tabMode="auto"
  5513.         app:tabGravity="start"
  5514.         app:tabBackground="@color/pink"
  5515.         app:tabTextColor="@color/white"
  5516.         app:layout_constraintStart_toStartOf="parent"
  5517.         app:layout_constraintTop_toTopOf="parent"
  5518.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5519.         />
  5520.     <androidx.viewpager2.widget.ViewPager2
  5521.         android:id="@+id/myviepage2"
  5522.         android:layout_width="match_parent"
  5523.         android:layout_height="0dp"
  5524.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5525.         app:layout_constraintBottom_toBottomOf="parent"
  5526.         app:layout_constraintStart_toStartOf="parent"
  5527.         />
  5528. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  5529. <?xml version="1.0" encoding="utf-8"?>
  5530. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5531.     xmlns:tools="http://schemas.android.com/tools"
  5532.     android:layout_width="match_parent"
  5533.     android:layout_height="match_parent"
  5534.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5535.     tools:context=".tablayout.TabLayoutHomeFragment">
  5536.     <com.google.android.material.tabs.TabLayout
  5537.         android:id="@+id/mytablayout2"
  5538.         android:layout_width="match_parent"
  5539.         android:layout_height="wrap_content"
  5540.         app:tabMode="auto"
  5541.         app:tabGravity="start"
  5542.         app:tabBackground="@color/pink"
  5543.         app:tabTextColor="@color/white"
  5544.         app:layout_constraintStart_toStartOf="parent"
  5545.         app:layout_constraintTop_toTopOf="parent"
  5546.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5547.         />
  5548.     <androidx.viewpager2.widget.ViewPager2
  5549.         android:id="@+id/myviepage2"
  5550.         android:layout_width="match_parent"
  5551.         android:layout_height="0dp"
  5552.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5553.         app:layout_constraintBottom_toBottomOf="parent"
  5554.         app:layout_constraintStart_toStartOf="parent"
  5555.         />
  5556. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  5557. <?xml version="1.0" encoding="utf-8"?>
  5558. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5559.     xmlns:tools="http://schemas.android.com/tools"
  5560.     android:layout_width="match_parent"
  5561.     android:layout_height="match_parent"
  5562.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5563.     tools:context=".tablayout.TabLayoutHomeFragment">
  5564.     <com.google.android.material.tabs.TabLayout
  5565.         android:id="@+id/mytablayout2"
  5566.         android:layout_width="match_parent"
  5567.         android:layout_height="wrap_content"
  5568.         app:tabMode="auto"
  5569.         app:tabGravity="start"
  5570.         app:tabBackground="@color/pink"
  5571.         app:tabTextColor="@color/white"
  5572.         app:layout_constraintStart_toStartOf="parent"
  5573.         app:layout_constraintTop_toTopOf="parent"
  5574.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5575.         />
  5576.     <androidx.viewpager2.widget.ViewPager2
  5577.         android:id="@+id/myviepage2"
  5578.         android:layout_width="match_parent"
  5579.         android:layout_height="0dp"
  5580.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5581.         app:layout_constraintBottom_toBottomOf="parent"
  5582.         app:layout_constraintStart_toStartOf="parent"
  5583.         />
  5584. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  5585. <?xml version="1.0" encoding="utf-8"?>
  5586. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5587.     xmlns:tools="http://schemas.android.com/tools"
  5588.     android:layout_width="match_parent"
  5589.     android:layout_height="match_parent"
  5590.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5591.     tools:context=".tablayout.TabLayoutHomeFragment">
  5592.     <com.google.android.material.tabs.TabLayout
  5593.         android:id="@+id/mytablayout2"
  5594.         android:layout_width="match_parent"
  5595.         android:layout_height="wrap_content"
  5596.         app:tabMode="auto"
  5597.         app:tabGravity="start"
  5598.         app:tabBackground="@color/pink"
  5599.         app:tabTextColor="@color/white"
  5600.         app:layout_constraintStart_toStartOf="parent"
  5601.         app:layout_constraintTop_toTopOf="parent"
  5602.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5603.         />
  5604.     <androidx.viewpager2.widget.ViewPager2
  5605.         android:id="@+id/myviepage2"
  5606.         android:layout_width="match_parent"
  5607.         android:layout_height="0dp"
  5608.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5609.         app:layout_constraintBottom_toBottomOf="parent"
  5610.         app:layout_constraintStart_toStartOf="parent"
  5611.         />
  5612. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  5613. <?xml version="1.0" encoding="utf-8"?>
  5614. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5615.     xmlns:tools="http://schemas.android.com/tools"
  5616.     android:layout_width="match_parent"
  5617.     android:layout_height="match_parent"
  5618.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5619.     tools:context=".tablayout.TabLayoutHomeFragment">
  5620.     <com.google.android.material.tabs.TabLayout
  5621.         android:id="@+id/mytablayout2"
  5622.         android:layout_width="match_parent"
  5623.         android:layout_height="wrap_content"
  5624.         app:tabMode="auto"
  5625.         app:tabGravity="start"
  5626.         app:tabBackground="@color/pink"
  5627.         app:tabTextColor="@color/white"
  5628.         app:layout_constraintStart_toStartOf="parent"
  5629.         app:layout_constraintTop_toTopOf="parent"
  5630.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5631.         />
  5632.     <androidx.viewpager2.widget.ViewPager2
  5633.         android:id="@+id/myviepage2"
  5634.         android:layout_width="match_parent"
  5635.         android:layout_height="0dp"
  5636.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5637.         app:layout_constraintBottom_toBottomOf="parent"
  5638.         app:layout_constraintStart_toStartOf="parent"
  5639.         />
  5640. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  5641. <?xml version="1.0" encoding="utf-8"?>
  5642. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5643.     xmlns:tools="http://schemas.android.com/tools"
  5644.     android:layout_width="match_parent"
  5645.     android:layout_height="match_parent"
  5646.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5647.     tools:context=".tablayout.TabLayoutHomeFragment">
  5648.     <com.google.android.material.tabs.TabLayout
  5649.         android:id="@+id/mytablayout2"
  5650.         android:layout_width="match_parent"
  5651.         android:layout_height="wrap_content"
  5652.         app:tabMode="auto"
  5653.         app:tabGravity="start"
  5654.         app:tabBackground="@color/pink"
  5655.         app:tabTextColor="@color/white"
  5656.         app:layout_constraintStart_toStartOf="parent"
  5657.         app:layout_constraintTop_toTopOf="parent"
  5658.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5659.         />
  5660.     <androidx.viewpager2.widget.ViewPager2
  5661.         android:id="@+id/myviepage2"
  5662.         android:layout_width="match_parent"
  5663.         android:layout_height="0dp"
  5664.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5665.         app:layout_constraintBottom_toBottomOf="parent"
  5666.         app:layout_constraintStart_toStartOf="parent"
  5667.         />
  5668. </androidx.constraintlayout.widget.ConstraintLayout>/>
  5669. </androidx.constraintlayout.widget.ConstraintLayout>break;<?xml version="1.0" encoding="utf-8"?>
  5670. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5671.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5672.     xmlns:tools="http://schemas.android.com/tools"
  5673.     android:layout_width="match_parent"
  5674.     android:layout_height="match_parent"
  5675.     tools:context=".ViewPager2TabLayoutActivity">
  5676.    
  5677.     <androidx.fragment.app.FragmentContainerView
  5678. <?xml version="1.0" encoding="utf-8"?>
  5679. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5680.     xmlns:tools="http://schemas.android.com/tools"
  5681.     android:layout_width="match_parent"
  5682.     android:layout_height="match_parent"
  5683.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5684.     tools:context=".tablayout.TabLayoutHomeFragment">
  5685.     <com.google.android.material.tabs.TabLayout
  5686.         android:id="@+id/mytablayout2"
  5687.         android:layout_width="match_parent"
  5688.         android:layout_height="wrap_content"
  5689.         app:tabMode="auto"
  5690.         app:tabGravity="start"
  5691.         app:tabBackground="@color/pink"
  5692.         app:tabTextColor="@color/white"
  5693.         app:layout_constraintStart_toStartOf="parent"
  5694.         app:layout_constraintTop_toTopOf="parent"
  5695.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5696.         />
  5697.     <androidx.viewpager2.widget.ViewPager2
  5698.         android:id="@+id/myviepage2"
  5699.         android:layout_width="match_parent"
  5700.         android:layout_height="0dp"
  5701.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5702.         app:layout_constraintBottom_toBottomOf="parent"
  5703.         app:layout_constraintStart_toStartOf="parent"
  5704.         />
  5705. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  5706. <?xml version="1.0" encoding="utf-8"?>
  5707. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5708.     xmlns:tools="http://schemas.android.com/tools"
  5709.     android:layout_width="match_parent"
  5710.     android:layout_height="match_parent"
  5711.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5712.     tools:context=".tablayout.TabLayoutHomeFragment">
  5713.     <com.google.android.material.tabs.TabLayout
  5714.         android:id="@+id/mytablayout2"
  5715.         android:layout_width="match_parent"
  5716.         android:layout_height="wrap_content"
  5717.         app:tabMode="auto"
  5718.         app:tabGravity="start"
  5719.         app:tabBackground="@color/pink"
  5720.         app:tabTextColor="@color/white"
  5721.         app:layout_constraintStart_toStartOf="parent"
  5722.         app:layout_constraintTop_toTopOf="parent"
  5723.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5724.         />
  5725.     <androidx.viewpager2.widget.ViewPager2
  5726.         android:id="@+id/myviepage2"
  5727.         android:layout_width="match_parent"
  5728.         android:layout_height="0dp"
  5729.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5730.         app:layout_constraintBottom_toBottomOf="parent"
  5731.         app:layout_constraintStart_toStartOf="parent"
  5732.         />
  5733. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  5734. <?xml version="1.0" encoding="utf-8"?>
  5735. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5736.     xmlns:tools="http://schemas.android.com/tools"
  5737.     android:layout_width="match_parent"
  5738.     android:layout_height="match_parent"
  5739.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5740.     tools:context=".tablayout.TabLayoutHomeFragment">
  5741.     <com.google.android.material.tabs.TabLayout
  5742.         android:id="@+id/mytablayout2"
  5743.         android:layout_width="match_parent"
  5744.         android:layout_height="wrap_content"
  5745.         app:tabMode="auto"
  5746.         app:tabGravity="start"
  5747.         app:tabBackground="@color/pink"
  5748.         app:tabTextColor="@color/white"
  5749.         app:layout_constraintStart_toStartOf="parent"
  5750.         app:layout_constraintTop_toTopOf="parent"
  5751.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5752.         />
  5753.     <androidx.viewpager2.widget.ViewPager2
  5754.         android:id="@+id/myviepage2"
  5755.         android:layout_width="match_parent"
  5756.         android:layout_height="0dp"
  5757.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5758.         app:layout_constraintBottom_toBottomOf="parent"
  5759.         app:layout_constraintStart_toStartOf="parent"
  5760.         />
  5761. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  5762. <?xml version="1.0" encoding="utf-8"?>
  5763. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5764.     xmlns:tools="http://schemas.android.com/tools"
  5765.     android:layout_width="match_parent"
  5766.     android:layout_height="match_parent"
  5767.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5768.     tools:context=".tablayout.TabLayoutHomeFragment">
  5769.     <com.google.android.material.tabs.TabLayout
  5770.         android:id="@+id/mytablayout2"
  5771.         android:layout_width="match_parent"
  5772.         android:layout_height="wrap_content"
  5773.         app:tabMode="auto"
  5774.         app:tabGravity="start"
  5775.         app:tabBackground="@color/pink"
  5776.         app:tabTextColor="@color/white"
  5777.         app:layout_constraintStart_toStartOf="parent"
  5778.         app:layout_constraintTop_toTopOf="parent"
  5779.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5780.         />
  5781.     <androidx.viewpager2.widget.ViewPager2
  5782.         android:id="@+id/myviepage2"
  5783.         android:layout_width="match_parent"
  5784.         android:layout_height="0dp"
  5785.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5786.         app:layout_constraintBottom_toBottomOf="parent"
  5787.         app:layout_constraintStart_toStartOf="parent"
  5788.         />
  5789. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  5790. <?xml version="1.0" encoding="utf-8"?>
  5791. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5792.     xmlns:tools="http://schemas.android.com/tools"
  5793.     android:layout_width="match_parent"
  5794.     android:layout_height="match_parent"
  5795.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5796.     tools:context=".tablayout.TabLayoutHomeFragment">
  5797.     <com.google.android.material.tabs.TabLayout
  5798.         android:id="@+id/mytablayout2"
  5799.         android:layout_width="match_parent"
  5800.         android:layout_height="wrap_content"
  5801.         app:tabMode="auto"
  5802.         app:tabGravity="start"
  5803.         app:tabBackground="@color/pink"
  5804.         app:tabTextColor="@color/white"
  5805.         app:layout_constraintStart_toStartOf="parent"
  5806.         app:layout_constraintTop_toTopOf="parent"
  5807.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5808.         />
  5809.     <androidx.viewpager2.widget.ViewPager2
  5810.         android:id="@+id/myviepage2"
  5811.         android:layout_width="match_parent"
  5812.         android:layout_height="0dp"
  5813.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5814.         app:layout_constraintBottom_toBottomOf="parent"
  5815.         app:layout_constraintStart_toStartOf="parent"
  5816.         />
  5817. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  5818.     <com.google.android.material.bottomnavigation.BottomNavigationView
  5819. <?xml version="1.0" encoding="utf-8"?>
  5820. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5821.     xmlns:tools="http://schemas.android.com/tools"
  5822.     android:layout_width="match_parent"
  5823.     android:layout_height="match_parent"
  5824.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5825.     tools:context=".tablayout.TabLayoutHomeFragment">
  5826.     <com.google.android.material.tabs.TabLayout
  5827.         android:id="@+id/mytablayout2"
  5828.         android:layout_width="match_parent"
  5829.         android:layout_height="wrap_content"
  5830.         app:tabMode="auto"
  5831.         app:tabGravity="start"
  5832.         app:tabBackground="@color/pink"
  5833.         app:tabTextColor="@color/white"
  5834.         app:layout_constraintStart_toStartOf="parent"
  5835.         app:layout_constraintTop_toTopOf="parent"
  5836.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5837.         />
  5838.     <androidx.viewpager2.widget.ViewPager2
  5839.         android:id="@+id/myviepage2"
  5840.         android:layout_width="match_parent"
  5841.         android:layout_height="0dp"
  5842.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5843.         app:layout_constraintBottom_toBottomOf="parent"
  5844.         app:layout_constraintStart_toStartOf="parent"
  5845.         />
  5846. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  5847. <?xml version="1.0" encoding="utf-8"?>
  5848. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5849.     xmlns:tools="http://schemas.android.com/tools"
  5850.     android:layout_width="match_parent"
  5851.     android:layout_height="match_parent"
  5852.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5853.     tools:context=".tablayout.TabLayoutHomeFragment">
  5854.     <com.google.android.material.tabs.TabLayout
  5855.         android:id="@+id/mytablayout2"
  5856.         android:layout_width="match_parent"
  5857.         android:layout_height="wrap_content"
  5858.         app:tabMode="auto"
  5859.         app:tabGravity="start"
  5860.         app:tabBackground="@color/pink"
  5861.         app:tabTextColor="@color/white"
  5862.         app:layout_constraintStart_toStartOf="parent"
  5863.         app:layout_constraintTop_toTopOf="parent"
  5864.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5865.         />
  5866.     <androidx.viewpager2.widget.ViewPager2
  5867.         android:id="@+id/myviepage2"
  5868.         android:layout_width="match_parent"
  5869.         android:layout_height="0dp"
  5870.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5871.         app:layout_constraintBottom_toBottomOf="parent"
  5872.         app:layout_constraintStart_toStartOf="parent"
  5873.         />
  5874. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  5875. <?xml version="1.0" encoding="utf-8"?>
  5876. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5877.     xmlns:tools="http://schemas.android.com/tools"
  5878.     android:layout_width="match_parent"
  5879.     android:layout_height="match_parent"
  5880.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5881.     tools:context=".tablayout.TabLayoutHomeFragment">
  5882.     <com.google.android.material.tabs.TabLayout
  5883.         android:id="@+id/mytablayout2"
  5884.         android:layout_width="match_parent"
  5885.         android:layout_height="wrap_content"
  5886.         app:tabMode="auto"
  5887.         app:tabGravity="start"
  5888.         app:tabBackground="@color/pink"
  5889.         app:tabTextColor="@color/white"
  5890.         app:layout_constraintStart_toStartOf="parent"
  5891.         app:layout_constraintTop_toTopOf="parent"
  5892.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5893.         />
  5894.     <androidx.viewpager2.widget.ViewPager2
  5895.         android:id="@+id/myviepage2"
  5896.         android:layout_width="match_parent"
  5897.         android:layout_height="0dp"
  5898.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5899.         app:layout_constraintBottom_toBottomOf="parent"
  5900.         app:layout_constraintStart_toStartOf="parent"
  5901.         />
  5902. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  5903. <?xml version="1.0" encoding="utf-8"?>
  5904. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5905.     xmlns:tools="http://schemas.android.com/tools"
  5906.     android:layout_width="match_parent"
  5907.     android:layout_height="match_parent"
  5908.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5909.     tools:context=".tablayout.TabLayoutHomeFragment">
  5910.     <com.google.android.material.tabs.TabLayout
  5911.         android:id="@+id/mytablayout2"
  5912.         android:layout_width="match_parent"
  5913.         android:layout_height="wrap_content"
  5914.         app:tabMode="auto"
  5915.         app:tabGravity="start"
  5916.         app:tabBackground="@color/pink"
  5917.         app:tabTextColor="@color/white"
  5918.         app:layout_constraintStart_toStartOf="parent"
  5919.         app:layout_constraintTop_toTopOf="parent"
  5920.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5921.         />
  5922.     <androidx.viewpager2.widget.ViewPager2
  5923.         android:id="@+id/myviepage2"
  5924.         android:layout_width="match_parent"
  5925.         android:layout_height="0dp"
  5926.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5927.         app:layout_constraintBottom_toBottomOf="parent"
  5928.         app:layout_constraintStart_toStartOf="parent"
  5929.         />
  5930. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  5931. <?xml version="1.0" encoding="utf-8"?>
  5932. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5933.     xmlns:tools="http://schemas.android.com/tools"
  5934.     android:layout_width="match_parent"
  5935.     android:layout_height="match_parent"
  5936.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5937.     tools:context=".tablayout.TabLayoutHomeFragment">
  5938.     <com.google.android.material.tabs.TabLayout
  5939.         android:id="@+id/mytablayout2"
  5940.         android:layout_width="match_parent"
  5941.         android:layout_height="wrap_content"
  5942.         app:tabMode="auto"
  5943.         app:tabGravity="start"
  5944.         app:tabBackground="@color/pink"
  5945.         app:tabTextColor="@color/white"
  5946.         app:layout_constraintStart_toStartOf="parent"
  5947.         app:layout_constraintTop_toTopOf="parent"
  5948.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5949.         />
  5950.     <androidx.viewpager2.widget.ViewPager2
  5951.         android:id="@+id/myviepage2"
  5952.         android:layout_width="match_parent"
  5953.         android:layout_height="0dp"
  5954.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5955.         app:layout_constraintBottom_toBottomOf="parent"
  5956.         app:layout_constraintStart_toStartOf="parent"
  5957.         />
  5958. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  5959. <?xml version="1.0" encoding="utf-8"?>
  5960. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5961.     xmlns:tools="http://schemas.android.com/tools"
  5962.     android:layout_width="match_parent"
  5963.     android:layout_height="match_parent"
  5964.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5965.     tools:context=".tablayout.TabLayoutHomeFragment">
  5966.     <com.google.android.material.tabs.TabLayout
  5967.         android:id="@+id/mytablayout2"
  5968.         android:layout_width="match_parent"
  5969.         android:layout_height="wrap_content"
  5970.         app:tabMode="auto"
  5971.         app:tabGravity="start"
  5972.         app:tabBackground="@color/pink"
  5973.         app:tabTextColor="@color/white"
  5974.         app:layout_constraintStart_toStartOf="parent"
  5975.         app:layout_constraintTop_toTopOf="parent"
  5976.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  5977.         />
  5978.     <androidx.viewpager2.widget.ViewPager2
  5979.         android:id="@+id/myviepage2"
  5980.         android:layout_width="match_parent"
  5981.         android:layout_height="0dp"
  5982.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  5983.         app:layout_constraintBottom_toBottomOf="parent"
  5984.         app:layout_constraintStart_toStartOf="parent"
  5985.         />
  5986. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  5987. <?xml version="1.0" encoding="utf-8"?>
  5988. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5989.     xmlns:tools="http://schemas.android.com/tools"
  5990.     android:layout_width="match_parent"
  5991.     android:layout_height="match_parent"
  5992.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5993.     tools:context=".tablayout.TabLayoutHomeFragment">
  5994.     <com.google.android.material.tabs.TabLayout
  5995.         android:id="@+id/mytablayout2"
  5996.         android:layout_width="match_parent"
  5997.         android:layout_height="wrap_content"
  5998.         app:tabMode="auto"
  5999.         app:tabGravity="start"
  6000.         app:tabBackground="@color/pink"
  6001.         app:tabTextColor="@color/white"
  6002.         app:layout_constraintStart_toStartOf="parent"
  6003.         app:layout_constraintTop_toTopOf="parent"
  6004.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6005.         />
  6006.     <androidx.viewpager2.widget.ViewPager2
  6007.         android:id="@+id/myviepage2"
  6008.         android:layout_width="match_parent"
  6009.         android:layout_height="0dp"
  6010.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6011.         app:layout_constraintBottom_toBottomOf="parent"
  6012.         app:layout_constraintStart_toStartOf="parent"
  6013.         />
  6014. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  6015. <?xml version="1.0" encoding="utf-8"?>
  6016. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6017.     xmlns:tools="http://schemas.android.com/tools"
  6018.     android:layout_width="match_parent"
  6019.     android:layout_height="match_parent"
  6020.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6021.     tools:context=".tablayout.TabLayoutHomeFragment">
  6022.     <com.google.android.material.tabs.TabLayout
  6023.         android:id="@+id/mytablayout2"
  6024.         android:layout_width="match_parent"
  6025.         android:layout_height="wrap_content"
  6026.         app:tabMode="auto"
  6027.         app:tabGravity="start"
  6028.         app:tabBackground="@color/pink"
  6029.         app:tabTextColor="@color/white"
  6030.         app:layout_constraintStart_toStartOf="parent"
  6031.         app:layout_constraintTop_toTopOf="parent"
  6032.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6033.         />
  6034.     <androidx.viewpager2.widget.ViewPager2
  6035.         android:id="@+id/myviepage2"
  6036.         android:layout_width="match_parent"
  6037.         android:layout_height="0dp"
  6038.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6039.         app:layout_constraintBottom_toBottomOf="parent"
  6040.         app:layout_constraintStart_toStartOf="parent"
  6041.         />
  6042. </androidx.constraintlayout.widget.ConstraintLayout>/>
  6043. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  6044. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6045.     xmlns:tools="http://schemas.android.com/tools"
  6046.     android:layout_width="match_parent"
  6047.     android:layout_height="match_parent"
  6048.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6049.     tools:context=".tablayout.TabLayoutHomeFragment">
  6050.     <com.google.android.material.tabs.TabLayout
  6051.         android:id="@+id/mytablayout2"
  6052.         android:layout_width="match_parent"
  6053.         android:layout_height="wrap_content"
  6054.         app:tabMode="auto"
  6055.         app:tabGravity="start"
  6056.         app:tabBackground="@color/pink"
  6057.         app:tabTextColor="@color/white"
  6058.         app:layout_constraintStart_toStartOf="parent"
  6059.         app:layout_constraintTop_toTopOf="parent"
  6060.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6061.         />
  6062.     <androidx.viewpager2.widget.ViewPager2
  6063.         android:id="@+id/myviepage2"
  6064.         android:layout_width="match_parent"
  6065.         android:layout_height="0dp"
  6066.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6067.         app:layout_constraintBottom_toBottomOf="parent"
  6068.         app:layout_constraintStart_toStartOf="parent"
  6069.         />
  6070. </androidx.constraintlayout.widget.ConstraintLayout>case R.id.type_item:<?xml version="1.0" encoding="utf-8"?>
  6071. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6072.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6073.     xmlns:tools="http://schemas.android.com/tools"
  6074.     android:layout_width="match_parent"
  6075.     android:layout_height="match_parent"
  6076.     tools:context=".ViewPager2TabLayoutActivity">
  6077.    
  6078.     <androidx.fragment.app.FragmentContainerView
  6079. <?xml version="1.0" encoding="utf-8"?>
  6080. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6081.     xmlns:tools="http://schemas.android.com/tools"
  6082.     android:layout_width="match_parent"
  6083.     android:layout_height="match_parent"
  6084.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6085.     tools:context=".tablayout.TabLayoutHomeFragment">
  6086.     <com.google.android.material.tabs.TabLayout
  6087.         android:id="@+id/mytablayout2"
  6088.         android:layout_width="match_parent"
  6089.         android:layout_height="wrap_content"
  6090.         app:tabMode="auto"
  6091.         app:tabGravity="start"
  6092.         app:tabBackground="@color/pink"
  6093.         app:tabTextColor="@color/white"
  6094.         app:layout_constraintStart_toStartOf="parent"
  6095.         app:layout_constraintTop_toTopOf="parent"
  6096.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6097.         />
  6098.     <androidx.viewpager2.widget.ViewPager2
  6099.         android:id="@+id/myviepage2"
  6100.         android:layout_width="match_parent"
  6101.         android:layout_height="0dp"
  6102.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6103.         app:layout_constraintBottom_toBottomOf="parent"
  6104.         app:layout_constraintStart_toStartOf="parent"
  6105.         />
  6106. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  6107. <?xml version="1.0" encoding="utf-8"?>
  6108. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6109.     xmlns:tools="http://schemas.android.com/tools"
  6110.     android:layout_width="match_parent"
  6111.     android:layout_height="match_parent"
  6112.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6113.     tools:context=".tablayout.TabLayoutHomeFragment">
  6114.     <com.google.android.material.tabs.TabLayout
  6115.         android:id="@+id/mytablayout2"
  6116.         android:layout_width="match_parent"
  6117.         android:layout_height="wrap_content"
  6118.         app:tabMode="auto"
  6119.         app:tabGravity="start"
  6120.         app:tabBackground="@color/pink"
  6121.         app:tabTextColor="@color/white"
  6122.         app:layout_constraintStart_toStartOf="parent"
  6123.         app:layout_constraintTop_toTopOf="parent"
  6124.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6125.         />
  6126.     <androidx.viewpager2.widget.ViewPager2
  6127.         android:id="@+id/myviepage2"
  6128.         android:layout_width="match_parent"
  6129.         android:layout_height="0dp"
  6130.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6131.         app:layout_constraintBottom_toBottomOf="parent"
  6132.         app:layout_constraintStart_toStartOf="parent"
  6133.         />
  6134. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  6135. <?xml version="1.0" encoding="utf-8"?>
  6136. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6137.     xmlns:tools="http://schemas.android.com/tools"
  6138.     android:layout_width="match_parent"
  6139.     android:layout_height="match_parent"
  6140.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6141.     tools:context=".tablayout.TabLayoutHomeFragment">
  6142.     <com.google.android.material.tabs.TabLayout
  6143.         android:id="@+id/mytablayout2"
  6144.         android:layout_width="match_parent"
  6145.         android:layout_height="wrap_content"
  6146.         app:tabMode="auto"
  6147.         app:tabGravity="start"
  6148.         app:tabBackground="@color/pink"
  6149.         app:tabTextColor="@color/white"
  6150.         app:layout_constraintStart_toStartOf="parent"
  6151.         app:layout_constraintTop_toTopOf="parent"
  6152.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6153.         />
  6154.     <androidx.viewpager2.widget.ViewPager2
  6155.         android:id="@+id/myviepage2"
  6156.         android:layout_width="match_parent"
  6157.         android:layout_height="0dp"
  6158.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6159.         app:layout_constraintBottom_toBottomOf="parent"
  6160.         app:layout_constraintStart_toStartOf="parent"
  6161.         />
  6162. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  6163. <?xml version="1.0" encoding="utf-8"?>
  6164. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6165.     xmlns:tools="http://schemas.android.com/tools"
  6166.     android:layout_width="match_parent"
  6167.     android:layout_height="match_parent"
  6168.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6169.     tools:context=".tablayout.TabLayoutHomeFragment">
  6170.     <com.google.android.material.tabs.TabLayout
  6171.         android:id="@+id/mytablayout2"
  6172.         android:layout_width="match_parent"
  6173.         android:layout_height="wrap_content"
  6174.         app:tabMode="auto"
  6175.         app:tabGravity="start"
  6176.         app:tabBackground="@color/pink"
  6177.         app:tabTextColor="@color/white"
  6178.         app:layout_constraintStart_toStartOf="parent"
  6179.         app:layout_constraintTop_toTopOf="parent"
  6180.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6181.         />
  6182.     <androidx.viewpager2.widget.ViewPager2
  6183.         android:id="@+id/myviepage2"
  6184.         android:layout_width="match_parent"
  6185.         android:layout_height="0dp"
  6186.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6187.         app:layout_constraintBottom_toBottomOf="parent"
  6188.         app:layout_constraintStart_toStartOf="parent"
  6189.         />
  6190. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  6191. <?xml version="1.0" encoding="utf-8"?>
  6192. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6193.     xmlns:tools="http://schemas.android.com/tools"
  6194.     android:layout_width="match_parent"
  6195.     android:layout_height="match_parent"
  6196.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6197.     tools:context=".tablayout.TabLayoutHomeFragment">
  6198.     <com.google.android.material.tabs.TabLayout
  6199.         android:id="@+id/mytablayout2"
  6200.         android:layout_width="match_parent"
  6201.         android:layout_height="wrap_content"
  6202.         app:tabMode="auto"
  6203.         app:tabGravity="start"
  6204.         app:tabBackground="@color/pink"
  6205.         app:tabTextColor="@color/white"
  6206.         app:layout_constraintStart_toStartOf="parent"
  6207.         app:layout_constraintTop_toTopOf="parent"
  6208.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6209.         />
  6210.     <androidx.viewpager2.widget.ViewPager2
  6211.         android:id="@+id/myviepage2"
  6212.         android:layout_width="match_parent"
  6213.         android:layout_height="0dp"
  6214.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6215.         app:layout_constraintBottom_toBottomOf="parent"
  6216.         app:layout_constraintStart_toStartOf="parent"
  6217.         />
  6218. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  6219.     <com.google.android.material.bottomnavigation.BottomNavigationView
  6220. <?xml version="1.0" encoding="utf-8"?>
  6221. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6222.     xmlns:tools="http://schemas.android.com/tools"
  6223.     android:layout_width="match_parent"
  6224.     android:layout_height="match_parent"
  6225.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6226.     tools:context=".tablayout.TabLayoutHomeFragment">
  6227.     <com.google.android.material.tabs.TabLayout
  6228.         android:id="@+id/mytablayout2"
  6229.         android:layout_width="match_parent"
  6230.         android:layout_height="wrap_content"
  6231.         app:tabMode="auto"
  6232.         app:tabGravity="start"
  6233.         app:tabBackground="@color/pink"
  6234.         app:tabTextColor="@color/white"
  6235.         app:layout_constraintStart_toStartOf="parent"
  6236.         app:layout_constraintTop_toTopOf="parent"
  6237.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6238.         />
  6239.     <androidx.viewpager2.widget.ViewPager2
  6240.         android:id="@+id/myviepage2"
  6241.         android:layout_width="match_parent"
  6242.         android:layout_height="0dp"
  6243.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6244.         app:layout_constraintBottom_toBottomOf="parent"
  6245.         app:layout_constraintStart_toStartOf="parent"
  6246.         />
  6247. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  6248. <?xml version="1.0" encoding="utf-8"?>
  6249. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6250.     xmlns:tools="http://schemas.android.com/tools"
  6251.     android:layout_width="match_parent"
  6252.     android:layout_height="match_parent"
  6253.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6254.     tools:context=".tablayout.TabLayoutHomeFragment">
  6255.     <com.google.android.material.tabs.TabLayout
  6256.         android:id="@+id/mytablayout2"
  6257.         android:layout_width="match_parent"
  6258.         android:layout_height="wrap_content"
  6259.         app:tabMode="auto"
  6260.         app:tabGravity="start"
  6261.         app:tabBackground="@color/pink"
  6262.         app:tabTextColor="@color/white"
  6263.         app:layout_constraintStart_toStartOf="parent"
  6264.         app:layout_constraintTop_toTopOf="parent"
  6265.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6266.         />
  6267.     <androidx.viewpager2.widget.ViewPager2
  6268.         android:id="@+id/myviepage2"
  6269.         android:layout_width="match_parent"
  6270.         android:layout_height="0dp"
  6271.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6272.         app:layout_constraintBottom_toBottomOf="parent"
  6273.         app:layout_constraintStart_toStartOf="parent"
  6274.         />
  6275. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  6276. <?xml version="1.0" encoding="utf-8"?>
  6277. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6278.     xmlns:tools="http://schemas.android.com/tools"
  6279.     android:layout_width="match_parent"
  6280.     android:layout_height="match_parent"
  6281.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6282.     tools:context=".tablayout.TabLayoutHomeFragment">
  6283.     <com.google.android.material.tabs.TabLayout
  6284.         android:id="@+id/mytablayout2"
  6285.         android:layout_width="match_parent"
  6286.         android:layout_height="wrap_content"
  6287.         app:tabMode="auto"
  6288.         app:tabGravity="start"
  6289.         app:tabBackground="@color/pink"
  6290.         app:tabTextColor="@color/white"
  6291.         app:layout_constraintStart_toStartOf="parent"
  6292.         app:layout_constraintTop_toTopOf="parent"
  6293.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6294.         />
  6295.     <androidx.viewpager2.widget.ViewPager2
  6296.         android:id="@+id/myviepage2"
  6297.         android:layout_width="match_parent"
  6298.         android:layout_height="0dp"
  6299.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6300.         app:layout_constraintBottom_toBottomOf="parent"
  6301.         app:layout_constraintStart_toStartOf="parent"
  6302.         />
  6303. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  6304. <?xml version="1.0" encoding="utf-8"?>
  6305. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6306.     xmlns:tools="http://schemas.android.com/tools"
  6307.     android:layout_width="match_parent"
  6308.     android:layout_height="match_parent"
  6309.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6310.     tools:context=".tablayout.TabLayoutHomeFragment">
  6311.     <com.google.android.material.tabs.TabLayout
  6312.         android:id="@+id/mytablayout2"
  6313.         android:layout_width="match_parent"
  6314.         android:layout_height="wrap_content"
  6315.         app:tabMode="auto"
  6316.         app:tabGravity="start"
  6317.         app:tabBackground="@color/pink"
  6318.         app:tabTextColor="@color/white"
  6319.         app:layout_constraintStart_toStartOf="parent"
  6320.         app:layout_constraintTop_toTopOf="parent"
  6321.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6322.         />
  6323.     <androidx.viewpager2.widget.ViewPager2
  6324.         android:id="@+id/myviepage2"
  6325.         android:layout_width="match_parent"
  6326.         android:layout_height="0dp"
  6327.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6328.         app:layout_constraintBottom_toBottomOf="parent"
  6329.         app:layout_constraintStart_toStartOf="parent"
  6330.         />
  6331. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  6332. <?xml version="1.0" encoding="utf-8"?>
  6333. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6334.     xmlns:tools="http://schemas.android.com/tools"
  6335.     android:layout_width="match_parent"
  6336.     android:layout_height="match_parent"
  6337.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6338.     tools:context=".tablayout.TabLayoutHomeFragment">
  6339.     <com.google.android.material.tabs.TabLayout
  6340.         android:id="@+id/mytablayout2"
  6341.         android:layout_width="match_parent"
  6342.         android:layout_height="wrap_content"
  6343.         app:tabMode="auto"
  6344.         app:tabGravity="start"
  6345.         app:tabBackground="@color/pink"
  6346.         app:tabTextColor="@color/white"
  6347.         app:layout_constraintStart_toStartOf="parent"
  6348.         app:layout_constraintTop_toTopOf="parent"
  6349.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6350.         />
  6351.     <androidx.viewpager2.widget.ViewPager2
  6352.         android:id="@+id/myviepage2"
  6353.         android:layout_width="match_parent"
  6354.         android:layout_height="0dp"
  6355.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6356.         app:layout_constraintBottom_toBottomOf="parent"
  6357.         app:layout_constraintStart_toStartOf="parent"
  6358.         />
  6359. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  6360. <?xml version="1.0" encoding="utf-8"?>
  6361. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6362.     xmlns:tools="http://schemas.android.com/tools"
  6363.     android:layout_width="match_parent"
  6364.     android:layout_height="match_parent"
  6365.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6366.     tools:context=".tablayout.TabLayoutHomeFragment">
  6367.     <com.google.android.material.tabs.TabLayout
  6368.         android:id="@+id/mytablayout2"
  6369.         android:layout_width="match_parent"
  6370.         android:layout_height="wrap_content"
  6371.         app:tabMode="auto"
  6372.         app:tabGravity="start"
  6373.         app:tabBackground="@color/pink"
  6374.         app:tabTextColor="@color/white"
  6375.         app:layout_constraintStart_toStartOf="parent"
  6376.         app:layout_constraintTop_toTopOf="parent"
  6377.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6378.         />
  6379.     <androidx.viewpager2.widget.ViewPager2
  6380.         android:id="@+id/myviepage2"
  6381.         android:layout_width="match_parent"
  6382.         android:layout_height="0dp"
  6383.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6384.         app:layout_constraintBottom_toBottomOf="parent"
  6385.         app:layout_constraintStart_toStartOf="parent"
  6386.         />
  6387. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  6388. <?xml version="1.0" encoding="utf-8"?>
  6389. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6390.     xmlns:tools="http://schemas.android.com/tools"
  6391.     android:layout_width="match_parent"
  6392.     android:layout_height="match_parent"
  6393.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6394.     tools:context=".tablayout.TabLayoutHomeFragment">
  6395.     <com.google.android.material.tabs.TabLayout
  6396.         android:id="@+id/mytablayout2"
  6397.         android:layout_width="match_parent"
  6398.         android:layout_height="wrap_content"
  6399.         app:tabMode="auto"
  6400.         app:tabGravity="start"
  6401.         app:tabBackground="@color/pink"
  6402.         app:tabTextColor="@color/white"
  6403.         app:layout_constraintStart_toStartOf="parent"
  6404.         app:layout_constraintTop_toTopOf="parent"
  6405.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6406.         />
  6407.     <androidx.viewpager2.widget.ViewPager2
  6408.         android:id="@+id/myviepage2"
  6409.         android:layout_width="match_parent"
  6410.         android:layout_height="0dp"
  6411.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6412.         app:layout_constraintBottom_toBottomOf="parent"
  6413.         app:layout_constraintStart_toStartOf="parent"
  6414.         />
  6415. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  6416. <?xml version="1.0" encoding="utf-8"?>
  6417. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6418.     xmlns:tools="http://schemas.android.com/tools"
  6419.     android:layout_width="match_parent"
  6420.     android:layout_height="match_parent"
  6421.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6422.     tools:context=".tablayout.TabLayoutHomeFragment">
  6423.     <com.google.android.material.tabs.TabLayout
  6424.         android:id="@+id/mytablayout2"
  6425.         android:layout_width="match_parent"
  6426.         android:layout_height="wrap_content"
  6427.         app:tabMode="auto"
  6428.         app:tabGravity="start"
  6429.         app:tabBackground="@color/pink"
  6430.         app:tabTextColor="@color/white"
  6431.         app:layout_constraintStart_toStartOf="parent"
  6432.         app:layout_constraintTop_toTopOf="parent"
  6433.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6434.         />
  6435.     <androidx.viewpager2.widget.ViewPager2
  6436.         android:id="@+id/myviepage2"
  6437.         android:layout_width="match_parent"
  6438.         android:layout_height="0dp"
  6439.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6440.         app:layout_constraintBottom_toBottomOf="parent"
  6441.         app:layout_constraintStart_toStartOf="parent"
  6442.         />
  6443. </androidx.constraintlayout.widget.ConstraintLayout>/>
  6444. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  6445. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6446.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6447.     xmlns:tools="http://schemas.android.com/tools"
  6448.     android:layout_width="match_parent"
  6449.     android:layout_height="match_parent"
  6450.     tools:context=".ViewPager2TabLayoutActivity">
  6451.    
  6452.     <androidx.fragment.app.FragmentContainerView
  6453. <?xml version="1.0" encoding="utf-8"?>
  6454. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6455.     xmlns:tools="http://schemas.android.com/tools"
  6456.     android:layout_width="match_parent"
  6457.     android:layout_height="match_parent"
  6458.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6459.     tools:context=".tablayout.TabLayoutHomeFragment">
  6460.     <com.google.android.material.tabs.TabLayout
  6461.         android:id="@+id/mytablayout2"
  6462.         android:layout_width="match_parent"
  6463.         android:layout_height="wrap_content"
  6464.         app:tabMode="auto"
  6465.         app:tabGravity="start"
  6466.         app:tabBackground="@color/pink"
  6467.         app:tabTextColor="@color/white"
  6468.         app:layout_constraintStart_toStartOf="parent"
  6469.         app:layout_constraintTop_toTopOf="parent"
  6470.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6471.         />
  6472.     <androidx.viewpager2.widget.ViewPager2
  6473.         android:id="@+id/myviepage2"
  6474.         android:layout_width="match_parent"
  6475.         android:layout_height="0dp"
  6476.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6477.         app:layout_constraintBottom_toBottomOf="parent"
  6478.         app:layout_constraintStart_toStartOf="parent"
  6479.         />
  6480. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  6481. <?xml version="1.0" encoding="utf-8"?>
  6482. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6483.     xmlns:tools="http://schemas.android.com/tools"
  6484.     android:layout_width="match_parent"
  6485.     android:layout_height="match_parent"
  6486.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6487.     tools:context=".tablayout.TabLayoutHomeFragment">
  6488.     <com.google.android.material.tabs.TabLayout
  6489.         android:id="@+id/mytablayout2"
  6490.         android:layout_width="match_parent"
  6491.         android:layout_height="wrap_content"
  6492.         app:tabMode="auto"
  6493.         app:tabGravity="start"
  6494.         app:tabBackground="@color/pink"
  6495.         app:tabTextColor="@color/white"
  6496.         app:layout_constraintStart_toStartOf="parent"
  6497.         app:layout_constraintTop_toTopOf="parent"
  6498.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6499.         />
  6500.     <androidx.viewpager2.widget.ViewPager2
  6501.         android:id="@+id/myviepage2"
  6502.         android:layout_width="match_parent"
  6503.         android:layout_height="0dp"
  6504.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6505.         app:layout_constraintBottom_toBottomOf="parent"
  6506.         app:layout_constraintStart_toStartOf="parent"
  6507.         />
  6508. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  6509. <?xml version="1.0" encoding="utf-8"?>
  6510. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6511.     xmlns:tools="http://schemas.android.com/tools"
  6512.     android:layout_width="match_parent"
  6513.     android:layout_height="match_parent"
  6514.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6515.     tools:context=".tablayout.TabLayoutHomeFragment">
  6516.     <com.google.android.material.tabs.TabLayout
  6517.         android:id="@+id/mytablayout2"
  6518.         android:layout_width="match_parent"
  6519.         android:layout_height="wrap_content"
  6520.         app:tabMode="auto"
  6521.         app:tabGravity="start"
  6522.         app:tabBackground="@color/pink"
  6523.         app:tabTextColor="@color/white"
  6524.         app:layout_constraintStart_toStartOf="parent"
  6525.         app:layout_constraintTop_toTopOf="parent"
  6526.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6527.         />
  6528.     <androidx.viewpager2.widget.ViewPager2
  6529.         android:id="@+id/myviepage2"
  6530.         android:layout_width="match_parent"
  6531.         android:layout_height="0dp"
  6532.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6533.         app:layout_constraintBottom_toBottomOf="parent"
  6534.         app:layout_constraintStart_toStartOf="parent"
  6535.         />
  6536. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  6537. <?xml version="1.0" encoding="utf-8"?>
  6538. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6539.     xmlns:tools="http://schemas.android.com/tools"
  6540.     android:layout_width="match_parent"
  6541.     android:layout_height="match_parent"
  6542.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6543.     tools:context=".tablayout.TabLayoutHomeFragment">
  6544.     <com.google.android.material.tabs.TabLayout
  6545.         android:id="@+id/mytablayout2"
  6546.         android:layout_width="match_parent"
  6547.         android:layout_height="wrap_content"
  6548.         app:tabMode="auto"
  6549.         app:tabGravity="start"
  6550.         app:tabBackground="@color/pink"
  6551.         app:tabTextColor="@color/white"
  6552.         app:layout_constraintStart_toStartOf="parent"
  6553.         app:layout_constraintTop_toTopOf="parent"
  6554.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6555.         />
  6556.     <androidx.viewpager2.widget.ViewPager2
  6557.         android:id="@+id/myviepage2"
  6558.         android:layout_width="match_parent"
  6559.         android:layout_height="0dp"
  6560.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6561.         app:layout_constraintBottom_toBottomOf="parent"
  6562.         app:layout_constraintStart_toStartOf="parent"
  6563.         />
  6564. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  6565. <?xml version="1.0" encoding="utf-8"?>
  6566. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6567.     xmlns:tools="http://schemas.android.com/tools"
  6568.     android:layout_width="match_parent"
  6569.     android:layout_height="match_parent"
  6570.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6571.     tools:context=".tablayout.TabLayoutHomeFragment">
  6572.     <com.google.android.material.tabs.TabLayout
  6573.         android:id="@+id/mytablayout2"
  6574.         android:layout_width="match_parent"
  6575.         android:layout_height="wrap_content"
  6576.         app:tabMode="auto"
  6577.         app:tabGravity="start"
  6578.         app:tabBackground="@color/pink"
  6579.         app:tabTextColor="@color/white"
  6580.         app:layout_constraintStart_toStartOf="parent"
  6581.         app:layout_constraintTop_toTopOf="parent"
  6582.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6583.         />
  6584.     <androidx.viewpager2.widget.ViewPager2
  6585.         android:id="@+id/myviepage2"
  6586.         android:layout_width="match_parent"
  6587.         android:layout_height="0dp"
  6588.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6589.         app:layout_constraintBottom_toBottomOf="parent"
  6590.         app:layout_constraintStart_toStartOf="parent"
  6591.         />
  6592. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  6593.     <com.google.android.material.bottomnavigation.BottomNavigationView
  6594. <?xml version="1.0" encoding="utf-8"?>
  6595. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6596.     xmlns:tools="http://schemas.android.com/tools"
  6597.     android:layout_width="match_parent"
  6598.     android:layout_height="match_parent"
  6599.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6600.     tools:context=".tablayout.TabLayoutHomeFragment">
  6601.     <com.google.android.material.tabs.TabLayout
  6602.         android:id="@+id/mytablayout2"
  6603.         android:layout_width="match_parent"
  6604.         android:layout_height="wrap_content"
  6605.         app:tabMode="auto"
  6606.         app:tabGravity="start"
  6607.         app:tabBackground="@color/pink"
  6608.         app:tabTextColor="@color/white"
  6609.         app:layout_constraintStart_toStartOf="parent"
  6610.         app:layout_constraintTop_toTopOf="parent"
  6611.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6612.         />
  6613.     <androidx.viewpager2.widget.ViewPager2
  6614.         android:id="@+id/myviepage2"
  6615.         android:layout_width="match_parent"
  6616.         android:layout_height="0dp"
  6617.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6618.         app:layout_constraintBottom_toBottomOf="parent"
  6619.         app:layout_constraintStart_toStartOf="parent"
  6620.         />
  6621. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  6622. <?xml version="1.0" encoding="utf-8"?>
  6623. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6624.     xmlns:tools="http://schemas.android.com/tools"
  6625.     android:layout_width="match_parent"
  6626.     android:layout_height="match_parent"
  6627.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6628.     tools:context=".tablayout.TabLayoutHomeFragment">
  6629.     <com.google.android.material.tabs.TabLayout
  6630.         android:id="@+id/mytablayout2"
  6631.         android:layout_width="match_parent"
  6632.         android:layout_height="wrap_content"
  6633.         app:tabMode="auto"
  6634.         app:tabGravity="start"
  6635.         app:tabBackground="@color/pink"
  6636.         app:tabTextColor="@color/white"
  6637.         app:layout_constraintStart_toStartOf="parent"
  6638.         app:layout_constraintTop_toTopOf="parent"
  6639.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6640.         />
  6641.     <androidx.viewpager2.widget.ViewPager2
  6642.         android:id="@+id/myviepage2"
  6643.         android:layout_width="match_parent"
  6644.         android:layout_height="0dp"
  6645.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6646.         app:layout_constraintBottom_toBottomOf="parent"
  6647.         app:layout_constraintStart_toStartOf="parent"
  6648.         />
  6649. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  6650. <?xml version="1.0" encoding="utf-8"?>
  6651. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6652.     xmlns:tools="http://schemas.android.com/tools"
  6653.     android:layout_width="match_parent"
  6654.     android:layout_height="match_parent"
  6655.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6656.     tools:context=".tablayout.TabLayoutHomeFragment">
  6657.     <com.google.android.material.tabs.TabLayout
  6658.         android:id="@+id/mytablayout2"
  6659.         android:layout_width="match_parent"
  6660.         android:layout_height="wrap_content"
  6661.         app:tabMode="auto"
  6662.         app:tabGravity="start"
  6663.         app:tabBackground="@color/pink"
  6664.         app:tabTextColor="@color/white"
  6665.         app:layout_constraintStart_toStartOf="parent"
  6666.         app:layout_constraintTop_toTopOf="parent"
  6667.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6668.         />
  6669.     <androidx.viewpager2.widget.ViewPager2
  6670.         android:id="@+id/myviepage2"
  6671.         android:layout_width="match_parent"
  6672.         android:layout_height="0dp"
  6673.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6674.         app:layout_constraintBottom_toBottomOf="parent"
  6675.         app:layout_constraintStart_toStartOf="parent"
  6676.         />
  6677. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  6678. <?xml version="1.0" encoding="utf-8"?>
  6679. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6680.     xmlns:tools="http://schemas.android.com/tools"
  6681.     android:layout_width="match_parent"
  6682.     android:layout_height="match_parent"
  6683.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6684.     tools:context=".tablayout.TabLayoutHomeFragment">
  6685.     <com.google.android.material.tabs.TabLayout
  6686.         android:id="@+id/mytablayout2"
  6687.         android:layout_width="match_parent"
  6688.         android:layout_height="wrap_content"
  6689.         app:tabMode="auto"
  6690.         app:tabGravity="start"
  6691.         app:tabBackground="@color/pink"
  6692.         app:tabTextColor="@color/white"
  6693.         app:layout_constraintStart_toStartOf="parent"
  6694.         app:layout_constraintTop_toTopOf="parent"
  6695.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6696.         />
  6697.     <androidx.viewpager2.widget.ViewPager2
  6698.         android:id="@+id/myviepage2"
  6699.         android:layout_width="match_parent"
  6700.         android:layout_height="0dp"
  6701.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6702.         app:layout_constraintBottom_toBottomOf="parent"
  6703.         app:layout_constraintStart_toStartOf="parent"
  6704.         />
  6705. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  6706. <?xml version="1.0" encoding="utf-8"?>
  6707. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6708.     xmlns:tools="http://schemas.android.com/tools"
  6709.     android:layout_width="match_parent"
  6710.     android:layout_height="match_parent"
  6711.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6712.     tools:context=".tablayout.TabLayoutHomeFragment">
  6713.     <com.google.android.material.tabs.TabLayout
  6714.         android:id="@+id/mytablayout2"
  6715.         android:layout_width="match_parent"
  6716.         android:layout_height="wrap_content"
  6717.         app:tabMode="auto"
  6718.         app:tabGravity="start"
  6719.         app:tabBackground="@color/pink"
  6720.         app:tabTextColor="@color/white"
  6721.         app:layout_constraintStart_toStartOf="parent"
  6722.         app:layout_constraintTop_toTopOf="parent"
  6723.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6724.         />
  6725.     <androidx.viewpager2.widget.ViewPager2
  6726.         android:id="@+id/myviepage2"
  6727.         android:layout_width="match_parent"
  6728.         android:layout_height="0dp"
  6729.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6730.         app:layout_constraintBottom_toBottomOf="parent"
  6731.         app:layout_constraintStart_toStartOf="parent"
  6732.         />
  6733. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  6734. <?xml version="1.0" encoding="utf-8"?>
  6735. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6736.     xmlns:tools="http://schemas.android.com/tools"
  6737.     android:layout_width="match_parent"
  6738.     android:layout_height="match_parent"
  6739.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6740.     tools:context=".tablayout.TabLayoutHomeFragment">
  6741.     <com.google.android.material.tabs.TabLayout
  6742.         android:id="@+id/mytablayout2"
  6743.         android:layout_width="match_parent"
  6744.         android:layout_height="wrap_content"
  6745.         app:tabMode="auto"
  6746.         app:tabGravity="start"
  6747.         app:tabBackground="@color/pink"
  6748.         app:tabTextColor="@color/white"
  6749.         app:layout_constraintStart_toStartOf="parent"
  6750.         app:layout_constraintTop_toTopOf="parent"
  6751.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6752.         />
  6753.     <androidx.viewpager2.widget.ViewPager2
  6754.         android:id="@+id/myviepage2"
  6755.         android:layout_width="match_parent"
  6756.         android:layout_height="0dp"
  6757.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6758.         app:layout_constraintBottom_toBottomOf="parent"
  6759.         app:layout_constraintStart_toStartOf="parent"
  6760.         />
  6761. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  6762. <?xml version="1.0" encoding="utf-8"?>
  6763. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6764.     xmlns:tools="http://schemas.android.com/tools"
  6765.     android:layout_width="match_parent"
  6766.     android:layout_height="match_parent"
  6767.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6768.     tools:context=".tablayout.TabLayoutHomeFragment">
  6769.     <com.google.android.material.tabs.TabLayout
  6770.         android:id="@+id/mytablayout2"
  6771.         android:layout_width="match_parent"
  6772.         android:layout_height="wrap_content"
  6773.         app:tabMode="auto"
  6774.         app:tabGravity="start"
  6775.         app:tabBackground="@color/pink"
  6776.         app:tabTextColor="@color/white"
  6777.         app:layout_constraintStart_toStartOf="parent"
  6778.         app:layout_constraintTop_toTopOf="parent"
  6779.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6780.         />
  6781.     <androidx.viewpager2.widget.ViewPager2
  6782.         android:id="@+id/myviepage2"
  6783.         android:layout_width="match_parent"
  6784.         android:layout_height="0dp"
  6785.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6786.         app:layout_constraintBottom_toBottomOf="parent"
  6787.         app:layout_constraintStart_toStartOf="parent"
  6788.         />
  6789. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  6790. <?xml version="1.0" encoding="utf-8"?>
  6791. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6792.     xmlns:tools="http://schemas.android.com/tools"
  6793.     android:layout_width="match_parent"
  6794.     android:layout_height="match_parent"
  6795.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6796.     tools:context=".tablayout.TabLayoutHomeFragment">
  6797.     <com.google.android.material.tabs.TabLayout
  6798.         android:id="@+id/mytablayout2"
  6799.         android:layout_width="match_parent"
  6800.         android:layout_height="wrap_content"
  6801.         app:tabMode="auto"
  6802.         app:tabGravity="start"
  6803.         app:tabBackground="@color/pink"
  6804.         app:tabTextColor="@color/white"
  6805.         app:layout_constraintStart_toStartOf="parent"
  6806.         app:layout_constraintTop_toTopOf="parent"
  6807.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6808.         />
  6809.     <androidx.viewpager2.widget.ViewPager2
  6810.         android:id="@+id/myviepage2"
  6811.         android:layout_width="match_parent"
  6812.         android:layout_height="0dp"
  6813.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6814.         app:layout_constraintBottom_toBottomOf="parent"
  6815.         app:layout_constraintStart_toStartOf="parent"
  6816.         />
  6817. </androidx.constraintlayout.widget.ConstraintLayout>/>
  6818. </androidx.constraintlayout.widget.ConstraintLayout>getSupportFragmentManager().beginTransaction()<?xml version="1.0" encoding="utf-8"?>
  6819. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6820.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6821.     xmlns:tools="http://schemas.android.com/tools"
  6822.     android:layout_width="match_parent"
  6823.     android:layout_height="match_parent"
  6824.     tools:context=".ViewPager2TabLayoutActivity">
  6825.    
  6826.     <androidx.fragment.app.FragmentContainerView
  6827. <?xml version="1.0" encoding="utf-8"?>
  6828. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6829.     xmlns:tools="http://schemas.android.com/tools"
  6830.     android:layout_width="match_parent"
  6831.     android:layout_height="match_parent"
  6832.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6833.     tools:context=".tablayout.TabLayoutHomeFragment">
  6834.     <com.google.android.material.tabs.TabLayout
  6835.         android:id="@+id/mytablayout2"
  6836.         android:layout_width="match_parent"
  6837.         android:layout_height="wrap_content"
  6838.         app:tabMode="auto"
  6839.         app:tabGravity="start"
  6840.         app:tabBackground="@color/pink"
  6841.         app:tabTextColor="@color/white"
  6842.         app:layout_constraintStart_toStartOf="parent"
  6843.         app:layout_constraintTop_toTopOf="parent"
  6844.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6845.         />
  6846.     <androidx.viewpager2.widget.ViewPager2
  6847.         android:id="@+id/myviepage2"
  6848.         android:layout_width="match_parent"
  6849.         android:layout_height="0dp"
  6850.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6851.         app:layout_constraintBottom_toBottomOf="parent"
  6852.         app:layout_constraintStart_toStartOf="parent"
  6853.         />
  6854. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  6855. <?xml version="1.0" encoding="utf-8"?>
  6856. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6857.     xmlns:tools="http://schemas.android.com/tools"
  6858.     android:layout_width="match_parent"
  6859.     android:layout_height="match_parent"
  6860.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6861.     tools:context=".tablayout.TabLayoutHomeFragment">
  6862.     <com.google.android.material.tabs.TabLayout
  6863.         android:id="@+id/mytablayout2"
  6864.         android:layout_width="match_parent"
  6865.         android:layout_height="wrap_content"
  6866.         app:tabMode="auto"
  6867.         app:tabGravity="start"
  6868.         app:tabBackground="@color/pink"
  6869.         app:tabTextColor="@color/white"
  6870.         app:layout_constraintStart_toStartOf="parent"
  6871.         app:layout_constraintTop_toTopOf="parent"
  6872.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6873.         />
  6874.     <androidx.viewpager2.widget.ViewPager2
  6875.         android:id="@+id/myviepage2"
  6876.         android:layout_width="match_parent"
  6877.         android:layout_height="0dp"
  6878.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6879.         app:layout_constraintBottom_toBottomOf="parent"
  6880.         app:layout_constraintStart_toStartOf="parent"
  6881.         />
  6882. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  6883. <?xml version="1.0" encoding="utf-8"?>
  6884. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6885.     xmlns:tools="http://schemas.android.com/tools"
  6886.     android:layout_width="match_parent"
  6887.     android:layout_height="match_parent"
  6888.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6889.     tools:context=".tablayout.TabLayoutHomeFragment">
  6890.     <com.google.android.material.tabs.TabLayout
  6891.         android:id="@+id/mytablayout2"
  6892.         android:layout_width="match_parent"
  6893.         android:layout_height="wrap_content"
  6894.         app:tabMode="auto"
  6895.         app:tabGravity="start"
  6896.         app:tabBackground="@color/pink"
  6897.         app:tabTextColor="@color/white"
  6898.         app:layout_constraintStart_toStartOf="parent"
  6899.         app:layout_constraintTop_toTopOf="parent"
  6900.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6901.         />
  6902.     <androidx.viewpager2.widget.ViewPager2
  6903.         android:id="@+id/myviepage2"
  6904.         android:layout_width="match_parent"
  6905.         android:layout_height="0dp"
  6906.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6907.         app:layout_constraintBottom_toBottomOf="parent"
  6908.         app:layout_constraintStart_toStartOf="parent"
  6909.         />
  6910. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  6911. <?xml version="1.0" encoding="utf-8"?>
  6912. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6913.     xmlns:tools="http://schemas.android.com/tools"
  6914.     android:layout_width="match_parent"
  6915.     android:layout_height="match_parent"
  6916.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6917.     tools:context=".tablayout.TabLayoutHomeFragment">
  6918.     <com.google.android.material.tabs.TabLayout
  6919.         android:id="@+id/mytablayout2"
  6920.         android:layout_width="match_parent"
  6921.         android:layout_height="wrap_content"
  6922.         app:tabMode="auto"
  6923.         app:tabGravity="start"
  6924.         app:tabBackground="@color/pink"
  6925.         app:tabTextColor="@color/white"
  6926.         app:layout_constraintStart_toStartOf="parent"
  6927.         app:layout_constraintTop_toTopOf="parent"
  6928.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6929.         />
  6930.     <androidx.viewpager2.widget.ViewPager2
  6931.         android:id="@+id/myviepage2"
  6932.         android:layout_width="match_parent"
  6933.         android:layout_height="0dp"
  6934.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6935.         app:layout_constraintBottom_toBottomOf="parent"
  6936.         app:layout_constraintStart_toStartOf="parent"
  6937.         />
  6938. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  6939. <?xml version="1.0" encoding="utf-8"?>
  6940. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6941.     xmlns:tools="http://schemas.android.com/tools"
  6942.     android:layout_width="match_parent"
  6943.     android:layout_height="match_parent"
  6944.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6945.     tools:context=".tablayout.TabLayoutHomeFragment">
  6946.     <com.google.android.material.tabs.TabLayout
  6947.         android:id="@+id/mytablayout2"
  6948.         android:layout_width="match_parent"
  6949.         android:layout_height="wrap_content"
  6950.         app:tabMode="auto"
  6951.         app:tabGravity="start"
  6952.         app:tabBackground="@color/pink"
  6953.         app:tabTextColor="@color/white"
  6954.         app:layout_constraintStart_toStartOf="parent"
  6955.         app:layout_constraintTop_toTopOf="parent"
  6956.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6957.         />
  6958.     <androidx.viewpager2.widget.ViewPager2
  6959.         android:id="@+id/myviepage2"
  6960.         android:layout_width="match_parent"
  6961.         android:layout_height="0dp"
  6962.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6963.         app:layout_constraintBottom_toBottomOf="parent"
  6964.         app:layout_constraintStart_toStartOf="parent"
  6965.         />
  6966. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  6967.     <com.google.android.material.bottomnavigation.BottomNavigationView
  6968. <?xml version="1.0" encoding="utf-8"?>
  6969. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6970.     xmlns:tools="http://schemas.android.com/tools"
  6971.     android:layout_width="match_parent"
  6972.     android:layout_height="match_parent"
  6973.     xmlns:app="http://schemas.android.com/apk/res-auto"
  6974.     tools:context=".tablayout.TabLayoutHomeFragment">
  6975.     <com.google.android.material.tabs.TabLayout
  6976.         android:id="@+id/mytablayout2"
  6977.         android:layout_width="match_parent"
  6978.         android:layout_height="wrap_content"
  6979.         app:tabMode="auto"
  6980.         app:tabGravity="start"
  6981.         app:tabBackground="@color/pink"
  6982.         app:tabTextColor="@color/white"
  6983.         app:layout_constraintStart_toStartOf="parent"
  6984.         app:layout_constraintTop_toTopOf="parent"
  6985.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  6986.         />
  6987.     <androidx.viewpager2.widget.ViewPager2
  6988.         android:id="@+id/myviepage2"
  6989.         android:layout_width="match_parent"
  6990.         android:layout_height="0dp"
  6991.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  6992.         app:layout_constraintBottom_toBottomOf="parent"
  6993.         app:layout_constraintStart_toStartOf="parent"
  6994.         />
  6995. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  6996. <?xml version="1.0" encoding="utf-8"?>
  6997. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6998.     xmlns:tools="http://schemas.android.com/tools"
  6999.     android:layout_width="match_parent"
  7000.     android:layout_height="match_parent"
  7001.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7002.     tools:context=".tablayout.TabLayoutHomeFragment">
  7003.     <com.google.android.material.tabs.TabLayout
  7004.         android:id="@+id/mytablayout2"
  7005.         android:layout_width="match_parent"
  7006.         android:layout_height="wrap_content"
  7007.         app:tabMode="auto"
  7008.         app:tabGravity="start"
  7009.         app:tabBackground="@color/pink"
  7010.         app:tabTextColor="@color/white"
  7011.         app:layout_constraintStart_toStartOf="parent"
  7012.         app:layout_constraintTop_toTopOf="parent"
  7013.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7014.         />
  7015.     <androidx.viewpager2.widget.ViewPager2
  7016.         android:id="@+id/myviepage2"
  7017.         android:layout_width="match_parent"
  7018.         android:layout_height="0dp"
  7019.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7020.         app:layout_constraintBottom_toBottomOf="parent"
  7021.         app:layout_constraintStart_toStartOf="parent"
  7022.         />
  7023. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  7024. <?xml version="1.0" encoding="utf-8"?>
  7025. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7026.     xmlns:tools="http://schemas.android.com/tools"
  7027.     android:layout_width="match_parent"
  7028.     android:layout_height="match_parent"
  7029.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7030.     tools:context=".tablayout.TabLayoutHomeFragment">
  7031.     <com.google.android.material.tabs.TabLayout
  7032.         android:id="@+id/mytablayout2"
  7033.         android:layout_width="match_parent"
  7034.         android:layout_height="wrap_content"
  7035.         app:tabMode="auto"
  7036.         app:tabGravity="start"
  7037.         app:tabBackground="@color/pink"
  7038.         app:tabTextColor="@color/white"
  7039.         app:layout_constraintStart_toStartOf="parent"
  7040.         app:layout_constraintTop_toTopOf="parent"
  7041.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7042.         />
  7043.     <androidx.viewpager2.widget.ViewPager2
  7044.         android:id="@+id/myviepage2"
  7045.         android:layout_width="match_parent"
  7046.         android:layout_height="0dp"
  7047.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7048.         app:layout_constraintBottom_toBottomOf="parent"
  7049.         app:layout_constraintStart_toStartOf="parent"
  7050.         />
  7051. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  7052. <?xml version="1.0" encoding="utf-8"?>
  7053. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7054.     xmlns:tools="http://schemas.android.com/tools"
  7055.     android:layout_width="match_parent"
  7056.     android:layout_height="match_parent"
  7057.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7058.     tools:context=".tablayout.TabLayoutHomeFragment">
  7059.     <com.google.android.material.tabs.TabLayout
  7060.         android:id="@+id/mytablayout2"
  7061.         android:layout_width="match_parent"
  7062.         android:layout_height="wrap_content"
  7063.         app:tabMode="auto"
  7064.         app:tabGravity="start"
  7065.         app:tabBackground="@color/pink"
  7066.         app:tabTextColor="@color/white"
  7067.         app:layout_constraintStart_toStartOf="parent"
  7068.         app:layout_constraintTop_toTopOf="parent"
  7069.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7070.         />
  7071.     <androidx.viewpager2.widget.ViewPager2
  7072.         android:id="@+id/myviepage2"
  7073.         android:layout_width="match_parent"
  7074.         android:layout_height="0dp"
  7075.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7076.         app:layout_constraintBottom_toBottomOf="parent"
  7077.         app:layout_constraintStart_toStartOf="parent"
  7078.         />
  7079. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  7080. <?xml version="1.0" encoding="utf-8"?>
  7081. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7082.     xmlns:tools="http://schemas.android.com/tools"
  7083.     android:layout_width="match_parent"
  7084.     android:layout_height="match_parent"
  7085.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7086.     tools:context=".tablayout.TabLayoutHomeFragment">
  7087.     <com.google.android.material.tabs.TabLayout
  7088.         android:id="@+id/mytablayout2"
  7089.         android:layout_width="match_parent"
  7090.         android:layout_height="wrap_content"
  7091.         app:tabMode="auto"
  7092.         app:tabGravity="start"
  7093.         app:tabBackground="@color/pink"
  7094.         app:tabTextColor="@color/white"
  7095.         app:layout_constraintStart_toStartOf="parent"
  7096.         app:layout_constraintTop_toTopOf="parent"
  7097.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7098.         />
  7099.     <androidx.viewpager2.widget.ViewPager2
  7100.         android:id="@+id/myviepage2"
  7101.         android:layout_width="match_parent"
  7102.         android:layout_height="0dp"
  7103.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7104.         app:layout_constraintBottom_toBottomOf="parent"
  7105.         app:layout_constraintStart_toStartOf="parent"
  7106.         />
  7107. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  7108. <?xml version="1.0" encoding="utf-8"?>
  7109. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7110.     xmlns:tools="http://schemas.android.com/tools"
  7111.     android:layout_width="match_parent"
  7112.     android:layout_height="match_parent"
  7113.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7114.     tools:context=".tablayout.TabLayoutHomeFragment">
  7115.     <com.google.android.material.tabs.TabLayout
  7116.         android:id="@+id/mytablayout2"
  7117.         android:layout_width="match_parent"
  7118.         android:layout_height="wrap_content"
  7119.         app:tabMode="auto"
  7120.         app:tabGravity="start"
  7121.         app:tabBackground="@color/pink"
  7122.         app:tabTextColor="@color/white"
  7123.         app:layout_constraintStart_toStartOf="parent"
  7124.         app:layout_constraintTop_toTopOf="parent"
  7125.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7126.         />
  7127.     <androidx.viewpager2.widget.ViewPager2
  7128.         android:id="@+id/myviepage2"
  7129.         android:layout_width="match_parent"
  7130.         android:layout_height="0dp"
  7131.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7132.         app:layout_constraintBottom_toBottomOf="parent"
  7133.         app:layout_constraintStart_toStartOf="parent"
  7134.         />
  7135. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  7136. <?xml version="1.0" encoding="utf-8"?>
  7137. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7138.     xmlns:tools="http://schemas.android.com/tools"
  7139.     android:layout_width="match_parent"
  7140.     android:layout_height="match_parent"
  7141.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7142.     tools:context=".tablayout.TabLayoutHomeFragment">
  7143.     <com.google.android.material.tabs.TabLayout
  7144.         android:id="@+id/mytablayout2"
  7145.         android:layout_width="match_parent"
  7146.         android:layout_height="wrap_content"
  7147.         app:tabMode="auto"
  7148.         app:tabGravity="start"
  7149.         app:tabBackground="@color/pink"
  7150.         app:tabTextColor="@color/white"
  7151.         app:layout_constraintStart_toStartOf="parent"
  7152.         app:layout_constraintTop_toTopOf="parent"
  7153.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7154.         />
  7155.     <androidx.viewpager2.widget.ViewPager2
  7156.         android:id="@+id/myviepage2"
  7157.         android:layout_width="match_parent"
  7158.         android:layout_height="0dp"
  7159.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7160.         app:layout_constraintBottom_toBottomOf="parent"
  7161.         app:layout_constraintStart_toStartOf="parent"
  7162.         />
  7163. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  7164. <?xml version="1.0" encoding="utf-8"?>
  7165. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7166.     xmlns:tools="http://schemas.android.com/tools"
  7167.     android:layout_width="match_parent"
  7168.     android:layout_height="match_parent"
  7169.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7170.     tools:context=".tablayout.TabLayoutHomeFragment">
  7171.     <com.google.android.material.tabs.TabLayout
  7172.         android:id="@+id/mytablayout2"
  7173.         android:layout_width="match_parent"
  7174.         android:layout_height="wrap_content"
  7175.         app:tabMode="auto"
  7176.         app:tabGravity="start"
  7177.         app:tabBackground="@color/pink"
  7178.         app:tabTextColor="@color/white"
  7179.         app:layout_constraintStart_toStartOf="parent"
  7180.         app:layout_constraintTop_toTopOf="parent"
  7181.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7182.         />
  7183.     <androidx.viewpager2.widget.ViewPager2
  7184.         android:id="@+id/myviepage2"
  7185.         android:layout_width="match_parent"
  7186.         android:layout_height="0dp"
  7187.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7188.         app:layout_constraintBottom_toBottomOf="parent"
  7189.         app:layout_constraintStart_toStartOf="parent"
  7190.         />
  7191. </androidx.constraintlayout.widget.ConstraintLayout>/>
  7192. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  7193. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7194.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7195.     xmlns:tools="http://schemas.android.com/tools"
  7196.     android:layout_width="match_parent"
  7197.     android:layout_height="match_parent"
  7198.     tools:context=".ViewPager2TabLayoutActivity">
  7199.    
  7200.     <androidx.fragment.app.FragmentContainerView
  7201. <?xml version="1.0" encoding="utf-8"?>
  7202. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7203.     xmlns:tools="http://schemas.android.com/tools"
  7204.     android:layout_width="match_parent"
  7205.     android:layout_height="match_parent"
  7206.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7207.     tools:context=".tablayout.TabLayoutHomeFragment">
  7208.     <com.google.android.material.tabs.TabLayout
  7209.         android:id="@+id/mytablayout2"
  7210.         android:layout_width="match_parent"
  7211.         android:layout_height="wrap_content"
  7212.         app:tabMode="auto"
  7213.         app:tabGravity="start"
  7214.         app:tabBackground="@color/pink"
  7215.         app:tabTextColor="@color/white"
  7216.         app:layout_constraintStart_toStartOf="parent"
  7217.         app:layout_constraintTop_toTopOf="parent"
  7218.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7219.         />
  7220.     <androidx.viewpager2.widget.ViewPager2
  7221.         android:id="@+id/myviepage2"
  7222.         android:layout_width="match_parent"
  7223.         android:layout_height="0dp"
  7224.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7225.         app:layout_constraintBottom_toBottomOf="parent"
  7226.         app:layout_constraintStart_toStartOf="parent"
  7227.         />
  7228. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  7229. <?xml version="1.0" encoding="utf-8"?>
  7230. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7231.     xmlns:tools="http://schemas.android.com/tools"
  7232.     android:layout_width="match_parent"
  7233.     android:layout_height="match_parent"
  7234.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7235.     tools:context=".tablayout.TabLayoutHomeFragment">
  7236.     <com.google.android.material.tabs.TabLayout
  7237.         android:id="@+id/mytablayout2"
  7238.         android:layout_width="match_parent"
  7239.         android:layout_height="wrap_content"
  7240.         app:tabMode="auto"
  7241.         app:tabGravity="start"
  7242.         app:tabBackground="@color/pink"
  7243.         app:tabTextColor="@color/white"
  7244.         app:layout_constraintStart_toStartOf="parent"
  7245.         app:layout_constraintTop_toTopOf="parent"
  7246.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7247.         />
  7248.     <androidx.viewpager2.widget.ViewPager2
  7249.         android:id="@+id/myviepage2"
  7250.         android:layout_width="match_parent"
  7251.         android:layout_height="0dp"
  7252.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7253.         app:layout_constraintBottom_toBottomOf="parent"
  7254.         app:layout_constraintStart_toStartOf="parent"
  7255.         />
  7256. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  7257. <?xml version="1.0" encoding="utf-8"?>
  7258. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7259.     xmlns:tools="http://schemas.android.com/tools"
  7260.     android:layout_width="match_parent"
  7261.     android:layout_height="match_parent"
  7262.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7263.     tools:context=".tablayout.TabLayoutHomeFragment">
  7264.     <com.google.android.material.tabs.TabLayout
  7265.         android:id="@+id/mytablayout2"
  7266.         android:layout_width="match_parent"
  7267.         android:layout_height="wrap_content"
  7268.         app:tabMode="auto"
  7269.         app:tabGravity="start"
  7270.         app:tabBackground="@color/pink"
  7271.         app:tabTextColor="@color/white"
  7272.         app:layout_constraintStart_toStartOf="parent"
  7273.         app:layout_constraintTop_toTopOf="parent"
  7274.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7275.         />
  7276.     <androidx.viewpager2.widget.ViewPager2
  7277.         android:id="@+id/myviepage2"
  7278.         android:layout_width="match_parent"
  7279.         android:layout_height="0dp"
  7280.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7281.         app:layout_constraintBottom_toBottomOf="parent"
  7282.         app:layout_constraintStart_toStartOf="parent"
  7283.         />
  7284. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  7285. <?xml version="1.0" encoding="utf-8"?>
  7286. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7287.     xmlns:tools="http://schemas.android.com/tools"
  7288.     android:layout_width="match_parent"
  7289.     android:layout_height="match_parent"
  7290.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7291.     tools:context=".tablayout.TabLayoutHomeFragment">
  7292.     <com.google.android.material.tabs.TabLayout
  7293.         android:id="@+id/mytablayout2"
  7294.         android:layout_width="match_parent"
  7295.         android:layout_height="wrap_content"
  7296.         app:tabMode="auto"
  7297.         app:tabGravity="start"
  7298.         app:tabBackground="@color/pink"
  7299.         app:tabTextColor="@color/white"
  7300.         app:layout_constraintStart_toStartOf="parent"
  7301.         app:layout_constraintTop_toTopOf="parent"
  7302.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7303.         />
  7304.     <androidx.viewpager2.widget.ViewPager2
  7305.         android:id="@+id/myviepage2"
  7306.         android:layout_width="match_parent"
  7307.         android:layout_height="0dp"
  7308.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7309.         app:layout_constraintBottom_toBottomOf="parent"
  7310.         app:layout_constraintStart_toStartOf="parent"
  7311.         />
  7312. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  7313. <?xml version="1.0" encoding="utf-8"?>
  7314. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7315.     xmlns:tools="http://schemas.android.com/tools"
  7316.     android:layout_width="match_parent"
  7317.     android:layout_height="match_parent"
  7318.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7319.     tools:context=".tablayout.TabLayoutHomeFragment">
  7320.     <com.google.android.material.tabs.TabLayout
  7321.         android:id="@+id/mytablayout2"
  7322.         android:layout_width="match_parent"
  7323.         android:layout_height="wrap_content"
  7324.         app:tabMode="auto"
  7325.         app:tabGravity="start"
  7326.         app:tabBackground="@color/pink"
  7327.         app:tabTextColor="@color/white"
  7328.         app:layout_constraintStart_toStartOf="parent"
  7329.         app:layout_constraintTop_toTopOf="parent"
  7330.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7331.         />
  7332.     <androidx.viewpager2.widget.ViewPager2
  7333.         android:id="@+id/myviepage2"
  7334.         android:layout_width="match_parent"
  7335.         android:layout_height="0dp"
  7336.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7337.         app:layout_constraintBottom_toBottomOf="parent"
  7338.         app:layout_constraintStart_toStartOf="parent"
  7339.         />
  7340. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  7341.     <com.google.android.material.bottomnavigation.BottomNavigationView
  7342. <?xml version="1.0" encoding="utf-8"?>
  7343. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7344.     xmlns:tools="http://schemas.android.com/tools"
  7345.     android:layout_width="match_parent"
  7346.     android:layout_height="match_parent"
  7347.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7348.     tools:context=".tablayout.TabLayoutHomeFragment">
  7349.     <com.google.android.material.tabs.TabLayout
  7350.         android:id="@+id/mytablayout2"
  7351.         android:layout_width="match_parent"
  7352.         android:layout_height="wrap_content"
  7353.         app:tabMode="auto"
  7354.         app:tabGravity="start"
  7355.         app:tabBackground="@color/pink"
  7356.         app:tabTextColor="@color/white"
  7357.         app:layout_constraintStart_toStartOf="parent"
  7358.         app:layout_constraintTop_toTopOf="parent"
  7359.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7360.         />
  7361.     <androidx.viewpager2.widget.ViewPager2
  7362.         android:id="@+id/myviepage2"
  7363.         android:layout_width="match_parent"
  7364.         android:layout_height="0dp"
  7365.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7366.         app:layout_constraintBottom_toBottomOf="parent"
  7367.         app:layout_constraintStart_toStartOf="parent"
  7368.         />
  7369. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  7370. <?xml version="1.0" encoding="utf-8"?>
  7371. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7372.     xmlns:tools="http://schemas.android.com/tools"
  7373.     android:layout_width="match_parent"
  7374.     android:layout_height="match_parent"
  7375.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7376.     tools:context=".tablayout.TabLayoutHomeFragment">
  7377.     <com.google.android.material.tabs.TabLayout
  7378.         android:id="@+id/mytablayout2"
  7379.         android:layout_width="match_parent"
  7380.         android:layout_height="wrap_content"
  7381.         app:tabMode="auto"
  7382.         app:tabGravity="start"
  7383.         app:tabBackground="@color/pink"
  7384.         app:tabTextColor="@color/white"
  7385.         app:layout_constraintStart_toStartOf="parent"
  7386.         app:layout_constraintTop_toTopOf="parent"
  7387.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7388.         />
  7389.     <androidx.viewpager2.widget.ViewPager2
  7390.         android:id="@+id/myviepage2"
  7391.         android:layout_width="match_parent"
  7392.         android:layout_height="0dp"
  7393.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7394.         app:layout_constraintBottom_toBottomOf="parent"
  7395.         app:layout_constraintStart_toStartOf="parent"
  7396.         />
  7397. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  7398. <?xml version="1.0" encoding="utf-8"?>
  7399. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7400.     xmlns:tools="http://schemas.android.com/tools"
  7401.     android:layout_width="match_parent"
  7402.     android:layout_height="match_parent"
  7403.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7404.     tools:context=".tablayout.TabLayoutHomeFragment">
  7405.     <com.google.android.material.tabs.TabLayout
  7406.         android:id="@+id/mytablayout2"
  7407.         android:layout_width="match_parent"
  7408.         android:layout_height="wrap_content"
  7409.         app:tabMode="auto"
  7410.         app:tabGravity="start"
  7411.         app:tabBackground="@color/pink"
  7412.         app:tabTextColor="@color/white"
  7413.         app:layout_constraintStart_toStartOf="parent"
  7414.         app:layout_constraintTop_toTopOf="parent"
  7415.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7416.         />
  7417.     <androidx.viewpager2.widget.ViewPager2
  7418.         android:id="@+id/myviepage2"
  7419.         android:layout_width="match_parent"
  7420.         android:layout_height="0dp"
  7421.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7422.         app:layout_constraintBottom_toBottomOf="parent"
  7423.         app:layout_constraintStart_toStartOf="parent"
  7424.         />
  7425. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  7426. <?xml version="1.0" encoding="utf-8"?>
  7427. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7428.     xmlns:tools="http://schemas.android.com/tools"
  7429.     android:layout_width="match_parent"
  7430.     android:layout_height="match_parent"
  7431.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7432.     tools:context=".tablayout.TabLayoutHomeFragment">
  7433.     <com.google.android.material.tabs.TabLayout
  7434.         android:id="@+id/mytablayout2"
  7435.         android:layout_width="match_parent"
  7436.         android:layout_height="wrap_content"
  7437.         app:tabMode="auto"
  7438.         app:tabGravity="start"
  7439.         app:tabBackground="@color/pink"
  7440.         app:tabTextColor="@color/white"
  7441.         app:layout_constraintStart_toStartOf="parent"
  7442.         app:layout_constraintTop_toTopOf="parent"
  7443.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7444.         />
  7445.     <androidx.viewpager2.widget.ViewPager2
  7446.         android:id="@+id/myviepage2"
  7447.         android:layout_width="match_parent"
  7448.         android:layout_height="0dp"
  7449.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7450.         app:layout_constraintBottom_toBottomOf="parent"
  7451.         app:layout_constraintStart_toStartOf="parent"
  7452.         />
  7453. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  7454. <?xml version="1.0" encoding="utf-8"?>
  7455. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7456.     xmlns:tools="http://schemas.android.com/tools"
  7457.     android:layout_width="match_parent"
  7458.     android:layout_height="match_parent"
  7459.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7460.     tools:context=".tablayout.TabLayoutHomeFragment">
  7461.     <com.google.android.material.tabs.TabLayout
  7462.         android:id="@+id/mytablayout2"
  7463.         android:layout_width="match_parent"
  7464.         android:layout_height="wrap_content"
  7465.         app:tabMode="auto"
  7466.         app:tabGravity="start"
  7467.         app:tabBackground="@color/pink"
  7468.         app:tabTextColor="@color/white"
  7469.         app:layout_constraintStart_toStartOf="parent"
  7470.         app:layout_constraintTop_toTopOf="parent"
  7471.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7472.         />
  7473.     <androidx.viewpager2.widget.ViewPager2
  7474.         android:id="@+id/myviepage2"
  7475.         android:layout_width="match_parent"
  7476.         android:layout_height="0dp"
  7477.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7478.         app:layout_constraintBottom_toBottomOf="parent"
  7479.         app:layout_constraintStart_toStartOf="parent"
  7480.         />
  7481. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  7482. <?xml version="1.0" encoding="utf-8"?>
  7483. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7484.     xmlns:tools="http://schemas.android.com/tools"
  7485.     android:layout_width="match_parent"
  7486.     android:layout_height="match_parent"
  7487.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7488.     tools:context=".tablayout.TabLayoutHomeFragment">
  7489.     <com.google.android.material.tabs.TabLayout
  7490.         android:id="@+id/mytablayout2"
  7491.         android:layout_width="match_parent"
  7492.         android:layout_height="wrap_content"
  7493.         app:tabMode="auto"
  7494.         app:tabGravity="start"
  7495.         app:tabBackground="@color/pink"
  7496.         app:tabTextColor="@color/white"
  7497.         app:layout_constraintStart_toStartOf="parent"
  7498.         app:layout_constraintTop_toTopOf="parent"
  7499.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7500.         />
  7501.     <androidx.viewpager2.widget.ViewPager2
  7502.         android:id="@+id/myviepage2"
  7503.         android:layout_width="match_parent"
  7504.         android:layout_height="0dp"
  7505.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7506.         app:layout_constraintBottom_toBottomOf="parent"
  7507.         app:layout_constraintStart_toStartOf="parent"
  7508.         />
  7509. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  7510. <?xml version="1.0" encoding="utf-8"?>
  7511. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7512.     xmlns:tools="http://schemas.android.com/tools"
  7513.     android:layout_width="match_parent"
  7514.     android:layout_height="match_parent"
  7515.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7516.     tools:context=".tablayout.TabLayoutHomeFragment">
  7517.     <com.google.android.material.tabs.TabLayout
  7518.         android:id="@+id/mytablayout2"
  7519.         android:layout_width="match_parent"
  7520.         android:layout_height="wrap_content"
  7521.         app:tabMode="auto"
  7522.         app:tabGravity="start"
  7523.         app:tabBackground="@color/pink"
  7524.         app:tabTextColor="@color/white"
  7525.         app:layout_constraintStart_toStartOf="parent"
  7526.         app:layout_constraintTop_toTopOf="parent"
  7527.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7528.         />
  7529.     <androidx.viewpager2.widget.ViewPager2
  7530.         android:id="@+id/myviepage2"
  7531.         android:layout_width="match_parent"
  7532.         android:layout_height="0dp"
  7533.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7534.         app:layout_constraintBottom_toBottomOf="parent"
  7535.         app:layout_constraintStart_toStartOf="parent"
  7536.         />
  7537. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  7538. <?xml version="1.0" encoding="utf-8"?>
  7539. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7540.     xmlns:tools="http://schemas.android.com/tools"
  7541.     android:layout_width="match_parent"
  7542.     android:layout_height="match_parent"
  7543.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7544.     tools:context=".tablayout.TabLayoutHomeFragment">
  7545.     <com.google.android.material.tabs.TabLayout
  7546.         android:id="@+id/mytablayout2"
  7547.         android:layout_width="match_parent"
  7548.         android:layout_height="wrap_content"
  7549.         app:tabMode="auto"
  7550.         app:tabGravity="start"
  7551.         app:tabBackground="@color/pink"
  7552.         app:tabTextColor="@color/white"
  7553.         app:layout_constraintStart_toStartOf="parent"
  7554.         app:layout_constraintTop_toTopOf="parent"
  7555.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7556.         />
  7557.     <androidx.viewpager2.widget.ViewPager2
  7558.         android:id="@+id/myviepage2"
  7559.         android:layout_width="match_parent"
  7560.         android:layout_height="0dp"
  7561.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7562.         app:layout_constraintBottom_toBottomOf="parent"
  7563.         app:layout_constraintStart_toStartOf="parent"
  7564.         />
  7565. </androidx.constraintlayout.widget.ConstraintLayout>/>
  7566. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  7567. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7568.     xmlns:tools="http://schemas.android.com/tools"
  7569.     android:layout_width="match_parent"
  7570.     android:layout_height="match_parent"
  7571.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7572.     tools:context=".tablayout.TabLayoutHomeFragment">
  7573.     <com.google.android.material.tabs.TabLayout
  7574.         android:id="@+id/mytablayout2"
  7575.         android:layout_width="match_parent"
  7576.         android:layout_height="wrap_content"
  7577.         app:tabMode="auto"
  7578.         app:tabGravity="start"
  7579.         app:tabBackground="@color/pink"
  7580.         app:tabTextColor="@color/white"
  7581.         app:layout_constraintStart_toStartOf="parent"
  7582.         app:layout_constraintTop_toTopOf="parent"
  7583.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7584.         />
  7585.     <androidx.viewpager2.widget.ViewPager2
  7586.         android:id="@+id/myviepage2"
  7587.         android:layout_width="match_parent"
  7588.         android:layout_height="0dp"
  7589.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7590.         app:layout_constraintBottom_toBottomOf="parent"
  7591.         app:layout_constraintStart_toStartOf="parent"
  7592.         />
  7593. </androidx.constraintlayout.widget.ConstraintLayout>.replace(R.id.container_view, fragmentMap.get(R.id.type_item))<?xml version="1.0" encoding="utf-8"?>
  7594. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7595.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7596.     xmlns:tools="http://schemas.android.com/tools"
  7597.     android:layout_width="match_parent"
  7598.     android:layout_height="match_parent"
  7599.     tools:context=".ViewPager2TabLayoutActivity">
  7600.    
  7601.     <androidx.fragment.app.FragmentContainerView
  7602. <?xml version="1.0" encoding="utf-8"?>
  7603. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7604.     xmlns:tools="http://schemas.android.com/tools"
  7605.     android:layout_width="match_parent"
  7606.     android:layout_height="match_parent"
  7607.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7608.     tools:context=".tablayout.TabLayoutHomeFragment">
  7609.     <com.google.android.material.tabs.TabLayout
  7610.         android:id="@+id/mytablayout2"
  7611.         android:layout_width="match_parent"
  7612.         android:layout_height="wrap_content"
  7613.         app:tabMode="auto"
  7614.         app:tabGravity="start"
  7615.         app:tabBackground="@color/pink"
  7616.         app:tabTextColor="@color/white"
  7617.         app:layout_constraintStart_toStartOf="parent"
  7618.         app:layout_constraintTop_toTopOf="parent"
  7619.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7620.         />
  7621.     <androidx.viewpager2.widget.ViewPager2
  7622.         android:id="@+id/myviepage2"
  7623.         android:layout_width="match_parent"
  7624.         android:layout_height="0dp"
  7625.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7626.         app:layout_constraintBottom_toBottomOf="parent"
  7627.         app:layout_constraintStart_toStartOf="parent"
  7628.         />
  7629. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  7630. <?xml version="1.0" encoding="utf-8"?>
  7631. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7632.     xmlns:tools="http://schemas.android.com/tools"
  7633.     android:layout_width="match_parent"
  7634.     android:layout_height="match_parent"
  7635.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7636.     tools:context=".tablayout.TabLayoutHomeFragment">
  7637.     <com.google.android.material.tabs.TabLayout
  7638.         android:id="@+id/mytablayout2"
  7639.         android:layout_width="match_parent"
  7640.         android:layout_height="wrap_content"
  7641.         app:tabMode="auto"
  7642.         app:tabGravity="start"
  7643.         app:tabBackground="@color/pink"
  7644.         app:tabTextColor="@color/white"
  7645.         app:layout_constraintStart_toStartOf="parent"
  7646.         app:layout_constraintTop_toTopOf="parent"
  7647.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7648.         />
  7649.     <androidx.viewpager2.widget.ViewPager2
  7650.         android:id="@+id/myviepage2"
  7651.         android:layout_width="match_parent"
  7652.         android:layout_height="0dp"
  7653.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7654.         app:layout_constraintBottom_toBottomOf="parent"
  7655.         app:layout_constraintStart_toStartOf="parent"
  7656.         />
  7657. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  7658. <?xml version="1.0" encoding="utf-8"?>
  7659. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7660.     xmlns:tools="http://schemas.android.com/tools"
  7661.     android:layout_width="match_parent"
  7662.     android:layout_height="match_parent"
  7663.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7664.     tools:context=".tablayout.TabLayoutHomeFragment">
  7665.     <com.google.android.material.tabs.TabLayout
  7666.         android:id="@+id/mytablayout2"
  7667.         android:layout_width="match_parent"
  7668.         android:layout_height="wrap_content"
  7669.         app:tabMode="auto"
  7670.         app:tabGravity="start"
  7671.         app:tabBackground="@color/pink"
  7672.         app:tabTextColor="@color/white"
  7673.         app:layout_constraintStart_toStartOf="parent"
  7674.         app:layout_constraintTop_toTopOf="parent"
  7675.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7676.         />
  7677.     <androidx.viewpager2.widget.ViewPager2
  7678.         android:id="@+id/myviepage2"
  7679.         android:layout_width="match_parent"
  7680.         android:layout_height="0dp"
  7681.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7682.         app:layout_constraintBottom_toBottomOf="parent"
  7683.         app:layout_constraintStart_toStartOf="parent"
  7684.         />
  7685. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  7686. <?xml version="1.0" encoding="utf-8"?>
  7687. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7688.     xmlns:tools="http://schemas.android.com/tools"
  7689.     android:layout_width="match_parent"
  7690.     android:layout_height="match_parent"
  7691.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7692.     tools:context=".tablayout.TabLayoutHomeFragment">
  7693.     <com.google.android.material.tabs.TabLayout
  7694.         android:id="@+id/mytablayout2"
  7695.         android:layout_width="match_parent"
  7696.         android:layout_height="wrap_content"
  7697.         app:tabMode="auto"
  7698.         app:tabGravity="start"
  7699.         app:tabBackground="@color/pink"
  7700.         app:tabTextColor="@color/white"
  7701.         app:layout_constraintStart_toStartOf="parent"
  7702.         app:layout_constraintTop_toTopOf="parent"
  7703.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7704.         />
  7705.     <androidx.viewpager2.widget.ViewPager2
  7706.         android:id="@+id/myviepage2"
  7707.         android:layout_width="match_parent"
  7708.         android:layout_height="0dp"
  7709.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7710.         app:layout_constraintBottom_toBottomOf="parent"
  7711.         app:layout_constraintStart_toStartOf="parent"
  7712.         />
  7713. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  7714. <?xml version="1.0" encoding="utf-8"?>
  7715. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7716.     xmlns:tools="http://schemas.android.com/tools"
  7717.     android:layout_width="match_parent"
  7718.     android:layout_height="match_parent"
  7719.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7720.     tools:context=".tablayout.TabLayoutHomeFragment">
  7721.     <com.google.android.material.tabs.TabLayout
  7722.         android:id="@+id/mytablayout2"
  7723.         android:layout_width="match_parent"
  7724.         android:layout_height="wrap_content"
  7725.         app:tabMode="auto"
  7726.         app:tabGravity="start"
  7727.         app:tabBackground="@color/pink"
  7728.         app:tabTextColor="@color/white"
  7729.         app:layout_constraintStart_toStartOf="parent"
  7730.         app:layout_constraintTop_toTopOf="parent"
  7731.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7732.         />
  7733.     <androidx.viewpager2.widget.ViewPager2
  7734.         android:id="@+id/myviepage2"
  7735.         android:layout_width="match_parent"
  7736.         android:layout_height="0dp"
  7737.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7738.         app:layout_constraintBottom_toBottomOf="parent"
  7739.         app:layout_constraintStart_toStartOf="parent"
  7740.         />
  7741. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  7742.     <com.google.android.material.bottomnavigation.BottomNavigationView
  7743. <?xml version="1.0" encoding="utf-8"?>
  7744. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7745.     xmlns:tools="http://schemas.android.com/tools"
  7746.     android:layout_width="match_parent"
  7747.     android:layout_height="match_parent"
  7748.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7749.     tools:context=".tablayout.TabLayoutHomeFragment">
  7750.     <com.google.android.material.tabs.TabLayout
  7751.         android:id="@+id/mytablayout2"
  7752.         android:layout_width="match_parent"
  7753.         android:layout_height="wrap_content"
  7754.         app:tabMode="auto"
  7755.         app:tabGravity="start"
  7756.         app:tabBackground="@color/pink"
  7757.         app:tabTextColor="@color/white"
  7758.         app:layout_constraintStart_toStartOf="parent"
  7759.         app:layout_constraintTop_toTopOf="parent"
  7760.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7761.         />
  7762.     <androidx.viewpager2.widget.ViewPager2
  7763.         android:id="@+id/myviepage2"
  7764.         android:layout_width="match_parent"
  7765.         android:layout_height="0dp"
  7766.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7767.         app:layout_constraintBottom_toBottomOf="parent"
  7768.         app:layout_constraintStart_toStartOf="parent"
  7769.         />
  7770. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  7771. <?xml version="1.0" encoding="utf-8"?>
  7772. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7773.     xmlns:tools="http://schemas.android.com/tools"
  7774.     android:layout_width="match_parent"
  7775.     android:layout_height="match_parent"
  7776.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7777.     tools:context=".tablayout.TabLayoutHomeFragment">
  7778.     <com.google.android.material.tabs.TabLayout
  7779.         android:id="@+id/mytablayout2"
  7780.         android:layout_width="match_parent"
  7781.         android:layout_height="wrap_content"
  7782.         app:tabMode="auto"
  7783.         app:tabGravity="start"
  7784.         app:tabBackground="@color/pink"
  7785.         app:tabTextColor="@color/white"
  7786.         app:layout_constraintStart_toStartOf="parent"
  7787.         app:layout_constraintTop_toTopOf="parent"
  7788.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7789.         />
  7790.     <androidx.viewpager2.widget.ViewPager2
  7791.         android:id="@+id/myviepage2"
  7792.         android:layout_width="match_parent"
  7793.         android:layout_height="0dp"
  7794.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7795.         app:layout_constraintBottom_toBottomOf="parent"
  7796.         app:layout_constraintStart_toStartOf="parent"
  7797.         />
  7798. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  7799. <?xml version="1.0" encoding="utf-8"?>
  7800. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7801.     xmlns:tools="http://schemas.android.com/tools"
  7802.     android:layout_width="match_parent"
  7803.     android:layout_height="match_parent"
  7804.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7805.     tools:context=".tablayout.TabLayoutHomeFragment">
  7806.     <com.google.android.material.tabs.TabLayout
  7807.         android:id="@+id/mytablayout2"
  7808.         android:layout_width="match_parent"
  7809.         android:layout_height="wrap_content"
  7810.         app:tabMode="auto"
  7811.         app:tabGravity="start"
  7812.         app:tabBackground="@color/pink"
  7813.         app:tabTextColor="@color/white"
  7814.         app:layout_constraintStart_toStartOf="parent"
  7815.         app:layout_constraintTop_toTopOf="parent"
  7816.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7817.         />
  7818.     <androidx.viewpager2.widget.ViewPager2
  7819.         android:id="@+id/myviepage2"
  7820.         android:layout_width="match_parent"
  7821.         android:layout_height="0dp"
  7822.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7823.         app:layout_constraintBottom_toBottomOf="parent"
  7824.         app:layout_constraintStart_toStartOf="parent"
  7825.         />
  7826. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  7827. <?xml version="1.0" encoding="utf-8"?>
  7828. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7829.     xmlns:tools="http://schemas.android.com/tools"
  7830.     android:layout_width="match_parent"
  7831.     android:layout_height="match_parent"
  7832.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7833.     tools:context=".tablayout.TabLayoutHomeFragment">
  7834.     <com.google.android.material.tabs.TabLayout
  7835.         android:id="@+id/mytablayout2"
  7836.         android:layout_width="match_parent"
  7837.         android:layout_height="wrap_content"
  7838.         app:tabMode="auto"
  7839.         app:tabGravity="start"
  7840.         app:tabBackground="@color/pink"
  7841.         app:tabTextColor="@color/white"
  7842.         app:layout_constraintStart_toStartOf="parent"
  7843.         app:layout_constraintTop_toTopOf="parent"
  7844.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7845.         />
  7846.     <androidx.viewpager2.widget.ViewPager2
  7847.         android:id="@+id/myviepage2"
  7848.         android:layout_width="match_parent"
  7849.         android:layout_height="0dp"
  7850.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7851.         app:layout_constraintBottom_toBottomOf="parent"
  7852.         app:layout_constraintStart_toStartOf="parent"
  7853.         />
  7854. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  7855. <?xml version="1.0" encoding="utf-8"?>
  7856. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7857.     xmlns:tools="http://schemas.android.com/tools"
  7858.     android:layout_width="match_parent"
  7859.     android:layout_height="match_parent"
  7860.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7861.     tools:context=".tablayout.TabLayoutHomeFragment">
  7862.     <com.google.android.material.tabs.TabLayout
  7863.         android:id="@+id/mytablayout2"
  7864.         android:layout_width="match_parent"
  7865.         android:layout_height="wrap_content"
  7866.         app:tabMode="auto"
  7867.         app:tabGravity="start"
  7868.         app:tabBackground="@color/pink"
  7869.         app:tabTextColor="@color/white"
  7870.         app:layout_constraintStart_toStartOf="parent"
  7871.         app:layout_constraintTop_toTopOf="parent"
  7872.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7873.         />
  7874.     <androidx.viewpager2.widget.ViewPager2
  7875.         android:id="@+id/myviepage2"
  7876.         android:layout_width="match_parent"
  7877.         android:layout_height="0dp"
  7878.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7879.         app:layout_constraintBottom_toBottomOf="parent"
  7880.         app:layout_constraintStart_toStartOf="parent"
  7881.         />
  7882. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  7883. <?xml version="1.0" encoding="utf-8"?>
  7884. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7885.     xmlns:tools="http://schemas.android.com/tools"
  7886.     android:layout_width="match_parent"
  7887.     android:layout_height="match_parent"
  7888.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7889.     tools:context=".tablayout.TabLayoutHomeFragment">
  7890.     <com.google.android.material.tabs.TabLayout
  7891.         android:id="@+id/mytablayout2"
  7892.         android:layout_width="match_parent"
  7893.         android:layout_height="wrap_content"
  7894.         app:tabMode="auto"
  7895.         app:tabGravity="start"
  7896.         app:tabBackground="@color/pink"
  7897.         app:tabTextColor="@color/white"
  7898.         app:layout_constraintStart_toStartOf="parent"
  7899.         app:layout_constraintTop_toTopOf="parent"
  7900.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7901.         />
  7902.     <androidx.viewpager2.widget.ViewPager2
  7903.         android:id="@+id/myviepage2"
  7904.         android:layout_width="match_parent"
  7905.         android:layout_height="0dp"
  7906.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7907.         app:layout_constraintBottom_toBottomOf="parent"
  7908.         app:layout_constraintStart_toStartOf="parent"
  7909.         />
  7910. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  7911. <?xml version="1.0" encoding="utf-8"?>
  7912. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7913.     xmlns:tools="http://schemas.android.com/tools"
  7914.     android:layout_width="match_parent"
  7915.     android:layout_height="match_parent"
  7916.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7917.     tools:context=".tablayout.TabLayoutHomeFragment">
  7918.     <com.google.android.material.tabs.TabLayout
  7919.         android:id="@+id/mytablayout2"
  7920.         android:layout_width="match_parent"
  7921.         android:layout_height="wrap_content"
  7922.         app:tabMode="auto"
  7923.         app:tabGravity="start"
  7924.         app:tabBackground="@color/pink"
  7925.         app:tabTextColor="@color/white"
  7926.         app:layout_constraintStart_toStartOf="parent"
  7927.         app:layout_constraintTop_toTopOf="parent"
  7928.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7929.         />
  7930.     <androidx.viewpager2.widget.ViewPager2
  7931.         android:id="@+id/myviepage2"
  7932.         android:layout_width="match_parent"
  7933.         android:layout_height="0dp"
  7934.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7935.         app:layout_constraintBottom_toBottomOf="parent"
  7936.         app:layout_constraintStart_toStartOf="parent"
  7937.         />
  7938. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  7939. <?xml version="1.0" encoding="utf-8"?>
  7940. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7941.     xmlns:tools="http://schemas.android.com/tools"
  7942.     android:layout_width="match_parent"
  7943.     android:layout_height="match_parent"
  7944.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7945.     tools:context=".tablayout.TabLayoutHomeFragment">
  7946.     <com.google.android.material.tabs.TabLayout
  7947.         android:id="@+id/mytablayout2"
  7948.         android:layout_width="match_parent"
  7949.         android:layout_height="wrap_content"
  7950.         app:tabMode="auto"
  7951.         app:tabGravity="start"
  7952.         app:tabBackground="@color/pink"
  7953.         app:tabTextColor="@color/white"
  7954.         app:layout_constraintStart_toStartOf="parent"
  7955.         app:layout_constraintTop_toTopOf="parent"
  7956.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7957.         />
  7958.     <androidx.viewpager2.widget.ViewPager2
  7959.         android:id="@+id/myviepage2"
  7960.         android:layout_width="match_parent"
  7961.         android:layout_height="0dp"
  7962.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  7963.         app:layout_constraintBottom_toBottomOf="parent"
  7964.         app:layout_constraintStart_toStartOf="parent"
  7965.         />
  7966. </androidx.constraintlayout.widget.ConstraintLayout>/>
  7967. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  7968. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7969.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7970.     xmlns:tools="http://schemas.android.com/tools"
  7971.     android:layout_width="match_parent"
  7972.     android:layout_height="match_parent"
  7973.     tools:context=".ViewPager2TabLayoutActivity">
  7974.    
  7975.     <androidx.fragment.app.FragmentContainerView
  7976. <?xml version="1.0" encoding="utf-8"?>
  7977. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7978.     xmlns:tools="http://schemas.android.com/tools"
  7979.     android:layout_width="match_parent"
  7980.     android:layout_height="match_parent"
  7981.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7982.     tools:context=".tablayout.TabLayoutHomeFragment">
  7983.     <com.google.android.material.tabs.TabLayout
  7984.         android:id="@+id/mytablayout2"
  7985.         android:layout_width="match_parent"
  7986.         android:layout_height="wrap_content"
  7987.         app:tabMode="auto"
  7988.         app:tabGravity="start"
  7989.         app:tabBackground="@color/pink"
  7990.         app:tabTextColor="@color/white"
  7991.         app:layout_constraintStart_toStartOf="parent"
  7992.         app:layout_constraintTop_toTopOf="parent"
  7993.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  7994.         />
  7995.     <androidx.viewpager2.widget.ViewPager2
  7996.         android:id="@+id/myviepage2"
  7997.         android:layout_width="match_parent"
  7998.         android:layout_height="0dp"
  7999.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8000.         app:layout_constraintBottom_toBottomOf="parent"
  8001.         app:layout_constraintStart_toStartOf="parent"
  8002.         />
  8003. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  8004. <?xml version="1.0" encoding="utf-8"?>
  8005. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8006.     xmlns:tools="http://schemas.android.com/tools"
  8007.     android:layout_width="match_parent"
  8008.     android:layout_height="match_parent"
  8009.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8010.     tools:context=".tablayout.TabLayoutHomeFragment">
  8011.     <com.google.android.material.tabs.TabLayout
  8012.         android:id="@+id/mytablayout2"
  8013.         android:layout_width="match_parent"
  8014.         android:layout_height="wrap_content"
  8015.         app:tabMode="auto"
  8016.         app:tabGravity="start"
  8017.         app:tabBackground="@color/pink"
  8018.         app:tabTextColor="@color/white"
  8019.         app:layout_constraintStart_toStartOf="parent"
  8020.         app:layout_constraintTop_toTopOf="parent"
  8021.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8022.         />
  8023.     <androidx.viewpager2.widget.ViewPager2
  8024.         android:id="@+id/myviepage2"
  8025.         android:layout_width="match_parent"
  8026.         android:layout_height="0dp"
  8027.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8028.         app:layout_constraintBottom_toBottomOf="parent"
  8029.         app:layout_constraintStart_toStartOf="parent"
  8030.         />
  8031. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  8032. <?xml version="1.0" encoding="utf-8"?>
  8033. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8034.     xmlns:tools="http://schemas.android.com/tools"
  8035.     android:layout_width="match_parent"
  8036.     android:layout_height="match_parent"
  8037.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8038.     tools:context=".tablayout.TabLayoutHomeFragment">
  8039.     <com.google.android.material.tabs.TabLayout
  8040.         android:id="@+id/mytablayout2"
  8041.         android:layout_width="match_parent"
  8042.         android:layout_height="wrap_content"
  8043.         app:tabMode="auto"
  8044.         app:tabGravity="start"
  8045.         app:tabBackground="@color/pink"
  8046.         app:tabTextColor="@color/white"
  8047.         app:layout_constraintStart_toStartOf="parent"
  8048.         app:layout_constraintTop_toTopOf="parent"
  8049.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8050.         />
  8051.     <androidx.viewpager2.widget.ViewPager2
  8052.         android:id="@+id/myviepage2"
  8053.         android:layout_width="match_parent"
  8054.         android:layout_height="0dp"
  8055.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8056.         app:layout_constraintBottom_toBottomOf="parent"
  8057.         app:layout_constraintStart_toStartOf="parent"
  8058.         />
  8059. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  8060. <?xml version="1.0" encoding="utf-8"?>
  8061. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8062.     xmlns:tools="http://schemas.android.com/tools"
  8063.     android:layout_width="match_parent"
  8064.     android:layout_height="match_parent"
  8065.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8066.     tools:context=".tablayout.TabLayoutHomeFragment">
  8067.     <com.google.android.material.tabs.TabLayout
  8068.         android:id="@+id/mytablayout2"
  8069.         android:layout_width="match_parent"
  8070.         android:layout_height="wrap_content"
  8071.         app:tabMode="auto"
  8072.         app:tabGravity="start"
  8073.         app:tabBackground="@color/pink"
  8074.         app:tabTextColor="@color/white"
  8075.         app:layout_constraintStart_toStartOf="parent"
  8076.         app:layout_constraintTop_toTopOf="parent"
  8077.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8078.         />
  8079.     <androidx.viewpager2.widget.ViewPager2
  8080.         android:id="@+id/myviepage2"
  8081.         android:layout_width="match_parent"
  8082.         android:layout_height="0dp"
  8083.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8084.         app:layout_constraintBottom_toBottomOf="parent"
  8085.         app:layout_constraintStart_toStartOf="parent"
  8086.         />
  8087. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  8088. <?xml version="1.0" encoding="utf-8"?>
  8089. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8090.     xmlns:tools="http://schemas.android.com/tools"
  8091.     android:layout_width="match_parent"
  8092.     android:layout_height="match_parent"
  8093.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8094.     tools:context=".tablayout.TabLayoutHomeFragment">
  8095.     <com.google.android.material.tabs.TabLayout
  8096.         android:id="@+id/mytablayout2"
  8097.         android:layout_width="match_parent"
  8098.         android:layout_height="wrap_content"
  8099.         app:tabMode="auto"
  8100.         app:tabGravity="start"
  8101.         app:tabBackground="@color/pink"
  8102.         app:tabTextColor="@color/white"
  8103.         app:layout_constraintStart_toStartOf="parent"
  8104.         app:layout_constraintTop_toTopOf="parent"
  8105.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8106.         />
  8107.     <androidx.viewpager2.widget.ViewPager2
  8108.         android:id="@+id/myviepage2"
  8109.         android:layout_width="match_parent"
  8110.         android:layout_height="0dp"
  8111.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8112.         app:layout_constraintBottom_toBottomOf="parent"
  8113.         app:layout_constraintStart_toStartOf="parent"
  8114.         />
  8115. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  8116.     <com.google.android.material.bottomnavigation.BottomNavigationView
  8117. <?xml version="1.0" encoding="utf-8"?>
  8118. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8119.     xmlns:tools="http://schemas.android.com/tools"
  8120.     android:layout_width="match_parent"
  8121.     android:layout_height="match_parent"
  8122.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8123.     tools:context=".tablayout.TabLayoutHomeFragment">
  8124.     <com.google.android.material.tabs.TabLayout
  8125.         android:id="@+id/mytablayout2"
  8126.         android:layout_width="match_parent"
  8127.         android:layout_height="wrap_content"
  8128.         app:tabMode="auto"
  8129.         app:tabGravity="start"
  8130.         app:tabBackground="@color/pink"
  8131.         app:tabTextColor="@color/white"
  8132.         app:layout_constraintStart_toStartOf="parent"
  8133.         app:layout_constraintTop_toTopOf="parent"
  8134.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8135.         />
  8136.     <androidx.viewpager2.widget.ViewPager2
  8137.         android:id="@+id/myviepage2"
  8138.         android:layout_width="match_parent"
  8139.         android:layout_height="0dp"
  8140.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8141.         app:layout_constraintBottom_toBottomOf="parent"
  8142.         app:layout_constraintStart_toStartOf="parent"
  8143.         />
  8144. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  8145. <?xml version="1.0" encoding="utf-8"?>
  8146. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8147.     xmlns:tools="http://schemas.android.com/tools"
  8148.     android:layout_width="match_parent"
  8149.     android:layout_height="match_parent"
  8150.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8151.     tools:context=".tablayout.TabLayoutHomeFragment">
  8152.     <com.google.android.material.tabs.TabLayout
  8153.         android:id="@+id/mytablayout2"
  8154.         android:layout_width="match_parent"
  8155.         android:layout_height="wrap_content"
  8156.         app:tabMode="auto"
  8157.         app:tabGravity="start"
  8158.         app:tabBackground="@color/pink"
  8159.         app:tabTextColor="@color/white"
  8160.         app:layout_constraintStart_toStartOf="parent"
  8161.         app:layout_constraintTop_toTopOf="parent"
  8162.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8163.         />
  8164.     <androidx.viewpager2.widget.ViewPager2
  8165.         android:id="@+id/myviepage2"
  8166.         android:layout_width="match_parent"
  8167.         android:layout_height="0dp"
  8168.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8169.         app:layout_constraintBottom_toBottomOf="parent"
  8170.         app:layout_constraintStart_toStartOf="parent"
  8171.         />
  8172. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  8173. <?xml version="1.0" encoding="utf-8"?>
  8174. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8175.     xmlns:tools="http://schemas.android.com/tools"
  8176.     android:layout_width="match_parent"
  8177.     android:layout_height="match_parent"
  8178.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8179.     tools:context=".tablayout.TabLayoutHomeFragment">
  8180.     <com.google.android.material.tabs.TabLayout
  8181.         android:id="@+id/mytablayout2"
  8182.         android:layout_width="match_parent"
  8183.         android:layout_height="wrap_content"
  8184.         app:tabMode="auto"
  8185.         app:tabGravity="start"
  8186.         app:tabBackground="@color/pink"
  8187.         app:tabTextColor="@color/white"
  8188.         app:layout_constraintStart_toStartOf="parent"
  8189.         app:layout_constraintTop_toTopOf="parent"
  8190.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8191.         />
  8192.     <androidx.viewpager2.widget.ViewPager2
  8193.         android:id="@+id/myviepage2"
  8194.         android:layout_width="match_parent"
  8195.         android:layout_height="0dp"
  8196.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8197.         app:layout_constraintBottom_toBottomOf="parent"
  8198.         app:layout_constraintStart_toStartOf="parent"
  8199.         />
  8200. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  8201. <?xml version="1.0" encoding="utf-8"?>
  8202. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8203.     xmlns:tools="http://schemas.android.com/tools"
  8204.     android:layout_width="match_parent"
  8205.     android:layout_height="match_parent"
  8206.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8207.     tools:context=".tablayout.TabLayoutHomeFragment">
  8208.     <com.google.android.material.tabs.TabLayout
  8209.         android:id="@+id/mytablayout2"
  8210.         android:layout_width="match_parent"
  8211.         android:layout_height="wrap_content"
  8212.         app:tabMode="auto"
  8213.         app:tabGravity="start"
  8214.         app:tabBackground="@color/pink"
  8215.         app:tabTextColor="@color/white"
  8216.         app:layout_constraintStart_toStartOf="parent"
  8217.         app:layout_constraintTop_toTopOf="parent"
  8218.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8219.         />
  8220.     <androidx.viewpager2.widget.ViewPager2
  8221.         android:id="@+id/myviepage2"
  8222.         android:layout_width="match_parent"
  8223.         android:layout_height="0dp"
  8224.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8225.         app:layout_constraintBottom_toBottomOf="parent"
  8226.         app:layout_constraintStart_toStartOf="parent"
  8227.         />
  8228. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  8229. <?xml version="1.0" encoding="utf-8"?>
  8230. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8231.     xmlns:tools="http://schemas.android.com/tools"
  8232.     android:layout_width="match_parent"
  8233.     android:layout_height="match_parent"
  8234.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8235.     tools:context=".tablayout.TabLayoutHomeFragment">
  8236.     <com.google.android.material.tabs.TabLayout
  8237.         android:id="@+id/mytablayout2"
  8238.         android:layout_width="match_parent"
  8239.         android:layout_height="wrap_content"
  8240.         app:tabMode="auto"
  8241.         app:tabGravity="start"
  8242.         app:tabBackground="@color/pink"
  8243.         app:tabTextColor="@color/white"
  8244.         app:layout_constraintStart_toStartOf="parent"
  8245.         app:layout_constraintTop_toTopOf="parent"
  8246.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8247.         />
  8248.     <androidx.viewpager2.widget.ViewPager2
  8249.         android:id="@+id/myviepage2"
  8250.         android:layout_width="match_parent"
  8251.         android:layout_height="0dp"
  8252.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8253.         app:layout_constraintBottom_toBottomOf="parent"
  8254.         app:layout_constraintStart_toStartOf="parent"
  8255.         />
  8256. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  8257. <?xml version="1.0" encoding="utf-8"?>
  8258. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8259.     xmlns:tools="http://schemas.android.com/tools"
  8260.     android:layout_width="match_parent"
  8261.     android:layout_height="match_parent"
  8262.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8263.     tools:context=".tablayout.TabLayoutHomeFragment">
  8264.     <com.google.android.material.tabs.TabLayout
  8265.         android:id="@+id/mytablayout2"
  8266.         android:layout_width="match_parent"
  8267.         android:layout_height="wrap_content"
  8268.         app:tabMode="auto"
  8269.         app:tabGravity="start"
  8270.         app:tabBackground="@color/pink"
  8271.         app:tabTextColor="@color/white"
  8272.         app:layout_constraintStart_toStartOf="parent"
  8273.         app:layout_constraintTop_toTopOf="parent"
  8274.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8275.         />
  8276.     <androidx.viewpager2.widget.ViewPager2
  8277.         android:id="@+id/myviepage2"
  8278.         android:layout_width="match_parent"
  8279.         android:layout_height="0dp"
  8280.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8281.         app:layout_constraintBottom_toBottomOf="parent"
  8282.         app:layout_constraintStart_toStartOf="parent"
  8283.         />
  8284. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  8285. <?xml version="1.0" encoding="utf-8"?>
  8286. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8287.     xmlns:tools="http://schemas.android.com/tools"
  8288.     android:layout_width="match_parent"
  8289.     android:layout_height="match_parent"
  8290.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8291.     tools:context=".tablayout.TabLayoutHomeFragment">
  8292.     <com.google.android.material.tabs.TabLayout
  8293.         android:id="@+id/mytablayout2"
  8294.         android:layout_width="match_parent"
  8295.         android:layout_height="wrap_content"
  8296.         app:tabMode="auto"
  8297.         app:tabGravity="start"
  8298.         app:tabBackground="@color/pink"
  8299.         app:tabTextColor="@color/white"
  8300.         app:layout_constraintStart_toStartOf="parent"
  8301.         app:layout_constraintTop_toTopOf="parent"
  8302.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8303.         />
  8304.     <androidx.viewpager2.widget.ViewPager2
  8305.         android:id="@+id/myviepage2"
  8306.         android:layout_width="match_parent"
  8307.         android:layout_height="0dp"
  8308.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8309.         app:layout_constraintBottom_toBottomOf="parent"
  8310.         app:layout_constraintStart_toStartOf="parent"
  8311.         />
  8312. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  8313. <?xml version="1.0" encoding="utf-8"?>
  8314. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8315.     xmlns:tools="http://schemas.android.com/tools"
  8316.     android:layout_width="match_parent"
  8317.     android:layout_height="match_parent"
  8318.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8319.     tools:context=".tablayout.TabLayoutHomeFragment">
  8320.     <com.google.android.material.tabs.TabLayout
  8321.         android:id="@+id/mytablayout2"
  8322.         android:layout_width="match_parent"
  8323.         android:layout_height="wrap_content"
  8324.         app:tabMode="auto"
  8325.         app:tabGravity="start"
  8326.         app:tabBackground="@color/pink"
  8327.         app:tabTextColor="@color/white"
  8328.         app:layout_constraintStart_toStartOf="parent"
  8329.         app:layout_constraintTop_toTopOf="parent"
  8330.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8331.         />
  8332.     <androidx.viewpager2.widget.ViewPager2
  8333.         android:id="@+id/myviepage2"
  8334.         android:layout_width="match_parent"
  8335.         android:layout_height="0dp"
  8336.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8337.         app:layout_constraintBottom_toBottomOf="parent"
  8338.         app:layout_constraintStart_toStartOf="parent"
  8339.         />
  8340. </androidx.constraintlayout.widget.ConstraintLayout>/>
  8341. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  8342. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8343.     xmlns:tools="http://schemas.android.com/tools"
  8344.     android:layout_width="match_parent"
  8345.     android:layout_height="match_parent"
  8346.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8347.     tools:context=".tablayout.TabLayoutHomeFragment">
  8348.     <com.google.android.material.tabs.TabLayout
  8349.         android:id="@+id/mytablayout2"
  8350.         android:layout_width="match_parent"
  8351.         android:layout_height="wrap_content"
  8352.         app:tabMode="auto"
  8353.         app:tabGravity="start"
  8354.         app:tabBackground="@color/pink"
  8355.         app:tabTextColor="@color/white"
  8356.         app:layout_constraintStart_toStartOf="parent"
  8357.         app:layout_constraintTop_toTopOf="parent"
  8358.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8359.         />
  8360.     <androidx.viewpager2.widget.ViewPager2
  8361.         android:id="@+id/myviepage2"
  8362.         android:layout_width="match_parent"
  8363.         android:layout_height="0dp"
  8364.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8365.         app:layout_constraintBottom_toBottomOf="parent"
  8366.         app:layout_constraintStart_toStartOf="parent"
  8367.         />
  8368. </androidx.constraintlayout.widget.ConstraintLayout>.commit();<?xml version="1.0" encoding="utf-8"?>
  8369. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8370.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8371.     xmlns:tools="http://schemas.android.com/tools"
  8372.     android:layout_width="match_parent"
  8373.     android:layout_height="match_parent"
  8374.     tools:context=".ViewPager2TabLayoutActivity">
  8375.    
  8376.     <androidx.fragment.app.FragmentContainerView
  8377. <?xml version="1.0" encoding="utf-8"?>
  8378. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8379.     xmlns:tools="http://schemas.android.com/tools"
  8380.     android:layout_width="match_parent"
  8381.     android:layout_height="match_parent"
  8382.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8383.     tools:context=".tablayout.TabLayoutHomeFragment">
  8384.     <com.google.android.material.tabs.TabLayout
  8385.         android:id="@+id/mytablayout2"
  8386.         android:layout_width="match_parent"
  8387.         android:layout_height="wrap_content"
  8388.         app:tabMode="auto"
  8389.         app:tabGravity="start"
  8390.         app:tabBackground="@color/pink"
  8391.         app:tabTextColor="@color/white"
  8392.         app:layout_constraintStart_toStartOf="parent"
  8393.         app:layout_constraintTop_toTopOf="parent"
  8394.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8395.         />
  8396.     <androidx.viewpager2.widget.ViewPager2
  8397.         android:id="@+id/myviepage2"
  8398.         android:layout_width="match_parent"
  8399.         android:layout_height="0dp"
  8400.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8401.         app:layout_constraintBottom_toBottomOf="parent"
  8402.         app:layout_constraintStart_toStartOf="parent"
  8403.         />
  8404. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  8405. <?xml version="1.0" encoding="utf-8"?>
  8406. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8407.     xmlns:tools="http://schemas.android.com/tools"
  8408.     android:layout_width="match_parent"
  8409.     android:layout_height="match_parent"
  8410.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8411.     tools:context=".tablayout.TabLayoutHomeFragment">
  8412.     <com.google.android.material.tabs.TabLayout
  8413.         android:id="@+id/mytablayout2"
  8414.         android:layout_width="match_parent"
  8415.         android:layout_height="wrap_content"
  8416.         app:tabMode="auto"
  8417.         app:tabGravity="start"
  8418.         app:tabBackground="@color/pink"
  8419.         app:tabTextColor="@color/white"
  8420.         app:layout_constraintStart_toStartOf="parent"
  8421.         app:layout_constraintTop_toTopOf="parent"
  8422.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8423.         />
  8424.     <androidx.viewpager2.widget.ViewPager2
  8425.         android:id="@+id/myviepage2"
  8426.         android:layout_width="match_parent"
  8427.         android:layout_height="0dp"
  8428.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8429.         app:layout_constraintBottom_toBottomOf="parent"
  8430.         app:layout_constraintStart_toStartOf="parent"
  8431.         />
  8432. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  8433. <?xml version="1.0" encoding="utf-8"?>
  8434. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8435.     xmlns:tools="http://schemas.android.com/tools"
  8436.     android:layout_width="match_parent"
  8437.     android:layout_height="match_parent"
  8438.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8439.     tools:context=".tablayout.TabLayoutHomeFragment">
  8440.     <com.google.android.material.tabs.TabLayout
  8441.         android:id="@+id/mytablayout2"
  8442.         android:layout_width="match_parent"
  8443.         android:layout_height="wrap_content"
  8444.         app:tabMode="auto"
  8445.         app:tabGravity="start"
  8446.         app:tabBackground="@color/pink"
  8447.         app:tabTextColor="@color/white"
  8448.         app:layout_constraintStart_toStartOf="parent"
  8449.         app:layout_constraintTop_toTopOf="parent"
  8450.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8451.         />
  8452.     <androidx.viewpager2.widget.ViewPager2
  8453.         android:id="@+id/myviepage2"
  8454.         android:layout_width="match_parent"
  8455.         android:layout_height="0dp"
  8456.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8457.         app:layout_constraintBottom_toBottomOf="parent"
  8458.         app:layout_constraintStart_toStartOf="parent"
  8459.         />
  8460. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  8461. <?xml version="1.0" encoding="utf-8"?>
  8462. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8463.     xmlns:tools="http://schemas.android.com/tools"
  8464.     android:layout_width="match_parent"
  8465.     android:layout_height="match_parent"
  8466.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8467.     tools:context=".tablayout.TabLayoutHomeFragment">
  8468.     <com.google.android.material.tabs.TabLayout
  8469.         android:id="@+id/mytablayout2"
  8470.         android:layout_width="match_parent"
  8471.         android:layout_height="wrap_content"
  8472.         app:tabMode="auto"
  8473.         app:tabGravity="start"
  8474.         app:tabBackground="@color/pink"
  8475.         app:tabTextColor="@color/white"
  8476.         app:layout_constraintStart_toStartOf="parent"
  8477.         app:layout_constraintTop_toTopOf="parent"
  8478.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8479.         />
  8480.     <androidx.viewpager2.widget.ViewPager2
  8481.         android:id="@+id/myviepage2"
  8482.         android:layout_width="match_parent"
  8483.         android:layout_height="0dp"
  8484.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8485.         app:layout_constraintBottom_toBottomOf="parent"
  8486.         app:layout_constraintStart_toStartOf="parent"
  8487.         />
  8488. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  8489. <?xml version="1.0" encoding="utf-8"?>
  8490. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8491.     xmlns:tools="http://schemas.android.com/tools"
  8492.     android:layout_width="match_parent"
  8493.     android:layout_height="match_parent"
  8494.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8495.     tools:context=".tablayout.TabLayoutHomeFragment">
  8496.     <com.google.android.material.tabs.TabLayout
  8497.         android:id="@+id/mytablayout2"
  8498.         android:layout_width="match_parent"
  8499.         android:layout_height="wrap_content"
  8500.         app:tabMode="auto"
  8501.         app:tabGravity="start"
  8502.         app:tabBackground="@color/pink"
  8503.         app:tabTextColor="@color/white"
  8504.         app:layout_constraintStart_toStartOf="parent"
  8505.         app:layout_constraintTop_toTopOf="parent"
  8506.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8507.         />
  8508.     <androidx.viewpager2.widget.ViewPager2
  8509.         android:id="@+id/myviepage2"
  8510.         android:layout_width="match_parent"
  8511.         android:layout_height="0dp"
  8512.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8513.         app:layout_constraintBottom_toBottomOf="parent"
  8514.         app:layout_constraintStart_toStartOf="parent"
  8515.         />
  8516. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  8517.     <com.google.android.material.bottomnavigation.BottomNavigationView
  8518. <?xml version="1.0" encoding="utf-8"?>
  8519. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8520.     xmlns:tools="http://schemas.android.com/tools"
  8521.     android:layout_width="match_parent"
  8522.     android:layout_height="match_parent"
  8523.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8524.     tools:context=".tablayout.TabLayoutHomeFragment">
  8525.     <com.google.android.material.tabs.TabLayout
  8526.         android:id="@+id/mytablayout2"
  8527.         android:layout_width="match_parent"
  8528.         android:layout_height="wrap_content"
  8529.         app:tabMode="auto"
  8530.         app:tabGravity="start"
  8531.         app:tabBackground="@color/pink"
  8532.         app:tabTextColor="@color/white"
  8533.         app:layout_constraintStart_toStartOf="parent"
  8534.         app:layout_constraintTop_toTopOf="parent"
  8535.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8536.         />
  8537.     <androidx.viewpager2.widget.ViewPager2
  8538.         android:id="@+id/myviepage2"
  8539.         android:layout_width="match_parent"
  8540.         android:layout_height="0dp"
  8541.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8542.         app:layout_constraintBottom_toBottomOf="parent"
  8543.         app:layout_constraintStart_toStartOf="parent"
  8544.         />
  8545. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  8546. <?xml version="1.0" encoding="utf-8"?>
  8547. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8548.     xmlns:tools="http://schemas.android.com/tools"
  8549.     android:layout_width="match_parent"
  8550.     android:layout_height="match_parent"
  8551.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8552.     tools:context=".tablayout.TabLayoutHomeFragment">
  8553.     <com.google.android.material.tabs.TabLayout
  8554.         android:id="@+id/mytablayout2"
  8555.         android:layout_width="match_parent"
  8556.         android:layout_height="wrap_content"
  8557.         app:tabMode="auto"
  8558.         app:tabGravity="start"
  8559.         app:tabBackground="@color/pink"
  8560.         app:tabTextColor="@color/white"
  8561.         app:layout_constraintStart_toStartOf="parent"
  8562.         app:layout_constraintTop_toTopOf="parent"
  8563.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8564.         />
  8565.     <androidx.viewpager2.widget.ViewPager2
  8566.         android:id="@+id/myviepage2"
  8567.         android:layout_width="match_parent"
  8568.         android:layout_height="0dp"
  8569.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8570.         app:layout_constraintBottom_toBottomOf="parent"
  8571.         app:layout_constraintStart_toStartOf="parent"
  8572.         />
  8573. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  8574. <?xml version="1.0" encoding="utf-8"?>
  8575. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8576.     xmlns:tools="http://schemas.android.com/tools"
  8577.     android:layout_width="match_parent"
  8578.     android:layout_height="match_parent"
  8579.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8580.     tools:context=".tablayout.TabLayoutHomeFragment">
  8581.     <com.google.android.material.tabs.TabLayout
  8582.         android:id="@+id/mytablayout2"
  8583.         android:layout_width="match_parent"
  8584.         android:layout_height="wrap_content"
  8585.         app:tabMode="auto"
  8586.         app:tabGravity="start"
  8587.         app:tabBackground="@color/pink"
  8588.         app:tabTextColor="@color/white"
  8589.         app:layout_constraintStart_toStartOf="parent"
  8590.         app:layout_constraintTop_toTopOf="parent"
  8591.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8592.         />
  8593.     <androidx.viewpager2.widget.ViewPager2
  8594.         android:id="@+id/myviepage2"
  8595.         android:layout_width="match_parent"
  8596.         android:layout_height="0dp"
  8597.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8598.         app:layout_constraintBottom_toBottomOf="parent"
  8599.         app:layout_constraintStart_toStartOf="parent"
  8600.         />
  8601. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  8602. <?xml version="1.0" encoding="utf-8"?>
  8603. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8604.     xmlns:tools="http://schemas.android.com/tools"
  8605.     android:layout_width="match_parent"
  8606.     android:layout_height="match_parent"
  8607.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8608.     tools:context=".tablayout.TabLayoutHomeFragment">
  8609.     <com.google.android.material.tabs.TabLayout
  8610.         android:id="@+id/mytablayout2"
  8611.         android:layout_width="match_parent"
  8612.         android:layout_height="wrap_content"
  8613.         app:tabMode="auto"
  8614.         app:tabGravity="start"
  8615.         app:tabBackground="@color/pink"
  8616.         app:tabTextColor="@color/white"
  8617.         app:layout_constraintStart_toStartOf="parent"
  8618.         app:layout_constraintTop_toTopOf="parent"
  8619.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8620.         />
  8621.     <androidx.viewpager2.widget.ViewPager2
  8622.         android:id="@+id/myviepage2"
  8623.         android:layout_width="match_parent"
  8624.         android:layout_height="0dp"
  8625.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8626.         app:layout_constraintBottom_toBottomOf="parent"
  8627.         app:layout_constraintStart_toStartOf="parent"
  8628.         />
  8629. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  8630. <?xml version="1.0" encoding="utf-8"?>
  8631. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8632.     xmlns:tools="http://schemas.android.com/tools"
  8633.     android:layout_width="match_parent"
  8634.     android:layout_height="match_parent"
  8635.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8636.     tools:context=".tablayout.TabLayoutHomeFragment">
  8637.     <com.google.android.material.tabs.TabLayout
  8638.         android:id="@+id/mytablayout2"
  8639.         android:layout_width="match_parent"
  8640.         android:layout_height="wrap_content"
  8641.         app:tabMode="auto"
  8642.         app:tabGravity="start"
  8643.         app:tabBackground="@color/pink"
  8644.         app:tabTextColor="@color/white"
  8645.         app:layout_constraintStart_toStartOf="parent"
  8646.         app:layout_constraintTop_toTopOf="parent"
  8647.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8648.         />
  8649.     <androidx.viewpager2.widget.ViewPager2
  8650.         android:id="@+id/myviepage2"
  8651.         android:layout_width="match_parent"
  8652.         android:layout_height="0dp"
  8653.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8654.         app:layout_constraintBottom_toBottomOf="parent"
  8655.         app:layout_constraintStart_toStartOf="parent"
  8656.         />
  8657. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  8658. <?xml version="1.0" encoding="utf-8"?>
  8659. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8660.     xmlns:tools="http://schemas.android.com/tools"
  8661.     android:layout_width="match_parent"
  8662.     android:layout_height="match_parent"
  8663.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8664.     tools:context=".tablayout.TabLayoutHomeFragment">
  8665.     <com.google.android.material.tabs.TabLayout
  8666.         android:id="@+id/mytablayout2"
  8667.         android:layout_width="match_parent"
  8668.         android:layout_height="wrap_content"
  8669.         app:tabMode="auto"
  8670.         app:tabGravity="start"
  8671.         app:tabBackground="@color/pink"
  8672.         app:tabTextColor="@color/white"
  8673.         app:layout_constraintStart_toStartOf="parent"
  8674.         app:layout_constraintTop_toTopOf="parent"
  8675.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8676.         />
  8677.     <androidx.viewpager2.widget.ViewPager2
  8678.         android:id="@+id/myviepage2"
  8679.         android:layout_width="match_parent"
  8680.         android:layout_height="0dp"
  8681.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8682.         app:layout_constraintBottom_toBottomOf="parent"
  8683.         app:layout_constraintStart_toStartOf="parent"
  8684.         />
  8685. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  8686. <?xml version="1.0" encoding="utf-8"?>
  8687. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8688.     xmlns:tools="http://schemas.android.com/tools"
  8689.     android:layout_width="match_parent"
  8690.     android:layout_height="match_parent"
  8691.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8692.     tools:context=".tablayout.TabLayoutHomeFragment">
  8693.     <com.google.android.material.tabs.TabLayout
  8694.         android:id="@+id/mytablayout2"
  8695.         android:layout_width="match_parent"
  8696.         android:layout_height="wrap_content"
  8697.         app:tabMode="auto"
  8698.         app:tabGravity="start"
  8699.         app:tabBackground="@color/pink"
  8700.         app:tabTextColor="@color/white"
  8701.         app:layout_constraintStart_toStartOf="parent"
  8702.         app:layout_constraintTop_toTopOf="parent"
  8703.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8704.         />
  8705.     <androidx.viewpager2.widget.ViewPager2
  8706.         android:id="@+id/myviepage2"
  8707.         android:layout_width="match_parent"
  8708.         android:layout_height="0dp"
  8709.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8710.         app:layout_constraintBottom_toBottomOf="parent"
  8711.         app:layout_constraintStart_toStartOf="parent"
  8712.         />
  8713. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  8714. <?xml version="1.0" encoding="utf-8"?>
  8715. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8716.     xmlns:tools="http://schemas.android.com/tools"
  8717.     android:layout_width="match_parent"
  8718.     android:layout_height="match_parent"
  8719.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8720.     tools:context=".tablayout.TabLayoutHomeFragment">
  8721.     <com.google.android.material.tabs.TabLayout
  8722.         android:id="@+id/mytablayout2"
  8723.         android:layout_width="match_parent"
  8724.         android:layout_height="wrap_content"
  8725.         app:tabMode="auto"
  8726.         app:tabGravity="start"
  8727.         app:tabBackground="@color/pink"
  8728.         app:tabTextColor="@color/white"
  8729.         app:layout_constraintStart_toStartOf="parent"
  8730.         app:layout_constraintTop_toTopOf="parent"
  8731.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8732.         />
  8733.     <androidx.viewpager2.widget.ViewPager2
  8734.         android:id="@+id/myviepage2"
  8735.         android:layout_width="match_parent"
  8736.         android:layout_height="0dp"
  8737.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8738.         app:layout_constraintBottom_toBottomOf="parent"
  8739.         app:layout_constraintStart_toStartOf="parent"
  8740.         />
  8741. </androidx.constraintlayout.widget.ConstraintLayout>/>
  8742. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  8743. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8744.     xmlns:tools="http://schemas.android.com/tools"
  8745.     android:layout_width="match_parent"
  8746.     android:layout_height="match_parent"
  8747.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8748.     tools:context=".tablayout.TabLayoutHomeFragment">
  8749.     <com.google.android.material.tabs.TabLayout
  8750.         android:id="@+id/mytablayout2"
  8751.         android:layout_width="match_parent"
  8752.         android:layout_height="wrap_content"
  8753.         app:tabMode="auto"
  8754.         app:tabGravity="start"
  8755.         app:tabBackground="@color/pink"
  8756.         app:tabTextColor="@color/white"
  8757.         app:layout_constraintStart_toStartOf="parent"
  8758.         app:layout_constraintTop_toTopOf="parent"
  8759.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8760.         />
  8761.     <androidx.viewpager2.widget.ViewPager2
  8762.         android:id="@+id/myviepage2"
  8763.         android:layout_width="match_parent"
  8764.         android:layout_height="0dp"
  8765.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8766.         app:layout_constraintBottom_toBottomOf="parent"
  8767.         app:layout_constraintStart_toStartOf="parent"
  8768.         />
  8769. </androidx.constraintlayout.widget.ConstraintLayout>case R.id.add_item:<?xml version="1.0" encoding="utf-8"?>
  8770. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8771.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8772.     xmlns:tools="http://schemas.android.com/tools"
  8773.     android:layout_width="match_parent"
  8774.     android:layout_height="match_parent"
  8775.     tools:context=".ViewPager2TabLayoutActivity">
  8776.    
  8777.     <androidx.fragment.app.FragmentContainerView
  8778. <?xml version="1.0" encoding="utf-8"?>
  8779. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8780.     xmlns:tools="http://schemas.android.com/tools"
  8781.     android:layout_width="match_parent"
  8782.     android:layout_height="match_parent"
  8783.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8784.     tools:context=".tablayout.TabLayoutHomeFragment">
  8785.     <com.google.android.material.tabs.TabLayout
  8786.         android:id="@+id/mytablayout2"
  8787.         android:layout_width="match_parent"
  8788.         android:layout_height="wrap_content"
  8789.         app:tabMode="auto"
  8790.         app:tabGravity="start"
  8791.         app:tabBackground="@color/pink"
  8792.         app:tabTextColor="@color/white"
  8793.         app:layout_constraintStart_toStartOf="parent"
  8794.         app:layout_constraintTop_toTopOf="parent"
  8795.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8796.         />
  8797.     <androidx.viewpager2.widget.ViewPager2
  8798.         android:id="@+id/myviepage2"
  8799.         android:layout_width="match_parent"
  8800.         android:layout_height="0dp"
  8801.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8802.         app:layout_constraintBottom_toBottomOf="parent"
  8803.         app:layout_constraintStart_toStartOf="parent"
  8804.         />
  8805. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  8806. <?xml version="1.0" encoding="utf-8"?>
  8807. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8808.     xmlns:tools="http://schemas.android.com/tools"
  8809.     android:layout_width="match_parent"
  8810.     android:layout_height="match_parent"
  8811.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8812.     tools:context=".tablayout.TabLayoutHomeFragment">
  8813.     <com.google.android.material.tabs.TabLayout
  8814.         android:id="@+id/mytablayout2"
  8815.         android:layout_width="match_parent"
  8816.         android:layout_height="wrap_content"
  8817.         app:tabMode="auto"
  8818.         app:tabGravity="start"
  8819.         app:tabBackground="@color/pink"
  8820.         app:tabTextColor="@color/white"
  8821.         app:layout_constraintStart_toStartOf="parent"
  8822.         app:layout_constraintTop_toTopOf="parent"
  8823.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8824.         />
  8825.     <androidx.viewpager2.widget.ViewPager2
  8826.         android:id="@+id/myviepage2"
  8827.         android:layout_width="match_parent"
  8828.         android:layout_height="0dp"
  8829.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8830.         app:layout_constraintBottom_toBottomOf="parent"
  8831.         app:layout_constraintStart_toStartOf="parent"
  8832.         />
  8833. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  8834. <?xml version="1.0" encoding="utf-8"?>
  8835. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8836.     xmlns:tools="http://schemas.android.com/tools"
  8837.     android:layout_width="match_parent"
  8838.     android:layout_height="match_parent"
  8839.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8840.     tools:context=".tablayout.TabLayoutHomeFragment">
  8841.     <com.google.android.material.tabs.TabLayout
  8842.         android:id="@+id/mytablayout2"
  8843.         android:layout_width="match_parent"
  8844.         android:layout_height="wrap_content"
  8845.         app:tabMode="auto"
  8846.         app:tabGravity="start"
  8847.         app:tabBackground="@color/pink"
  8848.         app:tabTextColor="@color/white"
  8849.         app:layout_constraintStart_toStartOf="parent"
  8850.         app:layout_constraintTop_toTopOf="parent"
  8851.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8852.         />
  8853.     <androidx.viewpager2.widget.ViewPager2
  8854.         android:id="@+id/myviepage2"
  8855.         android:layout_width="match_parent"
  8856.         android:layout_height="0dp"
  8857.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8858.         app:layout_constraintBottom_toBottomOf="parent"
  8859.         app:layout_constraintStart_toStartOf="parent"
  8860.         />
  8861. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  8862. <?xml version="1.0" encoding="utf-8"?>
  8863. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8864.     xmlns:tools="http://schemas.android.com/tools"
  8865.     android:layout_width="match_parent"
  8866.     android:layout_height="match_parent"
  8867.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8868.     tools:context=".tablayout.TabLayoutHomeFragment">
  8869.     <com.google.android.material.tabs.TabLayout
  8870.         android:id="@+id/mytablayout2"
  8871.         android:layout_width="match_parent"
  8872.         android:layout_height="wrap_content"
  8873.         app:tabMode="auto"
  8874.         app:tabGravity="start"
  8875.         app:tabBackground="@color/pink"
  8876.         app:tabTextColor="@color/white"
  8877.         app:layout_constraintStart_toStartOf="parent"
  8878.         app:layout_constraintTop_toTopOf="parent"
  8879.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8880.         />
  8881.     <androidx.viewpager2.widget.ViewPager2
  8882.         android:id="@+id/myviepage2"
  8883.         android:layout_width="match_parent"
  8884.         android:layout_height="0dp"
  8885.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8886.         app:layout_constraintBottom_toBottomOf="parent"
  8887.         app:layout_constraintStart_toStartOf="parent"
  8888.         />
  8889. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  8890. <?xml version="1.0" encoding="utf-8"?>
  8891. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8892.     xmlns:tools="http://schemas.android.com/tools"
  8893.     android:layout_width="match_parent"
  8894.     android:layout_height="match_parent"
  8895.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8896.     tools:context=".tablayout.TabLayoutHomeFragment">
  8897.     <com.google.android.material.tabs.TabLayout
  8898.         android:id="@+id/mytablayout2"
  8899.         android:layout_width="match_parent"
  8900.         android:layout_height="wrap_content"
  8901.         app:tabMode="auto"
  8902.         app:tabGravity="start"
  8903.         app:tabBackground="@color/pink"
  8904.         app:tabTextColor="@color/white"
  8905.         app:layout_constraintStart_toStartOf="parent"
  8906.         app:layout_constraintTop_toTopOf="parent"
  8907.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8908.         />
  8909.     <androidx.viewpager2.widget.ViewPager2
  8910.         android:id="@+id/myviepage2"
  8911.         android:layout_width="match_parent"
  8912.         android:layout_height="0dp"
  8913.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8914.         app:layout_constraintBottom_toBottomOf="parent"
  8915.         app:layout_constraintStart_toStartOf="parent"
  8916.         />
  8917. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  8918.     <com.google.android.material.bottomnavigation.BottomNavigationView
  8919. <?xml version="1.0" encoding="utf-8"?>
  8920. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8921.     xmlns:tools="http://schemas.android.com/tools"
  8922.     android:layout_width="match_parent"
  8923.     android:layout_height="match_parent"
  8924.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8925.     tools:context=".tablayout.TabLayoutHomeFragment">
  8926.     <com.google.android.material.tabs.TabLayout
  8927.         android:id="@+id/mytablayout2"
  8928.         android:layout_width="match_parent"
  8929.         android:layout_height="wrap_content"
  8930.         app:tabMode="auto"
  8931.         app:tabGravity="start"
  8932.         app:tabBackground="@color/pink"
  8933.         app:tabTextColor="@color/white"
  8934.         app:layout_constraintStart_toStartOf="parent"
  8935.         app:layout_constraintTop_toTopOf="parent"
  8936.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8937.         />
  8938.     <androidx.viewpager2.widget.ViewPager2
  8939.         android:id="@+id/myviepage2"
  8940.         android:layout_width="match_parent"
  8941.         android:layout_height="0dp"
  8942.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8943.         app:layout_constraintBottom_toBottomOf="parent"
  8944.         app:layout_constraintStart_toStartOf="parent"
  8945.         />
  8946. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  8947. <?xml version="1.0" encoding="utf-8"?>
  8948. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8949.     xmlns:tools="http://schemas.android.com/tools"
  8950.     android:layout_width="match_parent"
  8951.     android:layout_height="match_parent"
  8952.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8953.     tools:context=".tablayout.TabLayoutHomeFragment">
  8954.     <com.google.android.material.tabs.TabLayout
  8955.         android:id="@+id/mytablayout2"
  8956.         android:layout_width="match_parent"
  8957.         android:layout_height="wrap_content"
  8958.         app:tabMode="auto"
  8959.         app:tabGravity="start"
  8960.         app:tabBackground="@color/pink"
  8961.         app:tabTextColor="@color/white"
  8962.         app:layout_constraintStart_toStartOf="parent"
  8963.         app:layout_constraintTop_toTopOf="parent"
  8964.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8965.         />
  8966.     <androidx.viewpager2.widget.ViewPager2
  8967.         android:id="@+id/myviepage2"
  8968.         android:layout_width="match_parent"
  8969.         android:layout_height="0dp"
  8970.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8971.         app:layout_constraintBottom_toBottomOf="parent"
  8972.         app:layout_constraintStart_toStartOf="parent"
  8973.         />
  8974. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  8975. <?xml version="1.0" encoding="utf-8"?>
  8976. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8977.     xmlns:tools="http://schemas.android.com/tools"
  8978.     android:layout_width="match_parent"
  8979.     android:layout_height="match_parent"
  8980.     xmlns:app="http://schemas.android.com/apk/res-auto"
  8981.     tools:context=".tablayout.TabLayoutHomeFragment">
  8982.     <com.google.android.material.tabs.TabLayout
  8983.         android:id="@+id/mytablayout2"
  8984.         android:layout_width="match_parent"
  8985.         android:layout_height="wrap_content"
  8986.         app:tabMode="auto"
  8987.         app:tabGravity="start"
  8988.         app:tabBackground="@color/pink"
  8989.         app:tabTextColor="@color/white"
  8990.         app:layout_constraintStart_toStartOf="parent"
  8991.         app:layout_constraintTop_toTopOf="parent"
  8992.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  8993.         />
  8994.     <androidx.viewpager2.widget.ViewPager2
  8995.         android:id="@+id/myviepage2"
  8996.         android:layout_width="match_parent"
  8997.         android:layout_height="0dp"
  8998.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  8999.         app:layout_constraintBottom_toBottomOf="parent"
  9000.         app:layout_constraintStart_toStartOf="parent"
  9001.         />
  9002. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  9003. <?xml version="1.0" encoding="utf-8"?>
  9004. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9005.     xmlns:tools="http://schemas.android.com/tools"
  9006.     android:layout_width="match_parent"
  9007.     android:layout_height="match_parent"
  9008.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9009.     tools:context=".tablayout.TabLayoutHomeFragment">
  9010.     <com.google.android.material.tabs.TabLayout
  9011.         android:id="@+id/mytablayout2"
  9012.         android:layout_width="match_parent"
  9013.         android:layout_height="wrap_content"
  9014.         app:tabMode="auto"
  9015.         app:tabGravity="start"
  9016.         app:tabBackground="@color/pink"
  9017.         app:tabTextColor="@color/white"
  9018.         app:layout_constraintStart_toStartOf="parent"
  9019.         app:layout_constraintTop_toTopOf="parent"
  9020.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9021.         />
  9022.     <androidx.viewpager2.widget.ViewPager2
  9023.         android:id="@+id/myviepage2"
  9024.         android:layout_width="match_parent"
  9025.         android:layout_height="0dp"
  9026.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9027.         app:layout_constraintBottom_toBottomOf="parent"
  9028.         app:layout_constraintStart_toStartOf="parent"
  9029.         />
  9030. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  9031. <?xml version="1.0" encoding="utf-8"?>
  9032. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9033.     xmlns:tools="http://schemas.android.com/tools"
  9034.     android:layout_width="match_parent"
  9035.     android:layout_height="match_parent"
  9036.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9037.     tools:context=".tablayout.TabLayoutHomeFragment">
  9038.     <com.google.android.material.tabs.TabLayout
  9039.         android:id="@+id/mytablayout2"
  9040.         android:layout_width="match_parent"
  9041.         android:layout_height="wrap_content"
  9042.         app:tabMode="auto"
  9043.         app:tabGravity="start"
  9044.         app:tabBackground="@color/pink"
  9045.         app:tabTextColor="@color/white"
  9046.         app:layout_constraintStart_toStartOf="parent"
  9047.         app:layout_constraintTop_toTopOf="parent"
  9048.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9049.         />
  9050.     <androidx.viewpager2.widget.ViewPager2
  9051.         android:id="@+id/myviepage2"
  9052.         android:layout_width="match_parent"
  9053.         android:layout_height="0dp"
  9054.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9055.         app:layout_constraintBottom_toBottomOf="parent"
  9056.         app:layout_constraintStart_toStartOf="parent"
  9057.         />
  9058. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  9059. <?xml version="1.0" encoding="utf-8"?>
  9060. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9061.     xmlns:tools="http://schemas.android.com/tools"
  9062.     android:layout_width="match_parent"
  9063.     android:layout_height="match_parent"
  9064.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9065.     tools:context=".tablayout.TabLayoutHomeFragment">
  9066.     <com.google.android.material.tabs.TabLayout
  9067.         android:id="@+id/mytablayout2"
  9068.         android:layout_width="match_parent"
  9069.         android:layout_height="wrap_content"
  9070.         app:tabMode="auto"
  9071.         app:tabGravity="start"
  9072.         app:tabBackground="@color/pink"
  9073.         app:tabTextColor="@color/white"
  9074.         app:layout_constraintStart_toStartOf="parent"
  9075.         app:layout_constraintTop_toTopOf="parent"
  9076.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9077.         />
  9078.     <androidx.viewpager2.widget.ViewPager2
  9079.         android:id="@+id/myviepage2"
  9080.         android:layout_width="match_parent"
  9081.         android:layout_height="0dp"
  9082.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9083.         app:layout_constraintBottom_toBottomOf="parent"
  9084.         app:layout_constraintStart_toStartOf="parent"
  9085.         />
  9086. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  9087. <?xml version="1.0" encoding="utf-8"?>
  9088. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9089.     xmlns:tools="http://schemas.android.com/tools"
  9090.     android:layout_width="match_parent"
  9091.     android:layout_height="match_parent"
  9092.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9093.     tools:context=".tablayout.TabLayoutHomeFragment">
  9094.     <com.google.android.material.tabs.TabLayout
  9095.         android:id="@+id/mytablayout2"
  9096.         android:layout_width="match_parent"
  9097.         android:layout_height="wrap_content"
  9098.         app:tabMode="auto"
  9099.         app:tabGravity="start"
  9100.         app:tabBackground="@color/pink"
  9101.         app:tabTextColor="@color/white"
  9102.         app:layout_constraintStart_toStartOf="parent"
  9103.         app:layout_constraintTop_toTopOf="parent"
  9104.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9105.         />
  9106.     <androidx.viewpager2.widget.ViewPager2
  9107.         android:id="@+id/myviepage2"
  9108.         android:layout_width="match_parent"
  9109.         android:layout_height="0dp"
  9110.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9111.         app:layout_constraintBottom_toBottomOf="parent"
  9112.         app:layout_constraintStart_toStartOf="parent"
  9113.         />
  9114. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  9115. <?xml version="1.0" encoding="utf-8"?>
  9116. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9117.     xmlns:tools="http://schemas.android.com/tools"
  9118.     android:layout_width="match_parent"
  9119.     android:layout_height="match_parent"
  9120.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9121.     tools:context=".tablayout.TabLayoutHomeFragment">
  9122.     <com.google.android.material.tabs.TabLayout
  9123.         android:id="@+id/mytablayout2"
  9124.         android:layout_width="match_parent"
  9125.         android:layout_height="wrap_content"
  9126.         app:tabMode="auto"
  9127.         app:tabGravity="start"
  9128.         app:tabBackground="@color/pink"
  9129.         app:tabTextColor="@color/white"
  9130.         app:layout_constraintStart_toStartOf="parent"
  9131.         app:layout_constraintTop_toTopOf="parent"
  9132.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9133.         />
  9134.     <androidx.viewpager2.widget.ViewPager2
  9135.         android:id="@+id/myviepage2"
  9136.         android:layout_width="match_parent"
  9137.         android:layout_height="0dp"
  9138.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9139.         app:layout_constraintBottom_toBottomOf="parent"
  9140.         app:layout_constraintStart_toStartOf="parent"
  9141.         />
  9142. </androidx.constraintlayout.widget.ConstraintLayout>/>
  9143. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  9144. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9145.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9146.     xmlns:tools="http://schemas.android.com/tools"
  9147.     android:layout_width="match_parent"
  9148.     android:layout_height="match_parent"
  9149.     tools:context=".ViewPager2TabLayoutActivity">
  9150.    
  9151.     <androidx.fragment.app.FragmentContainerView
  9152. <?xml version="1.0" encoding="utf-8"?>
  9153. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9154.     xmlns:tools="http://schemas.android.com/tools"
  9155.     android:layout_width="match_parent"
  9156.     android:layout_height="match_parent"
  9157.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9158.     tools:context=".tablayout.TabLayoutHomeFragment">
  9159.     <com.google.android.material.tabs.TabLayout
  9160.         android:id="@+id/mytablayout2"
  9161.         android:layout_width="match_parent"
  9162.         android:layout_height="wrap_content"
  9163.         app:tabMode="auto"
  9164.         app:tabGravity="start"
  9165.         app:tabBackground="@color/pink"
  9166.         app:tabTextColor="@color/white"
  9167.         app:layout_constraintStart_toStartOf="parent"
  9168.         app:layout_constraintTop_toTopOf="parent"
  9169.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9170.         />
  9171.     <androidx.viewpager2.widget.ViewPager2
  9172.         android:id="@+id/myviepage2"
  9173.         android:layout_width="match_parent"
  9174.         android:layout_height="0dp"
  9175.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9176.         app:layout_constraintBottom_toBottomOf="parent"
  9177.         app:layout_constraintStart_toStartOf="parent"
  9178.         />
  9179. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  9180. <?xml version="1.0" encoding="utf-8"?>
  9181. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9182.     xmlns:tools="http://schemas.android.com/tools"
  9183.     android:layout_width="match_parent"
  9184.     android:layout_height="match_parent"
  9185.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9186.     tools:context=".tablayout.TabLayoutHomeFragment">
  9187.     <com.google.android.material.tabs.TabLayout
  9188.         android:id="@+id/mytablayout2"
  9189.         android:layout_width="match_parent"
  9190.         android:layout_height="wrap_content"
  9191.         app:tabMode="auto"
  9192.         app:tabGravity="start"
  9193.         app:tabBackground="@color/pink"
  9194.         app:tabTextColor="@color/white"
  9195.         app:layout_constraintStart_toStartOf="parent"
  9196.         app:layout_constraintTop_toTopOf="parent"
  9197.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9198.         />
  9199.     <androidx.viewpager2.widget.ViewPager2
  9200.         android:id="@+id/myviepage2"
  9201.         android:layout_width="match_parent"
  9202.         android:layout_height="0dp"
  9203.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9204.         app:layout_constraintBottom_toBottomOf="parent"
  9205.         app:layout_constraintStart_toStartOf="parent"
  9206.         />
  9207. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  9208. <?xml version="1.0" encoding="utf-8"?>
  9209. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9210.     xmlns:tools="http://schemas.android.com/tools"
  9211.     android:layout_width="match_parent"
  9212.     android:layout_height="match_parent"
  9213.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9214.     tools:context=".tablayout.TabLayoutHomeFragment">
  9215.     <com.google.android.material.tabs.TabLayout
  9216.         android:id="@+id/mytablayout2"
  9217.         android:layout_width="match_parent"
  9218.         android:layout_height="wrap_content"
  9219.         app:tabMode="auto"
  9220.         app:tabGravity="start"
  9221.         app:tabBackground="@color/pink"
  9222.         app:tabTextColor="@color/white"
  9223.         app:layout_constraintStart_toStartOf="parent"
  9224.         app:layout_constraintTop_toTopOf="parent"
  9225.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9226.         />
  9227.     <androidx.viewpager2.widget.ViewPager2
  9228.         android:id="@+id/myviepage2"
  9229.         android:layout_width="match_parent"
  9230.         android:layout_height="0dp"
  9231.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9232.         app:layout_constraintBottom_toBottomOf="parent"
  9233.         app:layout_constraintStart_toStartOf="parent"
  9234.         />
  9235. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  9236. <?xml version="1.0" encoding="utf-8"?>
  9237. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9238.     xmlns:tools="http://schemas.android.com/tools"
  9239.     android:layout_width="match_parent"
  9240.     android:layout_height="match_parent"
  9241.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9242.     tools:context=".tablayout.TabLayoutHomeFragment">
  9243.     <com.google.android.material.tabs.TabLayout
  9244.         android:id="@+id/mytablayout2"
  9245.         android:layout_width="match_parent"
  9246.         android:layout_height="wrap_content"
  9247.         app:tabMode="auto"
  9248.         app:tabGravity="start"
  9249.         app:tabBackground="@color/pink"
  9250.         app:tabTextColor="@color/white"
  9251.         app:layout_constraintStart_toStartOf="parent"
  9252.         app:layout_constraintTop_toTopOf="parent"
  9253.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9254.         />
  9255.     <androidx.viewpager2.widget.ViewPager2
  9256.         android:id="@+id/myviepage2"
  9257.         android:layout_width="match_parent"
  9258.         android:layout_height="0dp"
  9259.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9260.         app:layout_constraintBottom_toBottomOf="parent"
  9261.         app:layout_constraintStart_toStartOf="parent"
  9262.         />
  9263. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  9264. <?xml version="1.0" encoding="utf-8"?>
  9265. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9266.     xmlns:tools="http://schemas.android.com/tools"
  9267.     android:layout_width="match_parent"
  9268.     android:layout_height="match_parent"
  9269.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9270.     tools:context=".tablayout.TabLayoutHomeFragment">
  9271.     <com.google.android.material.tabs.TabLayout
  9272.         android:id="@+id/mytablayout2"
  9273.         android:layout_width="match_parent"
  9274.         android:layout_height="wrap_content"
  9275.         app:tabMode="auto"
  9276.         app:tabGravity="start"
  9277.         app:tabBackground="@color/pink"
  9278.         app:tabTextColor="@color/white"
  9279.         app:layout_constraintStart_toStartOf="parent"
  9280.         app:layout_constraintTop_toTopOf="parent"
  9281.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9282.         />
  9283.     <androidx.viewpager2.widget.ViewPager2
  9284.         android:id="@+id/myviepage2"
  9285.         android:layout_width="match_parent"
  9286.         android:layout_height="0dp"
  9287.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9288.         app:layout_constraintBottom_toBottomOf="parent"
  9289.         app:layout_constraintStart_toStartOf="parent"
  9290.         />
  9291. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  9292.     <com.google.android.material.bottomnavigation.BottomNavigationView
  9293. <?xml version="1.0" encoding="utf-8"?>
  9294. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9295.     xmlns:tools="http://schemas.android.com/tools"
  9296.     android:layout_width="match_parent"
  9297.     android:layout_height="match_parent"
  9298.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9299.     tools:context=".tablayout.TabLayoutHomeFragment">
  9300.     <com.google.android.material.tabs.TabLayout
  9301.         android:id="@+id/mytablayout2"
  9302.         android:layout_width="match_parent"
  9303.         android:layout_height="wrap_content"
  9304.         app:tabMode="auto"
  9305.         app:tabGravity="start"
  9306.         app:tabBackground="@color/pink"
  9307.         app:tabTextColor="@color/white"
  9308.         app:layout_constraintStart_toStartOf="parent"
  9309.         app:layout_constraintTop_toTopOf="parent"
  9310.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9311.         />
  9312.     <androidx.viewpager2.widget.ViewPager2
  9313.         android:id="@+id/myviepage2"
  9314.         android:layout_width="match_parent"
  9315.         android:layout_height="0dp"
  9316.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9317.         app:layout_constraintBottom_toBottomOf="parent"
  9318.         app:layout_constraintStart_toStartOf="parent"
  9319.         />
  9320. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  9321. <?xml version="1.0" encoding="utf-8"?>
  9322. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9323.     xmlns:tools="http://schemas.android.com/tools"
  9324.     android:layout_width="match_parent"
  9325.     android:layout_height="match_parent"
  9326.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9327.     tools:context=".tablayout.TabLayoutHomeFragment">
  9328.     <com.google.android.material.tabs.TabLayout
  9329.         android:id="@+id/mytablayout2"
  9330.         android:layout_width="match_parent"
  9331.         android:layout_height="wrap_content"
  9332.         app:tabMode="auto"
  9333.         app:tabGravity="start"
  9334.         app:tabBackground="@color/pink"
  9335.         app:tabTextColor="@color/white"
  9336.         app:layout_constraintStart_toStartOf="parent"
  9337.         app:layout_constraintTop_toTopOf="parent"
  9338.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9339.         />
  9340.     <androidx.viewpager2.widget.ViewPager2
  9341.         android:id="@+id/myviepage2"
  9342.         android:layout_width="match_parent"
  9343.         android:layout_height="0dp"
  9344.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9345.         app:layout_constraintBottom_toBottomOf="parent"
  9346.         app:layout_constraintStart_toStartOf="parent"
  9347.         />
  9348. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  9349. <?xml version="1.0" encoding="utf-8"?>
  9350. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9351.     xmlns:tools="http://schemas.android.com/tools"
  9352.     android:layout_width="match_parent"
  9353.     android:layout_height="match_parent"
  9354.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9355.     tools:context=".tablayout.TabLayoutHomeFragment">
  9356.     <com.google.android.material.tabs.TabLayout
  9357.         android:id="@+id/mytablayout2"
  9358.         android:layout_width="match_parent"
  9359.         android:layout_height="wrap_content"
  9360.         app:tabMode="auto"
  9361.         app:tabGravity="start"
  9362.         app:tabBackground="@color/pink"
  9363.         app:tabTextColor="@color/white"
  9364.         app:layout_constraintStart_toStartOf="parent"
  9365.         app:layout_constraintTop_toTopOf="parent"
  9366.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9367.         />
  9368.     <androidx.viewpager2.widget.ViewPager2
  9369.         android:id="@+id/myviepage2"
  9370.         android:layout_width="match_parent"
  9371.         android:layout_height="0dp"
  9372.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9373.         app:layout_constraintBottom_toBottomOf="parent"
  9374.         app:layout_constraintStart_toStartOf="parent"
  9375.         />
  9376. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  9377. <?xml version="1.0" encoding="utf-8"?>
  9378. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9379.     xmlns:tools="http://schemas.android.com/tools"
  9380.     android:layout_width="match_parent"
  9381.     android:layout_height="match_parent"
  9382.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9383.     tools:context=".tablayout.TabLayoutHomeFragment">
  9384.     <com.google.android.material.tabs.TabLayout
  9385.         android:id="@+id/mytablayout2"
  9386.         android:layout_width="match_parent"
  9387.         android:layout_height="wrap_content"
  9388.         app:tabMode="auto"
  9389.         app:tabGravity="start"
  9390.         app:tabBackground="@color/pink"
  9391.         app:tabTextColor="@color/white"
  9392.         app:layout_constraintStart_toStartOf="parent"
  9393.         app:layout_constraintTop_toTopOf="parent"
  9394.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9395.         />
  9396.     <androidx.viewpager2.widget.ViewPager2
  9397.         android:id="@+id/myviepage2"
  9398.         android:layout_width="match_parent"
  9399.         android:layout_height="0dp"
  9400.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9401.         app:layout_constraintBottom_toBottomOf="parent"
  9402.         app:layout_constraintStart_toStartOf="parent"
  9403.         />
  9404. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  9405. <?xml version="1.0" encoding="utf-8"?>
  9406. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9407.     xmlns:tools="http://schemas.android.com/tools"
  9408.     android:layout_width="match_parent"
  9409.     android:layout_height="match_parent"
  9410.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9411.     tools:context=".tablayout.TabLayoutHomeFragment">
  9412.     <com.google.android.material.tabs.TabLayout
  9413.         android:id="@+id/mytablayout2"
  9414.         android:layout_width="match_parent"
  9415.         android:layout_height="wrap_content"
  9416.         app:tabMode="auto"
  9417.         app:tabGravity="start"
  9418.         app:tabBackground="@color/pink"
  9419.         app:tabTextColor="@color/white"
  9420.         app:layout_constraintStart_toStartOf="parent"
  9421.         app:layout_constraintTop_toTopOf="parent"
  9422.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9423.         />
  9424.     <androidx.viewpager2.widget.ViewPager2
  9425.         android:id="@+id/myviepage2"
  9426.         android:layout_width="match_parent"
  9427.         android:layout_height="0dp"
  9428.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9429.         app:layout_constraintBottom_toBottomOf="parent"
  9430.         app:layout_constraintStart_toStartOf="parent"
  9431.         />
  9432. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  9433. <?xml version="1.0" encoding="utf-8"?>
  9434. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9435.     xmlns:tools="http://schemas.android.com/tools"
  9436.     android:layout_width="match_parent"
  9437.     android:layout_height="match_parent"
  9438.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9439.     tools:context=".tablayout.TabLayoutHomeFragment">
  9440.     <com.google.android.material.tabs.TabLayout
  9441.         android:id="@+id/mytablayout2"
  9442.         android:layout_width="match_parent"
  9443.         android:layout_height="wrap_content"
  9444.         app:tabMode="auto"
  9445.         app:tabGravity="start"
  9446.         app:tabBackground="@color/pink"
  9447.         app:tabTextColor="@color/white"
  9448.         app:layout_constraintStart_toStartOf="parent"
  9449.         app:layout_constraintTop_toTopOf="parent"
  9450.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9451.         />
  9452.     <androidx.viewpager2.widget.ViewPager2
  9453.         android:id="@+id/myviepage2"
  9454.         android:layout_width="match_parent"
  9455.         android:layout_height="0dp"
  9456.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9457.         app:layout_constraintBottom_toBottomOf="parent"
  9458.         app:layout_constraintStart_toStartOf="parent"
  9459.         />
  9460. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  9461. <?xml version="1.0" encoding="utf-8"?>
  9462. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9463.     xmlns:tools="http://schemas.android.com/tools"
  9464.     android:layout_width="match_parent"
  9465.     android:layout_height="match_parent"
  9466.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9467.     tools:context=".tablayout.TabLayoutHomeFragment">
  9468.     <com.google.android.material.tabs.TabLayout
  9469.         android:id="@+id/mytablayout2"
  9470.         android:layout_width="match_parent"
  9471.         android:layout_height="wrap_content"
  9472.         app:tabMode="auto"
  9473.         app:tabGravity="start"
  9474.         app:tabBackground="@color/pink"
  9475.         app:tabTextColor="@color/white"
  9476.         app:layout_constraintStart_toStartOf="parent"
  9477.         app:layout_constraintTop_toTopOf="parent"
  9478.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9479.         />
  9480.     <androidx.viewpager2.widget.ViewPager2
  9481.         android:id="@+id/myviepage2"
  9482.         android:layout_width="match_parent"
  9483.         android:layout_height="0dp"
  9484.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9485.         app:layout_constraintBottom_toBottomOf="parent"
  9486.         app:layout_constraintStart_toStartOf="parent"
  9487.         />
  9488. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  9489. <?xml version="1.0" encoding="utf-8"?>
  9490. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9491.     xmlns:tools="http://schemas.android.com/tools"
  9492.     android:layout_width="match_parent"
  9493.     android:layout_height="match_parent"
  9494.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9495.     tools:context=".tablayout.TabLayoutHomeFragment">
  9496.     <com.google.android.material.tabs.TabLayout
  9497.         android:id="@+id/mytablayout2"
  9498.         android:layout_width="match_parent"
  9499.         android:layout_height="wrap_content"
  9500.         app:tabMode="auto"
  9501.         app:tabGravity="start"
  9502.         app:tabBackground="@color/pink"
  9503.         app:tabTextColor="@color/white"
  9504.         app:layout_constraintStart_toStartOf="parent"
  9505.         app:layout_constraintTop_toTopOf="parent"
  9506.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9507.         />
  9508.     <androidx.viewpager2.widget.ViewPager2
  9509.         android:id="@+id/myviepage2"
  9510.         android:layout_width="match_parent"
  9511.         android:layout_height="0dp"
  9512.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9513.         app:layout_constraintBottom_toBottomOf="parent"
  9514.         app:layout_constraintStart_toStartOf="parent"
  9515.         />
  9516. </androidx.constraintlayout.widget.ConstraintLayout>/>
  9517. </androidx.constraintlayout.widget.ConstraintLayout>getSupportFragmentManager().beginTransaction()<?xml version="1.0" encoding="utf-8"?>
  9518. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9519.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9520.     xmlns:tools="http://schemas.android.com/tools"
  9521.     android:layout_width="match_parent"
  9522.     android:layout_height="match_parent"
  9523.     tools:context=".ViewPager2TabLayoutActivity">
  9524.    
  9525.     <androidx.fragment.app.FragmentContainerView
  9526. <?xml version="1.0" encoding="utf-8"?>
  9527. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9528.     xmlns:tools="http://schemas.android.com/tools"
  9529.     android:layout_width="match_parent"
  9530.     android:layout_height="match_parent"
  9531.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9532.     tools:context=".tablayout.TabLayoutHomeFragment">
  9533.     <com.google.android.material.tabs.TabLayout
  9534.         android:id="@+id/mytablayout2"
  9535.         android:layout_width="match_parent"
  9536.         android:layout_height="wrap_content"
  9537.         app:tabMode="auto"
  9538.         app:tabGravity="start"
  9539.         app:tabBackground="@color/pink"
  9540.         app:tabTextColor="@color/white"
  9541.         app:layout_constraintStart_toStartOf="parent"
  9542.         app:layout_constraintTop_toTopOf="parent"
  9543.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9544.         />
  9545.     <androidx.viewpager2.widget.ViewPager2
  9546.         android:id="@+id/myviepage2"
  9547.         android:layout_width="match_parent"
  9548.         android:layout_height="0dp"
  9549.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9550.         app:layout_constraintBottom_toBottomOf="parent"
  9551.         app:layout_constraintStart_toStartOf="parent"
  9552.         />
  9553. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  9554. <?xml version="1.0" encoding="utf-8"?>
  9555. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9556.     xmlns:tools="http://schemas.android.com/tools"
  9557.     android:layout_width="match_parent"
  9558.     android:layout_height="match_parent"
  9559.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9560.     tools:context=".tablayout.TabLayoutHomeFragment">
  9561.     <com.google.android.material.tabs.TabLayout
  9562.         android:id="@+id/mytablayout2"
  9563.         android:layout_width="match_parent"
  9564.         android:layout_height="wrap_content"
  9565.         app:tabMode="auto"
  9566.         app:tabGravity="start"
  9567.         app:tabBackground="@color/pink"
  9568.         app:tabTextColor="@color/white"
  9569.         app:layout_constraintStart_toStartOf="parent"
  9570.         app:layout_constraintTop_toTopOf="parent"
  9571.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9572.         />
  9573.     <androidx.viewpager2.widget.ViewPager2
  9574.         android:id="@+id/myviepage2"
  9575.         android:layout_width="match_parent"
  9576.         android:layout_height="0dp"
  9577.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9578.         app:layout_constraintBottom_toBottomOf="parent"
  9579.         app:layout_constraintStart_toStartOf="parent"
  9580.         />
  9581. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  9582. <?xml version="1.0" encoding="utf-8"?>
  9583. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9584.     xmlns:tools="http://schemas.android.com/tools"
  9585.     android:layout_width="match_parent"
  9586.     android:layout_height="match_parent"
  9587.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9588.     tools:context=".tablayout.TabLayoutHomeFragment">
  9589.     <com.google.android.material.tabs.TabLayout
  9590.         android:id="@+id/mytablayout2"
  9591.         android:layout_width="match_parent"
  9592.         android:layout_height="wrap_content"
  9593.         app:tabMode="auto"
  9594.         app:tabGravity="start"
  9595.         app:tabBackground="@color/pink"
  9596.         app:tabTextColor="@color/white"
  9597.         app:layout_constraintStart_toStartOf="parent"
  9598.         app:layout_constraintTop_toTopOf="parent"
  9599.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9600.         />
  9601.     <androidx.viewpager2.widget.ViewPager2
  9602.         android:id="@+id/myviepage2"
  9603.         android:layout_width="match_parent"
  9604.         android:layout_height="0dp"
  9605.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9606.         app:layout_constraintBottom_toBottomOf="parent"
  9607.         app:layout_constraintStart_toStartOf="parent"
  9608.         />
  9609. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  9610. <?xml version="1.0" encoding="utf-8"?>
  9611. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9612.     xmlns:tools="http://schemas.android.com/tools"
  9613.     android:layout_width="match_parent"
  9614.     android:layout_height="match_parent"
  9615.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9616.     tools:context=".tablayout.TabLayoutHomeFragment">
  9617.     <com.google.android.material.tabs.TabLayout
  9618.         android:id="@+id/mytablayout2"
  9619.         android:layout_width="match_parent"
  9620.         android:layout_height="wrap_content"
  9621.         app:tabMode="auto"
  9622.         app:tabGravity="start"
  9623.         app:tabBackground="@color/pink"
  9624.         app:tabTextColor="@color/white"
  9625.         app:layout_constraintStart_toStartOf="parent"
  9626.         app:layout_constraintTop_toTopOf="parent"
  9627.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9628.         />
  9629.     <androidx.viewpager2.widget.ViewPager2
  9630.         android:id="@+id/myviepage2"
  9631.         android:layout_width="match_parent"
  9632.         android:layout_height="0dp"
  9633.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9634.         app:layout_constraintBottom_toBottomOf="parent"
  9635.         app:layout_constraintStart_toStartOf="parent"
  9636.         />
  9637. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  9638. <?xml version="1.0" encoding="utf-8"?>
  9639. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9640.     xmlns:tools="http://schemas.android.com/tools"
  9641.     android:layout_width="match_parent"
  9642.     android:layout_height="match_parent"
  9643.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9644.     tools:context=".tablayout.TabLayoutHomeFragment">
  9645.     <com.google.android.material.tabs.TabLayout
  9646.         android:id="@+id/mytablayout2"
  9647.         android:layout_width="match_parent"
  9648.         android:layout_height="wrap_content"
  9649.         app:tabMode="auto"
  9650.         app:tabGravity="start"
  9651.         app:tabBackground="@color/pink"
  9652.         app:tabTextColor="@color/white"
  9653.         app:layout_constraintStart_toStartOf="parent"
  9654.         app:layout_constraintTop_toTopOf="parent"
  9655.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9656.         />
  9657.     <androidx.viewpager2.widget.ViewPager2
  9658.         android:id="@+id/myviepage2"
  9659.         android:layout_width="match_parent"
  9660.         android:layout_height="0dp"
  9661.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9662.         app:layout_constraintBottom_toBottomOf="parent"
  9663.         app:layout_constraintStart_toStartOf="parent"
  9664.         />
  9665. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  9666.     <com.google.android.material.bottomnavigation.BottomNavigationView
  9667. <?xml version="1.0" encoding="utf-8"?>
  9668. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9669.     xmlns:tools="http://schemas.android.com/tools"
  9670.     android:layout_width="match_parent"
  9671.     android:layout_height="match_parent"
  9672.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9673.     tools:context=".tablayout.TabLayoutHomeFragment">
  9674.     <com.google.android.material.tabs.TabLayout
  9675.         android:id="@+id/mytablayout2"
  9676.         android:layout_width="match_parent"
  9677.         android:layout_height="wrap_content"
  9678.         app:tabMode="auto"
  9679.         app:tabGravity="start"
  9680.         app:tabBackground="@color/pink"
  9681.         app:tabTextColor="@color/white"
  9682.         app:layout_constraintStart_toStartOf="parent"
  9683.         app:layout_constraintTop_toTopOf="parent"
  9684.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9685.         />
  9686.     <androidx.viewpager2.widget.ViewPager2
  9687.         android:id="@+id/myviepage2"
  9688.         android:layout_width="match_parent"
  9689.         android:layout_height="0dp"
  9690.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9691.         app:layout_constraintBottom_toBottomOf="parent"
  9692.         app:layout_constraintStart_toStartOf="parent"
  9693.         />
  9694. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  9695. <?xml version="1.0" encoding="utf-8"?>
  9696. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9697.     xmlns:tools="http://schemas.android.com/tools"
  9698.     android:layout_width="match_parent"
  9699.     android:layout_height="match_parent"
  9700.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9701.     tools:context=".tablayout.TabLayoutHomeFragment">
  9702.     <com.google.android.material.tabs.TabLayout
  9703.         android:id="@+id/mytablayout2"
  9704.         android:layout_width="match_parent"
  9705.         android:layout_height="wrap_content"
  9706.         app:tabMode="auto"
  9707.         app:tabGravity="start"
  9708.         app:tabBackground="@color/pink"
  9709.         app:tabTextColor="@color/white"
  9710.         app:layout_constraintStart_toStartOf="parent"
  9711.         app:layout_constraintTop_toTopOf="parent"
  9712.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9713.         />
  9714.     <androidx.viewpager2.widget.ViewPager2
  9715.         android:id="@+id/myviepage2"
  9716.         android:layout_width="match_parent"
  9717.         android:layout_height="0dp"
  9718.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9719.         app:layout_constraintBottom_toBottomOf="parent"
  9720.         app:layout_constraintStart_toStartOf="parent"
  9721.         />
  9722. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  9723. <?xml version="1.0" encoding="utf-8"?>
  9724. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9725.     xmlns:tools="http://schemas.android.com/tools"
  9726.     android:layout_width="match_parent"
  9727.     android:layout_height="match_parent"
  9728.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9729.     tools:context=".tablayout.TabLayoutHomeFragment">
  9730.     <com.google.android.material.tabs.TabLayout
  9731.         android:id="@+id/mytablayout2"
  9732.         android:layout_width="match_parent"
  9733.         android:layout_height="wrap_content"
  9734.         app:tabMode="auto"
  9735.         app:tabGravity="start"
  9736.         app:tabBackground="@color/pink"
  9737.         app:tabTextColor="@color/white"
  9738.         app:layout_constraintStart_toStartOf="parent"
  9739.         app:layout_constraintTop_toTopOf="parent"
  9740.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9741.         />
  9742.     <androidx.viewpager2.widget.ViewPager2
  9743.         android:id="@+id/myviepage2"
  9744.         android:layout_width="match_parent"
  9745.         android:layout_height="0dp"
  9746.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9747.         app:layout_constraintBottom_toBottomOf="parent"
  9748.         app:layout_constraintStart_toStartOf="parent"
  9749.         />
  9750. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  9751. <?xml version="1.0" encoding="utf-8"?>
  9752. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9753.     xmlns:tools="http://schemas.android.com/tools"
  9754.     android:layout_width="match_parent"
  9755.     android:layout_height="match_parent"
  9756.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9757.     tools:context=".tablayout.TabLayoutHomeFragment">
  9758.     <com.google.android.material.tabs.TabLayout
  9759.         android:id="@+id/mytablayout2"
  9760.         android:layout_width="match_parent"
  9761.         android:layout_height="wrap_content"
  9762.         app:tabMode="auto"
  9763.         app:tabGravity="start"
  9764.         app:tabBackground="@color/pink"
  9765.         app:tabTextColor="@color/white"
  9766.         app:layout_constraintStart_toStartOf="parent"
  9767.         app:layout_constraintTop_toTopOf="parent"
  9768.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9769.         />
  9770.     <androidx.viewpager2.widget.ViewPager2
  9771.         android:id="@+id/myviepage2"
  9772.         android:layout_width="match_parent"
  9773.         android:layout_height="0dp"
  9774.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9775.         app:layout_constraintBottom_toBottomOf="parent"
  9776.         app:layout_constraintStart_toStartOf="parent"
  9777.         />
  9778. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  9779. <?xml version="1.0" encoding="utf-8"?>
  9780. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9781.     xmlns:tools="http://schemas.android.com/tools"
  9782.     android:layout_width="match_parent"
  9783.     android:layout_height="match_parent"
  9784.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9785.     tools:context=".tablayout.TabLayoutHomeFragment">
  9786.     <com.google.android.material.tabs.TabLayout
  9787.         android:id="@+id/mytablayout2"
  9788.         android:layout_width="match_parent"
  9789.         android:layout_height="wrap_content"
  9790.         app:tabMode="auto"
  9791.         app:tabGravity="start"
  9792.         app:tabBackground="@color/pink"
  9793.         app:tabTextColor="@color/white"
  9794.         app:layout_constraintStart_toStartOf="parent"
  9795.         app:layout_constraintTop_toTopOf="parent"
  9796.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9797.         />
  9798.     <androidx.viewpager2.widget.ViewPager2
  9799.         android:id="@+id/myviepage2"
  9800.         android:layout_width="match_parent"
  9801.         android:layout_height="0dp"
  9802.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9803.         app:layout_constraintBottom_toBottomOf="parent"
  9804.         app:layout_constraintStart_toStartOf="parent"
  9805.         />
  9806. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  9807. <?xml version="1.0" encoding="utf-8"?>
  9808. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9809.     xmlns:tools="http://schemas.android.com/tools"
  9810.     android:layout_width="match_parent"
  9811.     android:layout_height="match_parent"
  9812.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9813.     tools:context=".tablayout.TabLayoutHomeFragment">
  9814.     <com.google.android.material.tabs.TabLayout
  9815.         android:id="@+id/mytablayout2"
  9816.         android:layout_width="match_parent"
  9817.         android:layout_height="wrap_content"
  9818.         app:tabMode="auto"
  9819.         app:tabGravity="start"
  9820.         app:tabBackground="@color/pink"
  9821.         app:tabTextColor="@color/white"
  9822.         app:layout_constraintStart_toStartOf="parent"
  9823.         app:layout_constraintTop_toTopOf="parent"
  9824.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9825.         />
  9826.     <androidx.viewpager2.widget.ViewPager2
  9827.         android:id="@+id/myviepage2"
  9828.         android:layout_width="match_parent"
  9829.         android:layout_height="0dp"
  9830.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9831.         app:layout_constraintBottom_toBottomOf="parent"
  9832.         app:layout_constraintStart_toStartOf="parent"
  9833.         />
  9834. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  9835. <?xml version="1.0" encoding="utf-8"?>
  9836. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9837.     xmlns:tools="http://schemas.android.com/tools"
  9838.     android:layout_width="match_parent"
  9839.     android:layout_height="match_parent"
  9840.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9841.     tools:context=".tablayout.TabLayoutHomeFragment">
  9842.     <com.google.android.material.tabs.TabLayout
  9843.         android:id="@+id/mytablayout2"
  9844.         android:layout_width="match_parent"
  9845.         android:layout_height="wrap_content"
  9846.         app:tabMode="auto"
  9847.         app:tabGravity="start"
  9848.         app:tabBackground="@color/pink"
  9849.         app:tabTextColor="@color/white"
  9850.         app:layout_constraintStart_toStartOf="parent"
  9851.         app:layout_constraintTop_toTopOf="parent"
  9852.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9853.         />
  9854.     <androidx.viewpager2.widget.ViewPager2
  9855.         android:id="@+id/myviepage2"
  9856.         android:layout_width="match_parent"
  9857.         android:layout_height="0dp"
  9858.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9859.         app:layout_constraintBottom_toBottomOf="parent"
  9860.         app:layout_constraintStart_toStartOf="parent"
  9861.         />
  9862. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  9863. <?xml version="1.0" encoding="utf-8"?>
  9864. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9865.     xmlns:tools="http://schemas.android.com/tools"
  9866.     android:layout_width="match_parent"
  9867.     android:layout_height="match_parent"
  9868.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9869.     tools:context=".tablayout.TabLayoutHomeFragment">
  9870.     <com.google.android.material.tabs.TabLayout
  9871.         android:id="@+id/mytablayout2"
  9872.         android:layout_width="match_parent"
  9873.         android:layout_height="wrap_content"
  9874.         app:tabMode="auto"
  9875.         app:tabGravity="start"
  9876.         app:tabBackground="@color/pink"
  9877.         app:tabTextColor="@color/white"
  9878.         app:layout_constraintStart_toStartOf="parent"
  9879.         app:layout_constraintTop_toTopOf="parent"
  9880.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9881.         />
  9882.     <androidx.viewpager2.widget.ViewPager2
  9883.         android:id="@+id/myviepage2"
  9884.         android:layout_width="match_parent"
  9885.         android:layout_height="0dp"
  9886.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9887.         app:layout_constraintBottom_toBottomOf="parent"
  9888.         app:layout_constraintStart_toStartOf="parent"
  9889.         />
  9890. </androidx.constraintlayout.widget.ConstraintLayout>/>
  9891. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  9892. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9893.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9894.     xmlns:tools="http://schemas.android.com/tools"
  9895.     android:layout_width="match_parent"
  9896.     android:layout_height="match_parent"
  9897.     tools:context=".ViewPager2TabLayoutActivity">
  9898.    
  9899.     <androidx.fragment.app.FragmentContainerView
  9900. <?xml version="1.0" encoding="utf-8"?>
  9901. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9902.     xmlns:tools="http://schemas.android.com/tools"
  9903.     android:layout_width="match_parent"
  9904.     android:layout_height="match_parent"
  9905.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9906.     tools:context=".tablayout.TabLayoutHomeFragment">
  9907.     <com.google.android.material.tabs.TabLayout
  9908.         android:id="@+id/mytablayout2"
  9909.         android:layout_width="match_parent"
  9910.         android:layout_height="wrap_content"
  9911.         app:tabMode="auto"
  9912.         app:tabGravity="start"
  9913.         app:tabBackground="@color/pink"
  9914.         app:tabTextColor="@color/white"
  9915.         app:layout_constraintStart_toStartOf="parent"
  9916.         app:layout_constraintTop_toTopOf="parent"
  9917.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9918.         />
  9919.     <androidx.viewpager2.widget.ViewPager2
  9920.         android:id="@+id/myviepage2"
  9921.         android:layout_width="match_parent"
  9922.         android:layout_height="0dp"
  9923.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9924.         app:layout_constraintBottom_toBottomOf="parent"
  9925.         app:layout_constraintStart_toStartOf="parent"
  9926.         />
  9927. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  9928. <?xml version="1.0" encoding="utf-8"?>
  9929. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9930.     xmlns:tools="http://schemas.android.com/tools"
  9931.     android:layout_width="match_parent"
  9932.     android:layout_height="match_parent"
  9933.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9934.     tools:context=".tablayout.TabLayoutHomeFragment">
  9935.     <com.google.android.material.tabs.TabLayout
  9936.         android:id="@+id/mytablayout2"
  9937.         android:layout_width="match_parent"
  9938.         android:layout_height="wrap_content"
  9939.         app:tabMode="auto"
  9940.         app:tabGravity="start"
  9941.         app:tabBackground="@color/pink"
  9942.         app:tabTextColor="@color/white"
  9943.         app:layout_constraintStart_toStartOf="parent"
  9944.         app:layout_constraintTop_toTopOf="parent"
  9945.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9946.         />
  9947.     <androidx.viewpager2.widget.ViewPager2
  9948.         android:id="@+id/myviepage2"
  9949.         android:layout_width="match_parent"
  9950.         android:layout_height="0dp"
  9951.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9952.         app:layout_constraintBottom_toBottomOf="parent"
  9953.         app:layout_constraintStart_toStartOf="parent"
  9954.         />
  9955. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  9956. <?xml version="1.0" encoding="utf-8"?>
  9957. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9958.     xmlns:tools="http://schemas.android.com/tools"
  9959.     android:layout_width="match_parent"
  9960.     android:layout_height="match_parent"
  9961.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9962.     tools:context=".tablayout.TabLayoutHomeFragment">
  9963.     <com.google.android.material.tabs.TabLayout
  9964.         android:id="@+id/mytablayout2"
  9965.         android:layout_width="match_parent"
  9966.         android:layout_height="wrap_content"
  9967.         app:tabMode="auto"
  9968.         app:tabGravity="start"
  9969.         app:tabBackground="@color/pink"
  9970.         app:tabTextColor="@color/white"
  9971.         app:layout_constraintStart_toStartOf="parent"
  9972.         app:layout_constraintTop_toTopOf="parent"
  9973.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  9974.         />
  9975.     <androidx.viewpager2.widget.ViewPager2
  9976.         android:id="@+id/myviepage2"
  9977.         android:layout_width="match_parent"
  9978.         android:layout_height="0dp"
  9979.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  9980.         app:layout_constraintBottom_toBottomOf="parent"
  9981.         app:layout_constraintStart_toStartOf="parent"
  9982.         />
  9983. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  9984. <?xml version="1.0" encoding="utf-8"?>
  9985. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9986.     xmlns:tools="http://schemas.android.com/tools"
  9987.     android:layout_width="match_parent"
  9988.     android:layout_height="match_parent"
  9989.     xmlns:app="http://schemas.android.com/apk/res-auto"
  9990.     tools:context=".tablayout.TabLayoutHomeFragment">
  9991.     <com.google.android.material.tabs.TabLayout
  9992.         android:id="@+id/mytablayout2"
  9993.         android:layout_width="match_parent"
  9994.         android:layout_height="wrap_content"
  9995.         app:tabMode="auto"
  9996.         app:tabGravity="start"
  9997.         app:tabBackground="@color/pink"
  9998.         app:tabTextColor="@color/white"
  9999.         app:layout_constraintStart_toStartOf="parent"
  10000.         app:layout_constraintTop_toTopOf="parent"
  10001.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10002.         />
  10003.     <androidx.viewpager2.widget.ViewPager2
  10004.         android:id="@+id/myviepage2"
  10005.         android:layout_width="match_parent"
  10006.         android:layout_height="0dp"
  10007.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10008.         app:layout_constraintBottom_toBottomOf="parent"
  10009.         app:layout_constraintStart_toStartOf="parent"
  10010.         />
  10011. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  10012. <?xml version="1.0" encoding="utf-8"?>
  10013. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10014.     xmlns:tools="http://schemas.android.com/tools"
  10015.     android:layout_width="match_parent"
  10016.     android:layout_height="match_parent"
  10017.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10018.     tools:context=".tablayout.TabLayoutHomeFragment">
  10019.     <com.google.android.material.tabs.TabLayout
  10020.         android:id="@+id/mytablayout2"
  10021.         android:layout_width="match_parent"
  10022.         android:layout_height="wrap_content"
  10023.         app:tabMode="auto"
  10024.         app:tabGravity="start"
  10025.         app:tabBackground="@color/pink"
  10026.         app:tabTextColor="@color/white"
  10027.         app:layout_constraintStart_toStartOf="parent"
  10028.         app:layout_constraintTop_toTopOf="parent"
  10029.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10030.         />
  10031.     <androidx.viewpager2.widget.ViewPager2
  10032.         android:id="@+id/myviepage2"
  10033.         android:layout_width="match_parent"
  10034.         android:layout_height="0dp"
  10035.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10036.         app:layout_constraintBottom_toBottomOf="parent"
  10037.         app:layout_constraintStart_toStartOf="parent"
  10038.         />
  10039. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  10040.     <com.google.android.material.bottomnavigation.BottomNavigationView
  10041. <?xml version="1.0" encoding="utf-8"?>
  10042. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10043.     xmlns:tools="http://schemas.android.com/tools"
  10044.     android:layout_width="match_parent"
  10045.     android:layout_height="match_parent"
  10046.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10047.     tools:context=".tablayout.TabLayoutHomeFragment">
  10048.     <com.google.android.material.tabs.TabLayout
  10049.         android:id="@+id/mytablayout2"
  10050.         android:layout_width="match_parent"
  10051.         android:layout_height="wrap_content"
  10052.         app:tabMode="auto"
  10053.         app:tabGravity="start"
  10054.         app:tabBackground="@color/pink"
  10055.         app:tabTextColor="@color/white"
  10056.         app:layout_constraintStart_toStartOf="parent"
  10057.         app:layout_constraintTop_toTopOf="parent"
  10058.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10059.         />
  10060.     <androidx.viewpager2.widget.ViewPager2
  10061.         android:id="@+id/myviepage2"
  10062.         android:layout_width="match_parent"
  10063.         android:layout_height="0dp"
  10064.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10065.         app:layout_constraintBottom_toBottomOf="parent"
  10066.         app:layout_constraintStart_toStartOf="parent"
  10067.         />
  10068. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  10069. <?xml version="1.0" encoding="utf-8"?>
  10070. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10071.     xmlns:tools="http://schemas.android.com/tools"
  10072.     android:layout_width="match_parent"
  10073.     android:layout_height="match_parent"
  10074.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10075.     tools:context=".tablayout.TabLayoutHomeFragment">
  10076.     <com.google.android.material.tabs.TabLayout
  10077.         android:id="@+id/mytablayout2"
  10078.         android:layout_width="match_parent"
  10079.         android:layout_height="wrap_content"
  10080.         app:tabMode="auto"
  10081.         app:tabGravity="start"
  10082.         app:tabBackground="@color/pink"
  10083.         app:tabTextColor="@color/white"
  10084.         app:layout_constraintStart_toStartOf="parent"
  10085.         app:layout_constraintTop_toTopOf="parent"
  10086.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10087.         />
  10088.     <androidx.viewpager2.widget.ViewPager2
  10089.         android:id="@+id/myviepage2"
  10090.         android:layout_width="match_parent"
  10091.         android:layout_height="0dp"
  10092.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10093.         app:layout_constraintBottom_toBottomOf="parent"
  10094.         app:layout_constraintStart_toStartOf="parent"
  10095.         />
  10096. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  10097. <?xml version="1.0" encoding="utf-8"?>
  10098. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10099.     xmlns:tools="http://schemas.android.com/tools"
  10100.     android:layout_width="match_parent"
  10101.     android:layout_height="match_parent"
  10102.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10103.     tools:context=".tablayout.TabLayoutHomeFragment">
  10104.     <com.google.android.material.tabs.TabLayout
  10105.         android:id="@+id/mytablayout2"
  10106.         android:layout_width="match_parent"
  10107.         android:layout_height="wrap_content"
  10108.         app:tabMode="auto"
  10109.         app:tabGravity="start"
  10110.         app:tabBackground="@color/pink"
  10111.         app:tabTextColor="@color/white"
  10112.         app:layout_constraintStart_toStartOf="parent"
  10113.         app:layout_constraintTop_toTopOf="parent"
  10114.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10115.         />
  10116.     <androidx.viewpager2.widget.ViewPager2
  10117.         android:id="@+id/myviepage2"
  10118.         android:layout_width="match_parent"
  10119.         android:layout_height="0dp"
  10120.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10121.         app:layout_constraintBottom_toBottomOf="parent"
  10122.         app:layout_constraintStart_toStartOf="parent"
  10123.         />
  10124. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  10125. <?xml version="1.0" encoding="utf-8"?>
  10126. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10127.     xmlns:tools="http://schemas.android.com/tools"
  10128.     android:layout_width="match_parent"
  10129.     android:layout_height="match_parent"
  10130.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10131.     tools:context=".tablayout.TabLayoutHomeFragment">
  10132.     <com.google.android.material.tabs.TabLayout
  10133.         android:id="@+id/mytablayout2"
  10134.         android:layout_width="match_parent"
  10135.         android:layout_height="wrap_content"
  10136.         app:tabMode="auto"
  10137.         app:tabGravity="start"
  10138.         app:tabBackground="@color/pink"
  10139.         app:tabTextColor="@color/white"
  10140.         app:layout_constraintStart_toStartOf="parent"
  10141.         app:layout_constraintTop_toTopOf="parent"
  10142.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10143.         />
  10144.     <androidx.viewpager2.widget.ViewPager2
  10145.         android:id="@+id/myviepage2"
  10146.         android:layout_width="match_parent"
  10147.         android:layout_height="0dp"
  10148.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10149.         app:layout_constraintBottom_toBottomOf="parent"
  10150.         app:layout_constraintStart_toStartOf="parent"
  10151.         />
  10152. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  10153. <?xml version="1.0" encoding="utf-8"?>
  10154. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10155.     xmlns:tools="http://schemas.android.com/tools"
  10156.     android:layout_width="match_parent"
  10157.     android:layout_height="match_parent"
  10158.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10159.     tools:context=".tablayout.TabLayoutHomeFragment">
  10160.     <com.google.android.material.tabs.TabLayout
  10161.         android:id="@+id/mytablayout2"
  10162.         android:layout_width="match_parent"
  10163.         android:layout_height="wrap_content"
  10164.         app:tabMode="auto"
  10165.         app:tabGravity="start"
  10166.         app:tabBackground="@color/pink"
  10167.         app:tabTextColor="@color/white"
  10168.         app:layout_constraintStart_toStartOf="parent"
  10169.         app:layout_constraintTop_toTopOf="parent"
  10170.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10171.         />
  10172.     <androidx.viewpager2.widget.ViewPager2
  10173.         android:id="@+id/myviepage2"
  10174.         android:layout_width="match_parent"
  10175.         android:layout_height="0dp"
  10176.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10177.         app:layout_constraintBottom_toBottomOf="parent"
  10178.         app:layout_constraintStart_toStartOf="parent"
  10179.         />
  10180. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  10181. <?xml version="1.0" encoding="utf-8"?>
  10182. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10183.     xmlns:tools="http://schemas.android.com/tools"
  10184.     android:layout_width="match_parent"
  10185.     android:layout_height="match_parent"
  10186.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10187.     tools:context=".tablayout.TabLayoutHomeFragment">
  10188.     <com.google.android.material.tabs.TabLayout
  10189.         android:id="@+id/mytablayout2"
  10190.         android:layout_width="match_parent"
  10191.         android:layout_height="wrap_content"
  10192.         app:tabMode="auto"
  10193.         app:tabGravity="start"
  10194.         app:tabBackground="@color/pink"
  10195.         app:tabTextColor="@color/white"
  10196.         app:layout_constraintStart_toStartOf="parent"
  10197.         app:layout_constraintTop_toTopOf="parent"
  10198.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10199.         />
  10200.     <androidx.viewpager2.widget.ViewPager2
  10201.         android:id="@+id/myviepage2"
  10202.         android:layout_width="match_parent"
  10203.         android:layout_height="0dp"
  10204.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10205.         app:layout_constraintBottom_toBottomOf="parent"
  10206.         app:layout_constraintStart_toStartOf="parent"
  10207.         />
  10208. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  10209. <?xml version="1.0" encoding="utf-8"?>
  10210. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10211.     xmlns:tools="http://schemas.android.com/tools"
  10212.     android:layout_width="match_parent"
  10213.     android:layout_height="match_parent"
  10214.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10215.     tools:context=".tablayout.TabLayoutHomeFragment">
  10216.     <com.google.android.material.tabs.TabLayout
  10217.         android:id="@+id/mytablayout2"
  10218.         android:layout_width="match_parent"
  10219.         android:layout_height="wrap_content"
  10220.         app:tabMode="auto"
  10221.         app:tabGravity="start"
  10222.         app:tabBackground="@color/pink"
  10223.         app:tabTextColor="@color/white"
  10224.         app:layout_constraintStart_toStartOf="parent"
  10225.         app:layout_constraintTop_toTopOf="parent"
  10226.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10227.         />
  10228.     <androidx.viewpager2.widget.ViewPager2
  10229.         android:id="@+id/myviepage2"
  10230.         android:layout_width="match_parent"
  10231.         android:layout_height="0dp"
  10232.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10233.         app:layout_constraintBottom_toBottomOf="parent"
  10234.         app:layout_constraintStart_toStartOf="parent"
  10235.         />
  10236. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  10237. <?xml version="1.0" encoding="utf-8"?>
  10238. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10239.     xmlns:tools="http://schemas.android.com/tools"
  10240.     android:layout_width="match_parent"
  10241.     android:layout_height="match_parent"
  10242.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10243.     tools:context=".tablayout.TabLayoutHomeFragment">
  10244.     <com.google.android.material.tabs.TabLayout
  10245.         android:id="@+id/mytablayout2"
  10246.         android:layout_width="match_parent"
  10247.         android:layout_height="wrap_content"
  10248.         app:tabMode="auto"
  10249.         app:tabGravity="start"
  10250.         app:tabBackground="@color/pink"
  10251.         app:tabTextColor="@color/white"
  10252.         app:layout_constraintStart_toStartOf="parent"
  10253.         app:layout_constraintTop_toTopOf="parent"
  10254.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10255.         />
  10256.     <androidx.viewpager2.widget.ViewPager2
  10257.         android:id="@+id/myviepage2"
  10258.         android:layout_width="match_parent"
  10259.         android:layout_height="0dp"
  10260.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10261.         app:layout_constraintBottom_toBottomOf="parent"
  10262.         app:layout_constraintStart_toStartOf="parent"
  10263.         />
  10264. </androidx.constraintlayout.widget.ConstraintLayout>/>
  10265. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  10266. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10267.     xmlns:tools="http://schemas.android.com/tools"
  10268.     android:layout_width="match_parent"
  10269.     android:layout_height="match_parent"
  10270.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10271.     tools:context=".tablayout.TabLayoutHomeFragment">
  10272.     <com.google.android.material.tabs.TabLayout
  10273.         android:id="@+id/mytablayout2"
  10274.         android:layout_width="match_parent"
  10275.         android:layout_height="wrap_content"
  10276.         app:tabMode="auto"
  10277.         app:tabGravity="start"
  10278.         app:tabBackground="@color/pink"
  10279.         app:tabTextColor="@color/white"
  10280.         app:layout_constraintStart_toStartOf="parent"
  10281.         app:layout_constraintTop_toTopOf="parent"
  10282.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10283.         />
  10284.     <androidx.viewpager2.widget.ViewPager2
  10285.         android:id="@+id/myviepage2"
  10286.         android:layout_width="match_parent"
  10287.         android:layout_height="0dp"
  10288.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10289.         app:layout_constraintBottom_toBottomOf="parent"
  10290.         app:layout_constraintStart_toStartOf="parent"
  10291.         />
  10292. </androidx.constraintlayout.widget.ConstraintLayout>.replace(R.id.container_view, fragmentMap.get(R.id.add_item))<?xml version="1.0" encoding="utf-8"?>
  10293. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10294.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10295.     xmlns:tools="http://schemas.android.com/tools"
  10296.     android:layout_width="match_parent"
  10297.     android:layout_height="match_parent"
  10298.     tools:context=".ViewPager2TabLayoutActivity">
  10299.    
  10300.     <androidx.fragment.app.FragmentContainerView
  10301. <?xml version="1.0" encoding="utf-8"?>
  10302. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10303.     xmlns:tools="http://schemas.android.com/tools"
  10304.     android:layout_width="match_parent"
  10305.     android:layout_height="match_parent"
  10306.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10307.     tools:context=".tablayout.TabLayoutHomeFragment">
  10308.     <com.google.android.material.tabs.TabLayout
  10309.         android:id="@+id/mytablayout2"
  10310.         android:layout_width="match_parent"
  10311.         android:layout_height="wrap_content"
  10312.         app:tabMode="auto"
  10313.         app:tabGravity="start"
  10314.         app:tabBackground="@color/pink"
  10315.         app:tabTextColor="@color/white"
  10316.         app:layout_constraintStart_toStartOf="parent"
  10317.         app:layout_constraintTop_toTopOf="parent"
  10318.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10319.         />
  10320.     <androidx.viewpager2.widget.ViewPager2
  10321.         android:id="@+id/myviepage2"
  10322.         android:layout_width="match_parent"
  10323.         android:layout_height="0dp"
  10324.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10325.         app:layout_constraintBottom_toBottomOf="parent"
  10326.         app:layout_constraintStart_toStartOf="parent"
  10327.         />
  10328. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  10329. <?xml version="1.0" encoding="utf-8"?>
  10330. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10331.     xmlns:tools="http://schemas.android.com/tools"
  10332.     android:layout_width="match_parent"
  10333.     android:layout_height="match_parent"
  10334.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10335.     tools:context=".tablayout.TabLayoutHomeFragment">
  10336.     <com.google.android.material.tabs.TabLayout
  10337.         android:id="@+id/mytablayout2"
  10338.         android:layout_width="match_parent"
  10339.         android:layout_height="wrap_content"
  10340.         app:tabMode="auto"
  10341.         app:tabGravity="start"
  10342.         app:tabBackground="@color/pink"
  10343.         app:tabTextColor="@color/white"
  10344.         app:layout_constraintStart_toStartOf="parent"
  10345.         app:layout_constraintTop_toTopOf="parent"
  10346.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10347.         />
  10348.     <androidx.viewpager2.widget.ViewPager2
  10349.         android:id="@+id/myviepage2"
  10350.         android:layout_width="match_parent"
  10351.         android:layout_height="0dp"
  10352.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10353.         app:layout_constraintBottom_toBottomOf="parent"
  10354.         app:layout_constraintStart_toStartOf="parent"
  10355.         />
  10356. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  10357. <?xml version="1.0" encoding="utf-8"?>
  10358. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10359.     xmlns:tools="http://schemas.android.com/tools"
  10360.     android:layout_width="match_parent"
  10361.     android:layout_height="match_parent"
  10362.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10363.     tools:context=".tablayout.TabLayoutHomeFragment">
  10364.     <com.google.android.material.tabs.TabLayout
  10365.         android:id="@+id/mytablayout2"
  10366.         android:layout_width="match_parent"
  10367.         android:layout_height="wrap_content"
  10368.         app:tabMode="auto"
  10369.         app:tabGravity="start"
  10370.         app:tabBackground="@color/pink"
  10371.         app:tabTextColor="@color/white"
  10372.         app:layout_constraintStart_toStartOf="parent"
  10373.         app:layout_constraintTop_toTopOf="parent"
  10374.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10375.         />
  10376.     <androidx.viewpager2.widget.ViewPager2
  10377.         android:id="@+id/myviepage2"
  10378.         android:layout_width="match_parent"
  10379.         android:layout_height="0dp"
  10380.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10381.         app:layout_constraintBottom_toBottomOf="parent"
  10382.         app:layout_constraintStart_toStartOf="parent"
  10383.         />
  10384. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  10385. <?xml version="1.0" encoding="utf-8"?>
  10386. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10387.     xmlns:tools="http://schemas.android.com/tools"
  10388.     android:layout_width="match_parent"
  10389.     android:layout_height="match_parent"
  10390.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10391.     tools:context=".tablayout.TabLayoutHomeFragment">
  10392.     <com.google.android.material.tabs.TabLayout
  10393.         android:id="@+id/mytablayout2"
  10394.         android:layout_width="match_parent"
  10395.         android:layout_height="wrap_content"
  10396.         app:tabMode="auto"
  10397.         app:tabGravity="start"
  10398.         app:tabBackground="@color/pink"
  10399.         app:tabTextColor="@color/white"
  10400.         app:layout_constraintStart_toStartOf="parent"
  10401.         app:layout_constraintTop_toTopOf="parent"
  10402.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10403.         />
  10404.     <androidx.viewpager2.widget.ViewPager2
  10405.         android:id="@+id/myviepage2"
  10406.         android:layout_width="match_parent"
  10407.         android:layout_height="0dp"
  10408.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10409.         app:layout_constraintBottom_toBottomOf="parent"
  10410.         app:layout_constraintStart_toStartOf="parent"
  10411.         />
  10412. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  10413. <?xml version="1.0" encoding="utf-8"?>
  10414. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10415.     xmlns:tools="http://schemas.android.com/tools"
  10416.     android:layout_width="match_parent"
  10417.     android:layout_height="match_parent"
  10418.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10419.     tools:context=".tablayout.TabLayoutHomeFragment">
  10420.     <com.google.android.material.tabs.TabLayout
  10421.         android:id="@+id/mytablayout2"
  10422.         android:layout_width="match_parent"
  10423.         android:layout_height="wrap_content"
  10424.         app:tabMode="auto"
  10425.         app:tabGravity="start"
  10426.         app:tabBackground="@color/pink"
  10427.         app:tabTextColor="@color/white"
  10428.         app:layout_constraintStart_toStartOf="parent"
  10429.         app:layout_constraintTop_toTopOf="parent"
  10430.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10431.         />
  10432.     <androidx.viewpager2.widget.ViewPager2
  10433.         android:id="@+id/myviepage2"
  10434.         android:layout_width="match_parent"
  10435.         android:layout_height="0dp"
  10436.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10437.         app:layout_constraintBottom_toBottomOf="parent"
  10438.         app:layout_constraintStart_toStartOf="parent"
  10439.         />
  10440. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  10441.     <com.google.android.material.bottomnavigation.BottomNavigationView
  10442. <?xml version="1.0" encoding="utf-8"?>
  10443. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10444.     xmlns:tools="http://schemas.android.com/tools"
  10445.     android:layout_width="match_parent"
  10446.     android:layout_height="match_parent"
  10447.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10448.     tools:context=".tablayout.TabLayoutHomeFragment">
  10449.     <com.google.android.material.tabs.TabLayout
  10450.         android:id="@+id/mytablayout2"
  10451.         android:layout_width="match_parent"
  10452.         android:layout_height="wrap_content"
  10453.         app:tabMode="auto"
  10454.         app:tabGravity="start"
  10455.         app:tabBackground="@color/pink"
  10456.         app:tabTextColor="@color/white"
  10457.         app:layout_constraintStart_toStartOf="parent"
  10458.         app:layout_constraintTop_toTopOf="parent"
  10459.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10460.         />
  10461.     <androidx.viewpager2.widget.ViewPager2
  10462.         android:id="@+id/myviepage2"
  10463.         android:layout_width="match_parent"
  10464.         android:layout_height="0dp"
  10465.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10466.         app:layout_constraintBottom_toBottomOf="parent"
  10467.         app:layout_constraintStart_toStartOf="parent"
  10468.         />
  10469. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  10470. <?xml version="1.0" encoding="utf-8"?>
  10471. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10472.     xmlns:tools="http://schemas.android.com/tools"
  10473.     android:layout_width="match_parent"
  10474.     android:layout_height="match_parent"
  10475.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10476.     tools:context=".tablayout.TabLayoutHomeFragment">
  10477.     <com.google.android.material.tabs.TabLayout
  10478.         android:id="@+id/mytablayout2"
  10479.         android:layout_width="match_parent"
  10480.         android:layout_height="wrap_content"
  10481.         app:tabMode="auto"
  10482.         app:tabGravity="start"
  10483.         app:tabBackground="@color/pink"
  10484.         app:tabTextColor="@color/white"
  10485.         app:layout_constraintStart_toStartOf="parent"
  10486.         app:layout_constraintTop_toTopOf="parent"
  10487.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10488.         />
  10489.     <androidx.viewpager2.widget.ViewPager2
  10490.         android:id="@+id/myviepage2"
  10491.         android:layout_width="match_parent"
  10492.         android:layout_height="0dp"
  10493.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10494.         app:layout_constraintBottom_toBottomOf="parent"
  10495.         app:layout_constraintStart_toStartOf="parent"
  10496.         />
  10497. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  10498. <?xml version="1.0" encoding="utf-8"?>
  10499. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10500.     xmlns:tools="http://schemas.android.com/tools"
  10501.     android:layout_width="match_parent"
  10502.     android:layout_height="match_parent"
  10503.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10504.     tools:context=".tablayout.TabLayoutHomeFragment">
  10505.     <com.google.android.material.tabs.TabLayout
  10506.         android:id="@+id/mytablayout2"
  10507.         android:layout_width="match_parent"
  10508.         android:layout_height="wrap_content"
  10509.         app:tabMode="auto"
  10510.         app:tabGravity="start"
  10511.         app:tabBackground="@color/pink"
  10512.         app:tabTextColor="@color/white"
  10513.         app:layout_constraintStart_toStartOf="parent"
  10514.         app:layout_constraintTop_toTopOf="parent"
  10515.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10516.         />
  10517.     <androidx.viewpager2.widget.ViewPager2
  10518.         android:id="@+id/myviepage2"
  10519.         android:layout_width="match_parent"
  10520.         android:layout_height="0dp"
  10521.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10522.         app:layout_constraintBottom_toBottomOf="parent"
  10523.         app:layout_constraintStart_toStartOf="parent"
  10524.         />
  10525. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  10526. <?xml version="1.0" encoding="utf-8"?>
  10527. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10528.     xmlns:tools="http://schemas.android.com/tools"
  10529.     android:layout_width="match_parent"
  10530.     android:layout_height="match_parent"
  10531.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10532.     tools:context=".tablayout.TabLayoutHomeFragment">
  10533.     <com.google.android.material.tabs.TabLayout
  10534.         android:id="@+id/mytablayout2"
  10535.         android:layout_width="match_parent"
  10536.         android:layout_height="wrap_content"
  10537.         app:tabMode="auto"
  10538.         app:tabGravity="start"
  10539.         app:tabBackground="@color/pink"
  10540.         app:tabTextColor="@color/white"
  10541.         app:layout_constraintStart_toStartOf="parent"
  10542.         app:layout_constraintTop_toTopOf="parent"
  10543.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10544.         />
  10545.     <androidx.viewpager2.widget.ViewPager2
  10546.         android:id="@+id/myviepage2"
  10547.         android:layout_width="match_parent"
  10548.         android:layout_height="0dp"
  10549.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10550.         app:layout_constraintBottom_toBottomOf="parent"
  10551.         app:layout_constraintStart_toStartOf="parent"
  10552.         />
  10553. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  10554. <?xml version="1.0" encoding="utf-8"?>
  10555. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10556.     xmlns:tools="http://schemas.android.com/tools"
  10557.     android:layout_width="match_parent"
  10558.     android:layout_height="match_parent"
  10559.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10560.     tools:context=".tablayout.TabLayoutHomeFragment">
  10561.     <com.google.android.material.tabs.TabLayout
  10562.         android:id="@+id/mytablayout2"
  10563.         android:layout_width="match_parent"
  10564.         android:layout_height="wrap_content"
  10565.         app:tabMode="auto"
  10566.         app:tabGravity="start"
  10567.         app:tabBackground="@color/pink"
  10568.         app:tabTextColor="@color/white"
  10569.         app:layout_constraintStart_toStartOf="parent"
  10570.         app:layout_constraintTop_toTopOf="parent"
  10571.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10572.         />
  10573.     <androidx.viewpager2.widget.ViewPager2
  10574.         android:id="@+id/myviepage2"
  10575.         android:layout_width="match_parent"
  10576.         android:layout_height="0dp"
  10577.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10578.         app:layout_constraintBottom_toBottomOf="parent"
  10579.         app:layout_constraintStart_toStartOf="parent"
  10580.         />
  10581. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  10582. <?xml version="1.0" encoding="utf-8"?>
  10583. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10584.     xmlns:tools="http://schemas.android.com/tools"
  10585.     android:layout_width="match_parent"
  10586.     android:layout_height="match_parent"
  10587.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10588.     tools:context=".tablayout.TabLayoutHomeFragment">
  10589.     <com.google.android.material.tabs.TabLayout
  10590.         android:id="@+id/mytablayout2"
  10591.         android:layout_width="match_parent"
  10592.         android:layout_height="wrap_content"
  10593.         app:tabMode="auto"
  10594.         app:tabGravity="start"
  10595.         app:tabBackground="@color/pink"
  10596.         app:tabTextColor="@color/white"
  10597.         app:layout_constraintStart_toStartOf="parent"
  10598.         app:layout_constraintTop_toTopOf="parent"
  10599.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10600.         />
  10601.     <androidx.viewpager2.widget.ViewPager2
  10602.         android:id="@+id/myviepage2"
  10603.         android:layout_width="match_parent"
  10604.         android:layout_height="0dp"
  10605.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10606.         app:layout_constraintBottom_toBottomOf="parent"
  10607.         app:layout_constraintStart_toStartOf="parent"
  10608.         />
  10609. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  10610. <?xml version="1.0" encoding="utf-8"?>
  10611. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10612.     xmlns:tools="http://schemas.android.com/tools"
  10613.     android:layout_width="match_parent"
  10614.     android:layout_height="match_parent"
  10615.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10616.     tools:context=".tablayout.TabLayoutHomeFragment">
  10617.     <com.google.android.material.tabs.TabLayout
  10618.         android:id="@+id/mytablayout2"
  10619.         android:layout_width="match_parent"
  10620.         android:layout_height="wrap_content"
  10621.         app:tabMode="auto"
  10622.         app:tabGravity="start"
  10623.         app:tabBackground="@color/pink"
  10624.         app:tabTextColor="@color/white"
  10625.         app:layout_constraintStart_toStartOf="parent"
  10626.         app:layout_constraintTop_toTopOf="parent"
  10627.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10628.         />
  10629.     <androidx.viewpager2.widget.ViewPager2
  10630.         android:id="@+id/myviepage2"
  10631.         android:layout_width="match_parent"
  10632.         android:layout_height="0dp"
  10633.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10634.         app:layout_constraintBottom_toBottomOf="parent"
  10635.         app:layout_constraintStart_toStartOf="parent"
  10636.         />
  10637. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  10638. <?xml version="1.0" encoding="utf-8"?>
  10639. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10640.     xmlns:tools="http://schemas.android.com/tools"
  10641.     android:layout_width="match_parent"
  10642.     android:layout_height="match_parent"
  10643.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10644.     tools:context=".tablayout.TabLayoutHomeFragment">
  10645.     <com.google.android.material.tabs.TabLayout
  10646.         android:id="@+id/mytablayout2"
  10647.         android:layout_width="match_parent"
  10648.         android:layout_height="wrap_content"
  10649.         app:tabMode="auto"
  10650.         app:tabGravity="start"
  10651.         app:tabBackground="@color/pink"
  10652.         app:tabTextColor="@color/white"
  10653.         app:layout_constraintStart_toStartOf="parent"
  10654.         app:layout_constraintTop_toTopOf="parent"
  10655.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10656.         />
  10657.     <androidx.viewpager2.widget.ViewPager2
  10658.         android:id="@+id/myviepage2"
  10659.         android:layout_width="match_parent"
  10660.         android:layout_height="0dp"
  10661.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10662.         app:layout_constraintBottom_toBottomOf="parent"
  10663.         app:layout_constraintStart_toStartOf="parent"
  10664.         />
  10665. </androidx.constraintlayout.widget.ConstraintLayout>/>
  10666. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  10667. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10668.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10669.     xmlns:tools="http://schemas.android.com/tools"
  10670.     android:layout_width="match_parent"
  10671.     android:layout_height="match_parent"
  10672.     tools:context=".ViewPager2TabLayoutActivity">
  10673.    
  10674.     <androidx.fragment.app.FragmentContainerView
  10675. <?xml version="1.0" encoding="utf-8"?>
  10676. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10677.     xmlns:tools="http://schemas.android.com/tools"
  10678.     android:layout_width="match_parent"
  10679.     android:layout_height="match_parent"
  10680.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10681.     tools:context=".tablayout.TabLayoutHomeFragment">
  10682.     <com.google.android.material.tabs.TabLayout
  10683.         android:id="@+id/mytablayout2"
  10684.         android:layout_width="match_parent"
  10685.         android:layout_height="wrap_content"
  10686.         app:tabMode="auto"
  10687.         app:tabGravity="start"
  10688.         app:tabBackground="@color/pink"
  10689.         app:tabTextColor="@color/white"
  10690.         app:layout_constraintStart_toStartOf="parent"
  10691.         app:layout_constraintTop_toTopOf="parent"
  10692.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10693.         />
  10694.     <androidx.viewpager2.widget.ViewPager2
  10695.         android:id="@+id/myviepage2"
  10696.         android:layout_width="match_parent"
  10697.         android:layout_height="0dp"
  10698.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10699.         app:layout_constraintBottom_toBottomOf="parent"
  10700.         app:layout_constraintStart_toStartOf="parent"
  10701.         />
  10702. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  10703. <?xml version="1.0" encoding="utf-8"?>
  10704. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10705.     xmlns:tools="http://schemas.android.com/tools"
  10706.     android:layout_width="match_parent"
  10707.     android:layout_height="match_parent"
  10708.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10709.     tools:context=".tablayout.TabLayoutHomeFragment">
  10710.     <com.google.android.material.tabs.TabLayout
  10711.         android:id="@+id/mytablayout2"
  10712.         android:layout_width="match_parent"
  10713.         android:layout_height="wrap_content"
  10714.         app:tabMode="auto"
  10715.         app:tabGravity="start"
  10716.         app:tabBackground="@color/pink"
  10717.         app:tabTextColor="@color/white"
  10718.         app:layout_constraintStart_toStartOf="parent"
  10719.         app:layout_constraintTop_toTopOf="parent"
  10720.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10721.         />
  10722.     <androidx.viewpager2.widget.ViewPager2
  10723.         android:id="@+id/myviepage2"
  10724.         android:layout_width="match_parent"
  10725.         android:layout_height="0dp"
  10726.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10727.         app:layout_constraintBottom_toBottomOf="parent"
  10728.         app:layout_constraintStart_toStartOf="parent"
  10729.         />
  10730. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  10731. <?xml version="1.0" encoding="utf-8"?>
  10732. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10733.     xmlns:tools="http://schemas.android.com/tools"
  10734.     android:layout_width="match_parent"
  10735.     android:layout_height="match_parent"
  10736.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10737.     tools:context=".tablayout.TabLayoutHomeFragment">
  10738.     <com.google.android.material.tabs.TabLayout
  10739.         android:id="@+id/mytablayout2"
  10740.         android:layout_width="match_parent"
  10741.         android:layout_height="wrap_content"
  10742.         app:tabMode="auto"
  10743.         app:tabGravity="start"
  10744.         app:tabBackground="@color/pink"
  10745.         app:tabTextColor="@color/white"
  10746.         app:layout_constraintStart_toStartOf="parent"
  10747.         app:layout_constraintTop_toTopOf="parent"
  10748.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10749.         />
  10750.     <androidx.viewpager2.widget.ViewPager2
  10751.         android:id="@+id/myviepage2"
  10752.         android:layout_width="match_parent"
  10753.         android:layout_height="0dp"
  10754.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10755.         app:layout_constraintBottom_toBottomOf="parent"
  10756.         app:layout_constraintStart_toStartOf="parent"
  10757.         />
  10758. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  10759. <?xml version="1.0" encoding="utf-8"?>
  10760. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10761.     xmlns:tools="http://schemas.android.com/tools"
  10762.     android:layout_width="match_parent"
  10763.     android:layout_height="match_parent"
  10764.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10765.     tools:context=".tablayout.TabLayoutHomeFragment">
  10766.     <com.google.android.material.tabs.TabLayout
  10767.         android:id="@+id/mytablayout2"
  10768.         android:layout_width="match_parent"
  10769.         android:layout_height="wrap_content"
  10770.         app:tabMode="auto"
  10771.         app:tabGravity="start"
  10772.         app:tabBackground="@color/pink"
  10773.         app:tabTextColor="@color/white"
  10774.         app:layout_constraintStart_toStartOf="parent"
  10775.         app:layout_constraintTop_toTopOf="parent"
  10776.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10777.         />
  10778.     <androidx.viewpager2.widget.ViewPager2
  10779.         android:id="@+id/myviepage2"
  10780.         android:layout_width="match_parent"
  10781.         android:layout_height="0dp"
  10782.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10783.         app:layout_constraintBottom_toBottomOf="parent"
  10784.         app:layout_constraintStart_toStartOf="parent"
  10785.         />
  10786. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  10787. <?xml version="1.0" encoding="utf-8"?>
  10788. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10789.     xmlns:tools="http://schemas.android.com/tools"
  10790.     android:layout_width="match_parent"
  10791.     android:layout_height="match_parent"
  10792.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10793.     tools:context=".tablayout.TabLayoutHomeFragment">
  10794.     <com.google.android.material.tabs.TabLayout
  10795.         android:id="@+id/mytablayout2"
  10796.         android:layout_width="match_parent"
  10797.         android:layout_height="wrap_content"
  10798.         app:tabMode="auto"
  10799.         app:tabGravity="start"
  10800.         app:tabBackground="@color/pink"
  10801.         app:tabTextColor="@color/white"
  10802.         app:layout_constraintStart_toStartOf="parent"
  10803.         app:layout_constraintTop_toTopOf="parent"
  10804.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10805.         />
  10806.     <androidx.viewpager2.widget.ViewPager2
  10807.         android:id="@+id/myviepage2"
  10808.         android:layout_width="match_parent"
  10809.         android:layout_height="0dp"
  10810.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10811.         app:layout_constraintBottom_toBottomOf="parent"
  10812.         app:layout_constraintStart_toStartOf="parent"
  10813.         />
  10814. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  10815.     <com.google.android.material.bottomnavigation.BottomNavigationView
  10816. <?xml version="1.0" encoding="utf-8"?>
  10817. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10818.     xmlns:tools="http://schemas.android.com/tools"
  10819.     android:layout_width="match_parent"
  10820.     android:layout_height="match_parent"
  10821.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10822.     tools:context=".tablayout.TabLayoutHomeFragment">
  10823.     <com.google.android.material.tabs.TabLayout
  10824.         android:id="@+id/mytablayout2"
  10825.         android:layout_width="match_parent"
  10826.         android:layout_height="wrap_content"
  10827.         app:tabMode="auto"
  10828.         app:tabGravity="start"
  10829.         app:tabBackground="@color/pink"
  10830.         app:tabTextColor="@color/white"
  10831.         app:layout_constraintStart_toStartOf="parent"
  10832.         app:layout_constraintTop_toTopOf="parent"
  10833.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10834.         />
  10835.     <androidx.viewpager2.widget.ViewPager2
  10836.         android:id="@+id/myviepage2"
  10837.         android:layout_width="match_parent"
  10838.         android:layout_height="0dp"
  10839.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10840.         app:layout_constraintBottom_toBottomOf="parent"
  10841.         app:layout_constraintStart_toStartOf="parent"
  10842.         />
  10843. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  10844. <?xml version="1.0" encoding="utf-8"?>
  10845. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10846.     xmlns:tools="http://schemas.android.com/tools"
  10847.     android:layout_width="match_parent"
  10848.     android:layout_height="match_parent"
  10849.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10850.     tools:context=".tablayout.TabLayoutHomeFragment">
  10851.     <com.google.android.material.tabs.TabLayout
  10852.         android:id="@+id/mytablayout2"
  10853.         android:layout_width="match_parent"
  10854.         android:layout_height="wrap_content"
  10855.         app:tabMode="auto"
  10856.         app:tabGravity="start"
  10857.         app:tabBackground="@color/pink"
  10858.         app:tabTextColor="@color/white"
  10859.         app:layout_constraintStart_toStartOf="parent"
  10860.         app:layout_constraintTop_toTopOf="parent"
  10861.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10862.         />
  10863.     <androidx.viewpager2.widget.ViewPager2
  10864.         android:id="@+id/myviepage2"
  10865.         android:layout_width="match_parent"
  10866.         android:layout_height="0dp"
  10867.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10868.         app:layout_constraintBottom_toBottomOf="parent"
  10869.         app:layout_constraintStart_toStartOf="parent"
  10870.         />
  10871. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  10872. <?xml version="1.0" encoding="utf-8"?>
  10873. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10874.     xmlns:tools="http://schemas.android.com/tools"
  10875.     android:layout_width="match_parent"
  10876.     android:layout_height="match_parent"
  10877.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10878.     tools:context=".tablayout.TabLayoutHomeFragment">
  10879.     <com.google.android.material.tabs.TabLayout
  10880.         android:id="@+id/mytablayout2"
  10881.         android:layout_width="match_parent"
  10882.         android:layout_height="wrap_content"
  10883.         app:tabMode="auto"
  10884.         app:tabGravity="start"
  10885.         app:tabBackground="@color/pink"
  10886.         app:tabTextColor="@color/white"
  10887.         app:layout_constraintStart_toStartOf="parent"
  10888.         app:layout_constraintTop_toTopOf="parent"
  10889.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10890.         />
  10891.     <androidx.viewpager2.widget.ViewPager2
  10892.         android:id="@+id/myviepage2"
  10893.         android:layout_width="match_parent"
  10894.         android:layout_height="0dp"
  10895.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10896.         app:layout_constraintBottom_toBottomOf="parent"
  10897.         app:layout_constraintStart_toStartOf="parent"
  10898.         />
  10899. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  10900. <?xml version="1.0" encoding="utf-8"?>
  10901. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10902.     xmlns:tools="http://schemas.android.com/tools"
  10903.     android:layout_width="match_parent"
  10904.     android:layout_height="match_parent"
  10905.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10906.     tools:context=".tablayout.TabLayoutHomeFragment">
  10907.     <com.google.android.material.tabs.TabLayout
  10908.         android:id="@+id/mytablayout2"
  10909.         android:layout_width="match_parent"
  10910.         android:layout_height="wrap_content"
  10911.         app:tabMode="auto"
  10912.         app:tabGravity="start"
  10913.         app:tabBackground="@color/pink"
  10914.         app:tabTextColor="@color/white"
  10915.         app:layout_constraintStart_toStartOf="parent"
  10916.         app:layout_constraintTop_toTopOf="parent"
  10917.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10918.         />
  10919.     <androidx.viewpager2.widget.ViewPager2
  10920.         android:id="@+id/myviepage2"
  10921.         android:layout_width="match_parent"
  10922.         android:layout_height="0dp"
  10923.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10924.         app:layout_constraintBottom_toBottomOf="parent"
  10925.         app:layout_constraintStart_toStartOf="parent"
  10926.         />
  10927. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  10928. <?xml version="1.0" encoding="utf-8"?>
  10929. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10930.     xmlns:tools="http://schemas.android.com/tools"
  10931.     android:layout_width="match_parent"
  10932.     android:layout_height="match_parent"
  10933.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10934.     tools:context=".tablayout.TabLayoutHomeFragment">
  10935.     <com.google.android.material.tabs.TabLayout
  10936.         android:id="@+id/mytablayout2"
  10937.         android:layout_width="match_parent"
  10938.         android:layout_height="wrap_content"
  10939.         app:tabMode="auto"
  10940.         app:tabGravity="start"
  10941.         app:tabBackground="@color/pink"
  10942.         app:tabTextColor="@color/white"
  10943.         app:layout_constraintStart_toStartOf="parent"
  10944.         app:layout_constraintTop_toTopOf="parent"
  10945.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10946.         />
  10947.     <androidx.viewpager2.widget.ViewPager2
  10948.         android:id="@+id/myviepage2"
  10949.         android:layout_width="match_parent"
  10950.         android:layout_height="0dp"
  10951.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10952.         app:layout_constraintBottom_toBottomOf="parent"
  10953.         app:layout_constraintStart_toStartOf="parent"
  10954.         />
  10955. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  10956. <?xml version="1.0" encoding="utf-8"?>
  10957. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10958.     xmlns:tools="http://schemas.android.com/tools"
  10959.     android:layout_width="match_parent"
  10960.     android:layout_height="match_parent"
  10961.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10962.     tools:context=".tablayout.TabLayoutHomeFragment">
  10963.     <com.google.android.material.tabs.TabLayout
  10964.         android:id="@+id/mytablayout2"
  10965.         android:layout_width="match_parent"
  10966.         android:layout_height="wrap_content"
  10967.         app:tabMode="auto"
  10968.         app:tabGravity="start"
  10969.         app:tabBackground="@color/pink"
  10970.         app:tabTextColor="@color/white"
  10971.         app:layout_constraintStart_toStartOf="parent"
  10972.         app:layout_constraintTop_toTopOf="parent"
  10973.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  10974.         />
  10975.     <androidx.viewpager2.widget.ViewPager2
  10976.         android:id="@+id/myviepage2"
  10977.         android:layout_width="match_parent"
  10978.         android:layout_height="0dp"
  10979.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  10980.         app:layout_constraintBottom_toBottomOf="parent"
  10981.         app:layout_constraintStart_toStartOf="parent"
  10982.         />
  10983. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  10984. <?xml version="1.0" encoding="utf-8"?>
  10985. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10986.     xmlns:tools="http://schemas.android.com/tools"
  10987.     android:layout_width="match_parent"
  10988.     android:layout_height="match_parent"
  10989.     xmlns:app="http://schemas.android.com/apk/res-auto"
  10990.     tools:context=".tablayout.TabLayoutHomeFragment">
  10991.     <com.google.android.material.tabs.TabLayout
  10992.         android:id="@+id/mytablayout2"
  10993.         android:layout_width="match_parent"
  10994.         android:layout_height="wrap_content"
  10995.         app:tabMode="auto"
  10996.         app:tabGravity="start"
  10997.         app:tabBackground="@color/pink"
  10998.         app:tabTextColor="@color/white"
  10999.         app:layout_constraintStart_toStartOf="parent"
  11000.         app:layout_constraintTop_toTopOf="parent"
  11001.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11002.         />
  11003.     <androidx.viewpager2.widget.ViewPager2
  11004.         android:id="@+id/myviepage2"
  11005.         android:layout_width="match_parent"
  11006.         android:layout_height="0dp"
  11007.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11008.         app:layout_constraintBottom_toBottomOf="parent"
  11009.         app:layout_constraintStart_toStartOf="parent"
  11010.         />
  11011. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  11012. <?xml version="1.0" encoding="utf-8"?>
  11013. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11014.     xmlns:tools="http://schemas.android.com/tools"
  11015.     android:layout_width="match_parent"
  11016.     android:layout_height="match_parent"
  11017.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11018.     tools:context=".tablayout.TabLayoutHomeFragment">
  11019.     <com.google.android.material.tabs.TabLayout
  11020.         android:id="@+id/mytablayout2"
  11021.         android:layout_width="match_parent"
  11022.         android:layout_height="wrap_content"
  11023.         app:tabMode="auto"
  11024.         app:tabGravity="start"
  11025.         app:tabBackground="@color/pink"
  11026.         app:tabTextColor="@color/white"
  11027.         app:layout_constraintStart_toStartOf="parent"
  11028.         app:layout_constraintTop_toTopOf="parent"
  11029.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11030.         />
  11031.     <androidx.viewpager2.widget.ViewPager2
  11032.         android:id="@+id/myviepage2"
  11033.         android:layout_width="match_parent"
  11034.         android:layout_height="0dp"
  11035.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11036.         app:layout_constraintBottom_toBottomOf="parent"
  11037.         app:layout_constraintStart_toStartOf="parent"
  11038.         />
  11039. </androidx.constraintlayout.widget.ConstraintLayout>/>
  11040. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  11041. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11042.     xmlns:tools="http://schemas.android.com/tools"
  11043.     android:layout_width="match_parent"
  11044.     android:layout_height="match_parent"
  11045.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11046.     tools:context=".tablayout.TabLayoutHomeFragment">
  11047.     <com.google.android.material.tabs.TabLayout
  11048.         android:id="@+id/mytablayout2"
  11049.         android:layout_width="match_parent"
  11050.         android:layout_height="wrap_content"
  11051.         app:tabMode="auto"
  11052.         app:tabGravity="start"
  11053.         app:tabBackground="@color/pink"
  11054.         app:tabTextColor="@color/white"
  11055.         app:layout_constraintStart_toStartOf="parent"
  11056.         app:layout_constraintTop_toTopOf="parent"
  11057.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11058.         />
  11059.     <androidx.viewpager2.widget.ViewPager2
  11060.         android:id="@+id/myviepage2"
  11061.         android:layout_width="match_parent"
  11062.         android:layout_height="0dp"
  11063.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11064.         app:layout_constraintBottom_toBottomOf="parent"
  11065.         app:layout_constraintStart_toStartOf="parent"
  11066.         />
  11067. </androidx.constraintlayout.widget.ConstraintLayout>.commit();<?xml version="1.0" encoding="utf-8"?>
  11068. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11069.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11070.     xmlns:tools="http://schemas.android.com/tools"
  11071.     android:layout_width="match_parent"
  11072.     android:layout_height="match_parent"
  11073.     tools:context=".ViewPager2TabLayoutActivity">
  11074.    
  11075.     <androidx.fragment.app.FragmentContainerView
  11076. <?xml version="1.0" encoding="utf-8"?>
  11077. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11078.     xmlns:tools="http://schemas.android.com/tools"
  11079.     android:layout_width="match_parent"
  11080.     android:layout_height="match_parent"
  11081.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11082.     tools:context=".tablayout.TabLayoutHomeFragment">
  11083.     <com.google.android.material.tabs.TabLayout
  11084.         android:id="@+id/mytablayout2"
  11085.         android:layout_width="match_parent"
  11086.         android:layout_height="wrap_content"
  11087.         app:tabMode="auto"
  11088.         app:tabGravity="start"
  11089.         app:tabBackground="@color/pink"
  11090.         app:tabTextColor="@color/white"
  11091.         app:layout_constraintStart_toStartOf="parent"
  11092.         app:layout_constraintTop_toTopOf="parent"
  11093.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11094.         />
  11095.     <androidx.viewpager2.widget.ViewPager2
  11096.         android:id="@+id/myviepage2"
  11097.         android:layout_width="match_parent"
  11098.         android:layout_height="0dp"
  11099.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11100.         app:layout_constraintBottom_toBottomOf="parent"
  11101.         app:layout_constraintStart_toStartOf="parent"
  11102.         />
  11103. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  11104. <?xml version="1.0" encoding="utf-8"?>
  11105. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11106.     xmlns:tools="http://schemas.android.com/tools"
  11107.     android:layout_width="match_parent"
  11108.     android:layout_height="match_parent"
  11109.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11110.     tools:context=".tablayout.TabLayoutHomeFragment">
  11111.     <com.google.android.material.tabs.TabLayout
  11112.         android:id="@+id/mytablayout2"
  11113.         android:layout_width="match_parent"
  11114.         android:layout_height="wrap_content"
  11115.         app:tabMode="auto"
  11116.         app:tabGravity="start"
  11117.         app:tabBackground="@color/pink"
  11118.         app:tabTextColor="@color/white"
  11119.         app:layout_constraintStart_toStartOf="parent"
  11120.         app:layout_constraintTop_toTopOf="parent"
  11121.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11122.         />
  11123.     <androidx.viewpager2.widget.ViewPager2
  11124.         android:id="@+id/myviepage2"
  11125.         android:layout_width="match_parent"
  11126.         android:layout_height="0dp"
  11127.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11128.         app:layout_constraintBottom_toBottomOf="parent"
  11129.         app:layout_constraintStart_toStartOf="parent"
  11130.         />
  11131. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  11132. <?xml version="1.0" encoding="utf-8"?>
  11133. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11134.     xmlns:tools="http://schemas.android.com/tools"
  11135.     android:layout_width="match_parent"
  11136.     android:layout_height="match_parent"
  11137.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11138.     tools:context=".tablayout.TabLayoutHomeFragment">
  11139.     <com.google.android.material.tabs.TabLayout
  11140.         android:id="@+id/mytablayout2"
  11141.         android:layout_width="match_parent"
  11142.         android:layout_height="wrap_content"
  11143.         app:tabMode="auto"
  11144.         app:tabGravity="start"
  11145.         app:tabBackground="@color/pink"
  11146.         app:tabTextColor="@color/white"
  11147.         app:layout_constraintStart_toStartOf="parent"
  11148.         app:layout_constraintTop_toTopOf="parent"
  11149.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11150.         />
  11151.     <androidx.viewpager2.widget.ViewPager2
  11152.         android:id="@+id/myviepage2"
  11153.         android:layout_width="match_parent"
  11154.         android:layout_height="0dp"
  11155.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11156.         app:layout_constraintBottom_toBottomOf="parent"
  11157.         app:layout_constraintStart_toStartOf="parent"
  11158.         />
  11159. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  11160. <?xml version="1.0" encoding="utf-8"?>
  11161. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11162.     xmlns:tools="http://schemas.android.com/tools"
  11163.     android:layout_width="match_parent"
  11164.     android:layout_height="match_parent"
  11165.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11166.     tools:context=".tablayout.TabLayoutHomeFragment">
  11167.     <com.google.android.material.tabs.TabLayout
  11168.         android:id="@+id/mytablayout2"
  11169.         android:layout_width="match_parent"
  11170.         android:layout_height="wrap_content"
  11171.         app:tabMode="auto"
  11172.         app:tabGravity="start"
  11173.         app:tabBackground="@color/pink"
  11174.         app:tabTextColor="@color/white"
  11175.         app:layout_constraintStart_toStartOf="parent"
  11176.         app:layout_constraintTop_toTopOf="parent"
  11177.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11178.         />
  11179.     <androidx.viewpager2.widget.ViewPager2
  11180.         android:id="@+id/myviepage2"
  11181.         android:layout_width="match_parent"
  11182.         android:layout_height="0dp"
  11183.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11184.         app:layout_constraintBottom_toBottomOf="parent"
  11185.         app:layout_constraintStart_toStartOf="parent"
  11186.         />
  11187. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  11188. <?xml version="1.0" encoding="utf-8"?>
  11189. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11190.     xmlns:tools="http://schemas.android.com/tools"
  11191.     android:layout_width="match_parent"
  11192.     android:layout_height="match_parent"
  11193.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11194.     tools:context=".tablayout.TabLayoutHomeFragment">
  11195.     <com.google.android.material.tabs.TabLayout
  11196.         android:id="@+id/mytablayout2"
  11197.         android:layout_width="match_parent"
  11198.         android:layout_height="wrap_content"
  11199.         app:tabMode="auto"
  11200.         app:tabGravity="start"
  11201.         app:tabBackground="@color/pink"
  11202.         app:tabTextColor="@color/white"
  11203.         app:layout_constraintStart_toStartOf="parent"
  11204.         app:layout_constraintTop_toTopOf="parent"
  11205.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11206.         />
  11207.     <androidx.viewpager2.widget.ViewPager2
  11208.         android:id="@+id/myviepage2"
  11209.         android:layout_width="match_parent"
  11210.         android:layout_height="0dp"
  11211.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11212.         app:layout_constraintBottom_toBottomOf="parent"
  11213.         app:layout_constraintStart_toStartOf="parent"
  11214.         />
  11215. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  11216.     <com.google.android.material.bottomnavigation.BottomNavigationView
  11217. <?xml version="1.0" encoding="utf-8"?>
  11218. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11219.     xmlns:tools="http://schemas.android.com/tools"
  11220.     android:layout_width="match_parent"
  11221.     android:layout_height="match_parent"
  11222.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11223.     tools:context=".tablayout.TabLayoutHomeFragment">
  11224.     <com.google.android.material.tabs.TabLayout
  11225.         android:id="@+id/mytablayout2"
  11226.         android:layout_width="match_parent"
  11227.         android:layout_height="wrap_content"
  11228.         app:tabMode="auto"
  11229.         app:tabGravity="start"
  11230.         app:tabBackground="@color/pink"
  11231.         app:tabTextColor="@color/white"
  11232.         app:layout_constraintStart_toStartOf="parent"
  11233.         app:layout_constraintTop_toTopOf="parent"
  11234.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11235.         />
  11236.     <androidx.viewpager2.widget.ViewPager2
  11237.         android:id="@+id/myviepage2"
  11238.         android:layout_width="match_parent"
  11239.         android:layout_height="0dp"
  11240.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11241.         app:layout_constraintBottom_toBottomOf="parent"
  11242.         app:layout_constraintStart_toStartOf="parent"
  11243.         />
  11244. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  11245. <?xml version="1.0" encoding="utf-8"?>
  11246. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11247.     xmlns:tools="http://schemas.android.com/tools"
  11248.     android:layout_width="match_parent"
  11249.     android:layout_height="match_parent"
  11250.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11251.     tools:context=".tablayout.TabLayoutHomeFragment">
  11252.     <com.google.android.material.tabs.TabLayout
  11253.         android:id="@+id/mytablayout2"
  11254.         android:layout_width="match_parent"
  11255.         android:layout_height="wrap_content"
  11256.         app:tabMode="auto"
  11257.         app:tabGravity="start"
  11258.         app:tabBackground="@color/pink"
  11259.         app:tabTextColor="@color/white"
  11260.         app:layout_constraintStart_toStartOf="parent"
  11261.         app:layout_constraintTop_toTopOf="parent"
  11262.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11263.         />
  11264.     <androidx.viewpager2.widget.ViewPager2
  11265.         android:id="@+id/myviepage2"
  11266.         android:layout_width="match_parent"
  11267.         android:layout_height="0dp"
  11268.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11269.         app:layout_constraintBottom_toBottomOf="parent"
  11270.         app:layout_constraintStart_toStartOf="parent"
  11271.         />
  11272. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  11273. <?xml version="1.0" encoding="utf-8"?>
  11274. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11275.     xmlns:tools="http://schemas.android.com/tools"
  11276.     android:layout_width="match_parent"
  11277.     android:layout_height="match_parent"
  11278.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11279.     tools:context=".tablayout.TabLayoutHomeFragment">
  11280.     <com.google.android.material.tabs.TabLayout
  11281.         android:id="@+id/mytablayout2"
  11282.         android:layout_width="match_parent"
  11283.         android:layout_height="wrap_content"
  11284.         app:tabMode="auto"
  11285.         app:tabGravity="start"
  11286.         app:tabBackground="@color/pink"
  11287.         app:tabTextColor="@color/white"
  11288.         app:layout_constraintStart_toStartOf="parent"
  11289.         app:layout_constraintTop_toTopOf="parent"
  11290.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11291.         />
  11292.     <androidx.viewpager2.widget.ViewPager2
  11293.         android:id="@+id/myviepage2"
  11294.         android:layout_width="match_parent"
  11295.         android:layout_height="0dp"
  11296.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11297.         app:layout_constraintBottom_toBottomOf="parent"
  11298.         app:layout_constraintStart_toStartOf="parent"
  11299.         />
  11300. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  11301. <?xml version="1.0" encoding="utf-8"?>
  11302. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11303.     xmlns:tools="http://schemas.android.com/tools"
  11304.     android:layout_width="match_parent"
  11305.     android:layout_height="match_parent"
  11306.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11307.     tools:context=".tablayout.TabLayoutHomeFragment">
  11308.     <com.google.android.material.tabs.TabLayout
  11309.         android:id="@+id/mytablayout2"
  11310.         android:layout_width="match_parent"
  11311.         android:layout_height="wrap_content"
  11312.         app:tabMode="auto"
  11313.         app:tabGravity="start"
  11314.         app:tabBackground="@color/pink"
  11315.         app:tabTextColor="@color/white"
  11316.         app:layout_constraintStart_toStartOf="parent"
  11317.         app:layout_constraintTop_toTopOf="parent"
  11318.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11319.         />
  11320.     <androidx.viewpager2.widget.ViewPager2
  11321.         android:id="@+id/myviepage2"
  11322.         android:layout_width="match_parent"
  11323.         android:layout_height="0dp"
  11324.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11325.         app:layout_constraintBottom_toBottomOf="parent"
  11326.         app:layout_constraintStart_toStartOf="parent"
  11327.         />
  11328. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  11329. <?xml version="1.0" encoding="utf-8"?>
  11330. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11331.     xmlns:tools="http://schemas.android.com/tools"
  11332.     android:layout_width="match_parent"
  11333.     android:layout_height="match_parent"
  11334.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11335.     tools:context=".tablayout.TabLayoutHomeFragment">
  11336.     <com.google.android.material.tabs.TabLayout
  11337.         android:id="@+id/mytablayout2"
  11338.         android:layout_width="match_parent"
  11339.         android:layout_height="wrap_content"
  11340.         app:tabMode="auto"
  11341.         app:tabGravity="start"
  11342.         app:tabBackground="@color/pink"
  11343.         app:tabTextColor="@color/white"
  11344.         app:layout_constraintStart_toStartOf="parent"
  11345.         app:layout_constraintTop_toTopOf="parent"
  11346.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11347.         />
  11348.     <androidx.viewpager2.widget.ViewPager2
  11349.         android:id="@+id/myviepage2"
  11350.         android:layout_width="match_parent"
  11351.         android:layout_height="0dp"
  11352.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11353.         app:layout_constraintBottom_toBottomOf="parent"
  11354.         app:layout_constraintStart_toStartOf="parent"
  11355.         />
  11356. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  11357. <?xml version="1.0" encoding="utf-8"?>
  11358. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11359.     xmlns:tools="http://schemas.android.com/tools"
  11360.     android:layout_width="match_parent"
  11361.     android:layout_height="match_parent"
  11362.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11363.     tools:context=".tablayout.TabLayoutHomeFragment">
  11364.     <com.google.android.material.tabs.TabLayout
  11365.         android:id="@+id/mytablayout2"
  11366.         android:layout_width="match_parent"
  11367.         android:layout_height="wrap_content"
  11368.         app:tabMode="auto"
  11369.         app:tabGravity="start"
  11370.         app:tabBackground="@color/pink"
  11371.         app:tabTextColor="@color/white"
  11372.         app:layout_constraintStart_toStartOf="parent"
  11373.         app:layout_constraintTop_toTopOf="parent"
  11374.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11375.         />
  11376.     <androidx.viewpager2.widget.ViewPager2
  11377.         android:id="@+id/myviepage2"
  11378.         android:layout_width="match_parent"
  11379.         android:layout_height="0dp"
  11380.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11381.         app:layout_constraintBottom_toBottomOf="parent"
  11382.         app:layout_constraintStart_toStartOf="parent"
  11383.         />
  11384. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  11385. <?xml version="1.0" encoding="utf-8"?>
  11386. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11387.     xmlns:tools="http://schemas.android.com/tools"
  11388.     android:layout_width="match_parent"
  11389.     android:layout_height="match_parent"
  11390.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11391.     tools:context=".tablayout.TabLayoutHomeFragment">
  11392.     <com.google.android.material.tabs.TabLayout
  11393.         android:id="@+id/mytablayout2"
  11394.         android:layout_width="match_parent"
  11395.         android:layout_height="wrap_content"
  11396.         app:tabMode="auto"
  11397.         app:tabGravity="start"
  11398.         app:tabBackground="@color/pink"
  11399.         app:tabTextColor="@color/white"
  11400.         app:layout_constraintStart_toStartOf="parent"
  11401.         app:layout_constraintTop_toTopOf="parent"
  11402.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11403.         />
  11404.     <androidx.viewpager2.widget.ViewPager2
  11405.         android:id="@+id/myviepage2"
  11406.         android:layout_width="match_parent"
  11407.         android:layout_height="0dp"
  11408.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11409.         app:layout_constraintBottom_toBottomOf="parent"
  11410.         app:layout_constraintStart_toStartOf="parent"
  11411.         />
  11412. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  11413. <?xml version="1.0" encoding="utf-8"?>
  11414. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11415.     xmlns:tools="http://schemas.android.com/tools"
  11416.     android:layout_width="match_parent"
  11417.     android:layout_height="match_parent"
  11418.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11419.     tools:context=".tablayout.TabLayoutHomeFragment">
  11420.     <com.google.android.material.tabs.TabLayout
  11421.         android:id="@+id/mytablayout2"
  11422.         android:layout_width="match_parent"
  11423.         android:layout_height="wrap_content"
  11424.         app:tabMode="auto"
  11425.         app:tabGravity="start"
  11426.         app:tabBackground="@color/pink"
  11427.         app:tabTextColor="@color/white"
  11428.         app:layout_constraintStart_toStartOf="parent"
  11429.         app:layout_constraintTop_toTopOf="parent"
  11430.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11431.         />
  11432.     <androidx.viewpager2.widget.ViewPager2
  11433.         android:id="@+id/myviepage2"
  11434.         android:layout_width="match_parent"
  11435.         android:layout_height="0dp"
  11436.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11437.         app:layout_constraintBottom_toBottomOf="parent"
  11438.         app:layout_constraintStart_toStartOf="parent"
  11439.         />
  11440. </androidx.constraintlayout.widget.ConstraintLayout>/>
  11441. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  11442. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11443.     xmlns:tools="http://schemas.android.com/tools"
  11444.     android:layout_width="match_parent"
  11445.     android:layout_height="match_parent"
  11446.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11447.     tools:context=".tablayout.TabLayoutHomeFragment">
  11448.     <com.google.android.material.tabs.TabLayout
  11449.         android:id="@+id/mytablayout2"
  11450.         android:layout_width="match_parent"
  11451.         android:layout_height="wrap_content"
  11452.         app:tabMode="auto"
  11453.         app:tabGravity="start"
  11454.         app:tabBackground="@color/pink"
  11455.         app:tabTextColor="@color/white"
  11456.         app:layout_constraintStart_toStartOf="parent"
  11457.         app:layout_constraintTop_toTopOf="parent"
  11458.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11459.         />
  11460.     <androidx.viewpager2.widget.ViewPager2
  11461.         android:id="@+id/myviepage2"
  11462.         android:layout_width="match_parent"
  11463.         android:layout_height="0dp"
  11464.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11465.         app:layout_constraintBottom_toBottomOf="parent"
  11466.         app:layout_constraintStart_toStartOf="parent"
  11467.         />
  11468. </androidx.constraintlayout.widget.ConstraintLayout>case R.id.setting_item:<?xml version="1.0" encoding="utf-8"?>
  11469. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11470.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11471.     xmlns:tools="http://schemas.android.com/tools"
  11472.     android:layout_width="match_parent"
  11473.     android:layout_height="match_parent"
  11474.     tools:context=".ViewPager2TabLayoutActivity">
  11475.    
  11476.     <androidx.fragment.app.FragmentContainerView
  11477. <?xml version="1.0" encoding="utf-8"?>
  11478. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11479.     xmlns:tools="http://schemas.android.com/tools"
  11480.     android:layout_width="match_parent"
  11481.     android:layout_height="match_parent"
  11482.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11483.     tools:context=".tablayout.TabLayoutHomeFragment">
  11484.     <com.google.android.material.tabs.TabLayout
  11485.         android:id="@+id/mytablayout2"
  11486.         android:layout_width="match_parent"
  11487.         android:layout_height="wrap_content"
  11488.         app:tabMode="auto"
  11489.         app:tabGravity="start"
  11490.         app:tabBackground="@color/pink"
  11491.         app:tabTextColor="@color/white"
  11492.         app:layout_constraintStart_toStartOf="parent"
  11493.         app:layout_constraintTop_toTopOf="parent"
  11494.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11495.         />
  11496.     <androidx.viewpager2.widget.ViewPager2
  11497.         android:id="@+id/myviepage2"
  11498.         android:layout_width="match_parent"
  11499.         android:layout_height="0dp"
  11500.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11501.         app:layout_constraintBottom_toBottomOf="parent"
  11502.         app:layout_constraintStart_toStartOf="parent"
  11503.         />
  11504. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  11505. <?xml version="1.0" encoding="utf-8"?>
  11506. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11507.     xmlns:tools="http://schemas.android.com/tools"
  11508.     android:layout_width="match_parent"
  11509.     android:layout_height="match_parent"
  11510.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11511.     tools:context=".tablayout.TabLayoutHomeFragment">
  11512.     <com.google.android.material.tabs.TabLayout
  11513.         android:id="@+id/mytablayout2"
  11514.         android:layout_width="match_parent"
  11515.         android:layout_height="wrap_content"
  11516.         app:tabMode="auto"
  11517.         app:tabGravity="start"
  11518.         app:tabBackground="@color/pink"
  11519.         app:tabTextColor="@color/white"
  11520.         app:layout_constraintStart_toStartOf="parent"
  11521.         app:layout_constraintTop_toTopOf="parent"
  11522.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11523.         />
  11524.     <androidx.viewpager2.widget.ViewPager2
  11525.         android:id="@+id/myviepage2"
  11526.         android:layout_width="match_parent"
  11527.         android:layout_height="0dp"
  11528.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11529.         app:layout_constraintBottom_toBottomOf="parent"
  11530.         app:layout_constraintStart_toStartOf="parent"
  11531.         />
  11532. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  11533. <?xml version="1.0" encoding="utf-8"?>
  11534. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11535.     xmlns:tools="http://schemas.android.com/tools"
  11536.     android:layout_width="match_parent"
  11537.     android:layout_height="match_parent"
  11538.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11539.     tools:context=".tablayout.TabLayoutHomeFragment">
  11540.     <com.google.android.material.tabs.TabLayout
  11541.         android:id="@+id/mytablayout2"
  11542.         android:layout_width="match_parent"
  11543.         android:layout_height="wrap_content"
  11544.         app:tabMode="auto"
  11545.         app:tabGravity="start"
  11546.         app:tabBackground="@color/pink"
  11547.         app:tabTextColor="@color/white"
  11548.         app:layout_constraintStart_toStartOf="parent"
  11549.         app:layout_constraintTop_toTopOf="parent"
  11550.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11551.         />
  11552.     <androidx.viewpager2.widget.ViewPager2
  11553.         android:id="@+id/myviepage2"
  11554.         android:layout_width="match_parent"
  11555.         android:layout_height="0dp"
  11556.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11557.         app:layout_constraintBottom_toBottomOf="parent"
  11558.         app:layout_constraintStart_toStartOf="parent"
  11559.         />
  11560. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  11561. <?xml version="1.0" encoding="utf-8"?>
  11562. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11563.     xmlns:tools="http://schemas.android.com/tools"
  11564.     android:layout_width="match_parent"
  11565.     android:layout_height="match_parent"
  11566.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11567.     tools:context=".tablayout.TabLayoutHomeFragment">
  11568.     <com.google.android.material.tabs.TabLayout
  11569.         android:id="@+id/mytablayout2"
  11570.         android:layout_width="match_parent"
  11571.         android:layout_height="wrap_content"
  11572.         app:tabMode="auto"
  11573.         app:tabGravity="start"
  11574.         app:tabBackground="@color/pink"
  11575.         app:tabTextColor="@color/white"
  11576.         app:layout_constraintStart_toStartOf="parent"
  11577.         app:layout_constraintTop_toTopOf="parent"
  11578.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11579.         />
  11580.     <androidx.viewpager2.widget.ViewPager2
  11581.         android:id="@+id/myviepage2"
  11582.         android:layout_width="match_parent"
  11583.         android:layout_height="0dp"
  11584.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11585.         app:layout_constraintBottom_toBottomOf="parent"
  11586.         app:layout_constraintStart_toStartOf="parent"
  11587.         />
  11588. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  11589. <?xml version="1.0" encoding="utf-8"?>
  11590. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11591.     xmlns:tools="http://schemas.android.com/tools"
  11592.     android:layout_width="match_parent"
  11593.     android:layout_height="match_parent"
  11594.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11595.     tools:context=".tablayout.TabLayoutHomeFragment">
  11596.     <com.google.android.material.tabs.TabLayout
  11597.         android:id="@+id/mytablayout2"
  11598.         android:layout_width="match_parent"
  11599.         android:layout_height="wrap_content"
  11600.         app:tabMode="auto"
  11601.         app:tabGravity="start"
  11602.         app:tabBackground="@color/pink"
  11603.         app:tabTextColor="@color/white"
  11604.         app:layout_constraintStart_toStartOf="parent"
  11605.         app:layout_constraintTop_toTopOf="parent"
  11606.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11607.         />
  11608.     <androidx.viewpager2.widget.ViewPager2
  11609.         android:id="@+id/myviepage2"
  11610.         android:layout_width="match_parent"
  11611.         android:layout_height="0dp"
  11612.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11613.         app:layout_constraintBottom_toBottomOf="parent"
  11614.         app:layout_constraintStart_toStartOf="parent"
  11615.         />
  11616. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  11617.     <com.google.android.material.bottomnavigation.BottomNavigationView
  11618. <?xml version="1.0" encoding="utf-8"?>
  11619. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11620.     xmlns:tools="http://schemas.android.com/tools"
  11621.     android:layout_width="match_parent"
  11622.     android:layout_height="match_parent"
  11623.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11624.     tools:context=".tablayout.TabLayoutHomeFragment">
  11625.     <com.google.android.material.tabs.TabLayout
  11626.         android:id="@+id/mytablayout2"
  11627.         android:layout_width="match_parent"
  11628.         android:layout_height="wrap_content"
  11629.         app:tabMode="auto"
  11630.         app:tabGravity="start"
  11631.         app:tabBackground="@color/pink"
  11632.         app:tabTextColor="@color/white"
  11633.         app:layout_constraintStart_toStartOf="parent"
  11634.         app:layout_constraintTop_toTopOf="parent"
  11635.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11636.         />
  11637.     <androidx.viewpager2.widget.ViewPager2
  11638.         android:id="@+id/myviepage2"
  11639.         android:layout_width="match_parent"
  11640.         android:layout_height="0dp"
  11641.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11642.         app:layout_constraintBottom_toBottomOf="parent"
  11643.         app:layout_constraintStart_toStartOf="parent"
  11644.         />
  11645. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  11646. <?xml version="1.0" encoding="utf-8"?>
  11647. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11648.     xmlns:tools="http://schemas.android.com/tools"
  11649.     android:layout_width="match_parent"
  11650.     android:layout_height="match_parent"
  11651.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11652.     tools:context=".tablayout.TabLayoutHomeFragment">
  11653.     <com.google.android.material.tabs.TabLayout
  11654.         android:id="@+id/mytablayout2"
  11655.         android:layout_width="match_parent"
  11656.         android:layout_height="wrap_content"
  11657.         app:tabMode="auto"
  11658.         app:tabGravity="start"
  11659.         app:tabBackground="@color/pink"
  11660.         app:tabTextColor="@color/white"
  11661.         app:layout_constraintStart_toStartOf="parent"
  11662.         app:layout_constraintTop_toTopOf="parent"
  11663.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11664.         />
  11665.     <androidx.viewpager2.widget.ViewPager2
  11666.         android:id="@+id/myviepage2"
  11667.         android:layout_width="match_parent"
  11668.         android:layout_height="0dp"
  11669.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11670.         app:layout_constraintBottom_toBottomOf="parent"
  11671.         app:layout_constraintStart_toStartOf="parent"
  11672.         />
  11673. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  11674. <?xml version="1.0" encoding="utf-8"?>
  11675. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11676.     xmlns:tools="http://schemas.android.com/tools"
  11677.     android:layout_width="match_parent"
  11678.     android:layout_height="match_parent"
  11679.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11680.     tools:context=".tablayout.TabLayoutHomeFragment">
  11681.     <com.google.android.material.tabs.TabLayout
  11682.         android:id="@+id/mytablayout2"
  11683.         android:layout_width="match_parent"
  11684.         android:layout_height="wrap_content"
  11685.         app:tabMode="auto"
  11686.         app:tabGravity="start"
  11687.         app:tabBackground="@color/pink"
  11688.         app:tabTextColor="@color/white"
  11689.         app:layout_constraintStart_toStartOf="parent"
  11690.         app:layout_constraintTop_toTopOf="parent"
  11691.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11692.         />
  11693.     <androidx.viewpager2.widget.ViewPager2
  11694.         android:id="@+id/myviepage2"
  11695.         android:layout_width="match_parent"
  11696.         android:layout_height="0dp"
  11697.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11698.         app:layout_constraintBottom_toBottomOf="parent"
  11699.         app:layout_constraintStart_toStartOf="parent"
  11700.         />
  11701. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  11702. <?xml version="1.0" encoding="utf-8"?>
  11703. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11704.     xmlns:tools="http://schemas.android.com/tools"
  11705.     android:layout_width="match_parent"
  11706.     android:layout_height="match_parent"
  11707.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11708.     tools:context=".tablayout.TabLayoutHomeFragment">
  11709.     <com.google.android.material.tabs.TabLayout
  11710.         android:id="@+id/mytablayout2"
  11711.         android:layout_width="match_parent"
  11712.         android:layout_height="wrap_content"
  11713.         app:tabMode="auto"
  11714.         app:tabGravity="start"
  11715.         app:tabBackground="@color/pink"
  11716.         app:tabTextColor="@color/white"
  11717.         app:layout_constraintStart_toStartOf="parent"
  11718.         app:layout_constraintTop_toTopOf="parent"
  11719.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11720.         />
  11721.     <androidx.viewpager2.widget.ViewPager2
  11722.         android:id="@+id/myviepage2"
  11723.         android:layout_width="match_parent"
  11724.         android:layout_height="0dp"
  11725.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11726.         app:layout_constraintBottom_toBottomOf="parent"
  11727.         app:layout_constraintStart_toStartOf="parent"
  11728.         />
  11729. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  11730. <?xml version="1.0" encoding="utf-8"?>
  11731. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11732.     xmlns:tools="http://schemas.android.com/tools"
  11733.     android:layout_width="match_parent"
  11734.     android:layout_height="match_parent"
  11735.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11736.     tools:context=".tablayout.TabLayoutHomeFragment">
  11737.     <com.google.android.material.tabs.TabLayout
  11738.         android:id="@+id/mytablayout2"
  11739.         android:layout_width="match_parent"
  11740.         android:layout_height="wrap_content"
  11741.         app:tabMode="auto"
  11742.         app:tabGravity="start"
  11743.         app:tabBackground="@color/pink"
  11744.         app:tabTextColor="@color/white"
  11745.         app:layout_constraintStart_toStartOf="parent"
  11746.         app:layout_constraintTop_toTopOf="parent"
  11747.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11748.         />
  11749.     <androidx.viewpager2.widget.ViewPager2
  11750.         android:id="@+id/myviepage2"
  11751.         android:layout_width="match_parent"
  11752.         android:layout_height="0dp"
  11753.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11754.         app:layout_constraintBottom_toBottomOf="parent"
  11755.         app:layout_constraintStart_toStartOf="parent"
  11756.         />
  11757. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  11758. <?xml version="1.0" encoding="utf-8"?>
  11759. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11760.     xmlns:tools="http://schemas.android.com/tools"
  11761.     android:layout_width="match_parent"
  11762.     android:layout_height="match_parent"
  11763.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11764.     tools:context=".tablayout.TabLayoutHomeFragment">
  11765.     <com.google.android.material.tabs.TabLayout
  11766.         android:id="@+id/mytablayout2"
  11767.         android:layout_width="match_parent"
  11768.         android:layout_height="wrap_content"
  11769.         app:tabMode="auto"
  11770.         app:tabGravity="start"
  11771.         app:tabBackground="@color/pink"
  11772.         app:tabTextColor="@color/white"
  11773.         app:layout_constraintStart_toStartOf="parent"
  11774.         app:layout_constraintTop_toTopOf="parent"
  11775.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11776.         />
  11777.     <androidx.viewpager2.widget.ViewPager2
  11778.         android:id="@+id/myviepage2"
  11779.         android:layout_width="match_parent"
  11780.         android:layout_height="0dp"
  11781.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11782.         app:layout_constraintBottom_toBottomOf="parent"
  11783.         app:layout_constraintStart_toStartOf="parent"
  11784.         />
  11785. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  11786. <?xml version="1.0" encoding="utf-8"?>
  11787. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11788.     xmlns:tools="http://schemas.android.com/tools"
  11789.     android:layout_width="match_parent"
  11790.     android:layout_height="match_parent"
  11791.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11792.     tools:context=".tablayout.TabLayoutHomeFragment">
  11793.     <com.google.android.material.tabs.TabLayout
  11794.         android:id="@+id/mytablayout2"
  11795.         android:layout_width="match_parent"
  11796.         android:layout_height="wrap_content"
  11797.         app:tabMode="auto"
  11798.         app:tabGravity="start"
  11799.         app:tabBackground="@color/pink"
  11800.         app:tabTextColor="@color/white"
  11801.         app:layout_constraintStart_toStartOf="parent"
  11802.         app:layout_constraintTop_toTopOf="parent"
  11803.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11804.         />
  11805.     <androidx.viewpager2.widget.ViewPager2
  11806.         android:id="@+id/myviepage2"
  11807.         android:layout_width="match_parent"
  11808.         android:layout_height="0dp"
  11809.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11810.         app:layout_constraintBottom_toBottomOf="parent"
  11811.         app:layout_constraintStart_toStartOf="parent"
  11812.         />
  11813. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  11814. <?xml version="1.0" encoding="utf-8"?>
  11815. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11816.     xmlns:tools="http://schemas.android.com/tools"
  11817.     android:layout_width="match_parent"
  11818.     android:layout_height="match_parent"
  11819.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11820.     tools:context=".tablayout.TabLayoutHomeFragment">
  11821.     <com.google.android.material.tabs.TabLayout
  11822.         android:id="@+id/mytablayout2"
  11823.         android:layout_width="match_parent"
  11824.         android:layout_height="wrap_content"
  11825.         app:tabMode="auto"
  11826.         app:tabGravity="start"
  11827.         app:tabBackground="@color/pink"
  11828.         app:tabTextColor="@color/white"
  11829.         app:layout_constraintStart_toStartOf="parent"
  11830.         app:layout_constraintTop_toTopOf="parent"
  11831.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11832.         />
  11833.     <androidx.viewpager2.widget.ViewPager2
  11834.         android:id="@+id/myviepage2"
  11835.         android:layout_width="match_parent"
  11836.         android:layout_height="0dp"
  11837.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11838.         app:layout_constraintBottom_toBottomOf="parent"
  11839.         app:layout_constraintStart_toStartOf="parent"
  11840.         />
  11841. </androidx.constraintlayout.widget.ConstraintLayout>/>
  11842. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  11843. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11844.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11845.     xmlns:tools="http://schemas.android.com/tools"
  11846.     android:layout_width="match_parent"
  11847.     android:layout_height="match_parent"
  11848.     tools:context=".ViewPager2TabLayoutActivity">
  11849.    
  11850.     <androidx.fragment.app.FragmentContainerView
  11851. <?xml version="1.0" encoding="utf-8"?>
  11852. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11853.     xmlns:tools="http://schemas.android.com/tools"
  11854.     android:layout_width="match_parent"
  11855.     android:layout_height="match_parent"
  11856.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11857.     tools:context=".tablayout.TabLayoutHomeFragment">
  11858.     <com.google.android.material.tabs.TabLayout
  11859.         android:id="@+id/mytablayout2"
  11860.         android:layout_width="match_parent"
  11861.         android:layout_height="wrap_content"
  11862.         app:tabMode="auto"
  11863.         app:tabGravity="start"
  11864.         app:tabBackground="@color/pink"
  11865.         app:tabTextColor="@color/white"
  11866.         app:layout_constraintStart_toStartOf="parent"
  11867.         app:layout_constraintTop_toTopOf="parent"
  11868.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11869.         />
  11870.     <androidx.viewpager2.widget.ViewPager2
  11871.         android:id="@+id/myviepage2"
  11872.         android:layout_width="match_parent"
  11873.         android:layout_height="0dp"
  11874.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11875.         app:layout_constraintBottom_toBottomOf="parent"
  11876.         app:layout_constraintStart_toStartOf="parent"
  11877.         />
  11878. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  11879. <?xml version="1.0" encoding="utf-8"?>
  11880. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11881.     xmlns:tools="http://schemas.android.com/tools"
  11882.     android:layout_width="match_parent"
  11883.     android:layout_height="match_parent"
  11884.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11885.     tools:context=".tablayout.TabLayoutHomeFragment">
  11886.     <com.google.android.material.tabs.TabLayout
  11887.         android:id="@+id/mytablayout2"
  11888.         android:layout_width="match_parent"
  11889.         android:layout_height="wrap_content"
  11890.         app:tabMode="auto"
  11891.         app:tabGravity="start"
  11892.         app:tabBackground="@color/pink"
  11893.         app:tabTextColor="@color/white"
  11894.         app:layout_constraintStart_toStartOf="parent"
  11895.         app:layout_constraintTop_toTopOf="parent"
  11896.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11897.         />
  11898.     <androidx.viewpager2.widget.ViewPager2
  11899.         android:id="@+id/myviepage2"
  11900.         android:layout_width="match_parent"
  11901.         android:layout_height="0dp"
  11902.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11903.         app:layout_constraintBottom_toBottomOf="parent"
  11904.         app:layout_constraintStart_toStartOf="parent"
  11905.         />
  11906. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  11907. <?xml version="1.0" encoding="utf-8"?>
  11908. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11909.     xmlns:tools="http://schemas.android.com/tools"
  11910.     android:layout_width="match_parent"
  11911.     android:layout_height="match_parent"
  11912.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11913.     tools:context=".tablayout.TabLayoutHomeFragment">
  11914.     <com.google.android.material.tabs.TabLayout
  11915.         android:id="@+id/mytablayout2"
  11916.         android:layout_width="match_parent"
  11917.         android:layout_height="wrap_content"
  11918.         app:tabMode="auto"
  11919.         app:tabGravity="start"
  11920.         app:tabBackground="@color/pink"
  11921.         app:tabTextColor="@color/white"
  11922.         app:layout_constraintStart_toStartOf="parent"
  11923.         app:layout_constraintTop_toTopOf="parent"
  11924.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11925.         />
  11926.     <androidx.viewpager2.widget.ViewPager2
  11927.         android:id="@+id/myviepage2"
  11928.         android:layout_width="match_parent"
  11929.         android:layout_height="0dp"
  11930.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11931.         app:layout_constraintBottom_toBottomOf="parent"
  11932.         app:layout_constraintStart_toStartOf="parent"
  11933.         />
  11934. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  11935. <?xml version="1.0" encoding="utf-8"?>
  11936. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11937.     xmlns:tools="http://schemas.android.com/tools"
  11938.     android:layout_width="match_parent"
  11939.     android:layout_height="match_parent"
  11940.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11941.     tools:context=".tablayout.TabLayoutHomeFragment">
  11942.     <com.google.android.material.tabs.TabLayout
  11943.         android:id="@+id/mytablayout2"
  11944.         android:layout_width="match_parent"
  11945.         android:layout_height="wrap_content"
  11946.         app:tabMode="auto"
  11947.         app:tabGravity="start"
  11948.         app:tabBackground="@color/pink"
  11949.         app:tabTextColor="@color/white"
  11950.         app:layout_constraintStart_toStartOf="parent"
  11951.         app:layout_constraintTop_toTopOf="parent"
  11952.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11953.         />
  11954.     <androidx.viewpager2.widget.ViewPager2
  11955.         android:id="@+id/myviepage2"
  11956.         android:layout_width="match_parent"
  11957.         android:layout_height="0dp"
  11958.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11959.         app:layout_constraintBottom_toBottomOf="parent"
  11960.         app:layout_constraintStart_toStartOf="parent"
  11961.         />
  11962. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  11963. <?xml version="1.0" encoding="utf-8"?>
  11964. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11965.     xmlns:tools="http://schemas.android.com/tools"
  11966.     android:layout_width="match_parent"
  11967.     android:layout_height="match_parent"
  11968.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11969.     tools:context=".tablayout.TabLayoutHomeFragment">
  11970.     <com.google.android.material.tabs.TabLayout
  11971.         android:id="@+id/mytablayout2"
  11972.         android:layout_width="match_parent"
  11973.         android:layout_height="wrap_content"
  11974.         app:tabMode="auto"
  11975.         app:tabGravity="start"
  11976.         app:tabBackground="@color/pink"
  11977.         app:tabTextColor="@color/white"
  11978.         app:layout_constraintStart_toStartOf="parent"
  11979.         app:layout_constraintTop_toTopOf="parent"
  11980.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  11981.         />
  11982.     <androidx.viewpager2.widget.ViewPager2
  11983.         android:id="@+id/myviepage2"
  11984.         android:layout_width="match_parent"
  11985.         android:layout_height="0dp"
  11986.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  11987.         app:layout_constraintBottom_toBottomOf="parent"
  11988.         app:layout_constraintStart_toStartOf="parent"
  11989.         />
  11990. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  11991.     <com.google.android.material.bottomnavigation.BottomNavigationView
  11992. <?xml version="1.0" encoding="utf-8"?>
  11993. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11994.     xmlns:tools="http://schemas.android.com/tools"
  11995.     android:layout_width="match_parent"
  11996.     android:layout_height="match_parent"
  11997.     xmlns:app="http://schemas.android.com/apk/res-auto"
  11998.     tools:context=".tablayout.TabLayoutHomeFragment">
  11999.     <com.google.android.material.tabs.TabLayout
  12000.         android:id="@+id/mytablayout2"
  12001.         android:layout_width="match_parent"
  12002.         android:layout_height="wrap_content"
  12003.         app:tabMode="auto"
  12004.         app:tabGravity="start"
  12005.         app:tabBackground="@color/pink"
  12006.         app:tabTextColor="@color/white"
  12007.         app:layout_constraintStart_toStartOf="parent"
  12008.         app:layout_constraintTop_toTopOf="parent"
  12009.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12010.         />
  12011.     <androidx.viewpager2.widget.ViewPager2
  12012.         android:id="@+id/myviepage2"
  12013.         android:layout_width="match_parent"
  12014.         android:layout_height="0dp"
  12015.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12016.         app:layout_constraintBottom_toBottomOf="parent"
  12017.         app:layout_constraintStart_toStartOf="parent"
  12018.         />
  12019. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  12020. <?xml version="1.0" encoding="utf-8"?>
  12021. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12022.     xmlns:tools="http://schemas.android.com/tools"
  12023.     android:layout_width="match_parent"
  12024.     android:layout_height="match_parent"
  12025.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12026.     tools:context=".tablayout.TabLayoutHomeFragment">
  12027.     <com.google.android.material.tabs.TabLayout
  12028.         android:id="@+id/mytablayout2"
  12029.         android:layout_width="match_parent"
  12030.         android:layout_height="wrap_content"
  12031.         app:tabMode="auto"
  12032.         app:tabGravity="start"
  12033.         app:tabBackground="@color/pink"
  12034.         app:tabTextColor="@color/white"
  12035.         app:layout_constraintStart_toStartOf="parent"
  12036.         app:layout_constraintTop_toTopOf="parent"
  12037.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12038.         />
  12039.     <androidx.viewpager2.widget.ViewPager2
  12040.         android:id="@+id/myviepage2"
  12041.         android:layout_width="match_parent"
  12042.         android:layout_height="0dp"
  12043.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12044.         app:layout_constraintBottom_toBottomOf="parent"
  12045.         app:layout_constraintStart_toStartOf="parent"
  12046.         />
  12047. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  12048. <?xml version="1.0" encoding="utf-8"?>
  12049. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12050.     xmlns:tools="http://schemas.android.com/tools"
  12051.     android:layout_width="match_parent"
  12052.     android:layout_height="match_parent"
  12053.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12054.     tools:context=".tablayout.TabLayoutHomeFragment">
  12055.     <com.google.android.material.tabs.TabLayout
  12056.         android:id="@+id/mytablayout2"
  12057.         android:layout_width="match_parent"
  12058.         android:layout_height="wrap_content"
  12059.         app:tabMode="auto"
  12060.         app:tabGravity="start"
  12061.         app:tabBackground="@color/pink"
  12062.         app:tabTextColor="@color/white"
  12063.         app:layout_constraintStart_toStartOf="parent"
  12064.         app:layout_constraintTop_toTopOf="parent"
  12065.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12066.         />
  12067.     <androidx.viewpager2.widget.ViewPager2
  12068.         android:id="@+id/myviepage2"
  12069.         android:layout_width="match_parent"
  12070.         android:layout_height="0dp"
  12071.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12072.         app:layout_constraintBottom_toBottomOf="parent"
  12073.         app:layout_constraintStart_toStartOf="parent"
  12074.         />
  12075. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  12076. <?xml version="1.0" encoding="utf-8"?>
  12077. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12078.     xmlns:tools="http://schemas.android.com/tools"
  12079.     android:layout_width="match_parent"
  12080.     android:layout_height="match_parent"
  12081.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12082.     tools:context=".tablayout.TabLayoutHomeFragment">
  12083.     <com.google.android.material.tabs.TabLayout
  12084.         android:id="@+id/mytablayout2"
  12085.         android:layout_width="match_parent"
  12086.         android:layout_height="wrap_content"
  12087.         app:tabMode="auto"
  12088.         app:tabGravity="start"
  12089.         app:tabBackground="@color/pink"
  12090.         app:tabTextColor="@color/white"
  12091.         app:layout_constraintStart_toStartOf="parent"
  12092.         app:layout_constraintTop_toTopOf="parent"
  12093.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12094.         />
  12095.     <androidx.viewpager2.widget.ViewPager2
  12096.         android:id="@+id/myviepage2"
  12097.         android:layout_width="match_parent"
  12098.         android:layout_height="0dp"
  12099.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12100.         app:layout_constraintBottom_toBottomOf="parent"
  12101.         app:layout_constraintStart_toStartOf="parent"
  12102.         />
  12103. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  12104. <?xml version="1.0" encoding="utf-8"?>
  12105. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12106.     xmlns:tools="http://schemas.android.com/tools"
  12107.     android:layout_width="match_parent"
  12108.     android:layout_height="match_parent"
  12109.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12110.     tools:context=".tablayout.TabLayoutHomeFragment">
  12111.     <com.google.android.material.tabs.TabLayout
  12112.         android:id="@+id/mytablayout2"
  12113.         android:layout_width="match_parent"
  12114.         android:layout_height="wrap_content"
  12115.         app:tabMode="auto"
  12116.         app:tabGravity="start"
  12117.         app:tabBackground="@color/pink"
  12118.         app:tabTextColor="@color/white"
  12119.         app:layout_constraintStart_toStartOf="parent"
  12120.         app:layout_constraintTop_toTopOf="parent"
  12121.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12122.         />
  12123.     <androidx.viewpager2.widget.ViewPager2
  12124.         android:id="@+id/myviepage2"
  12125.         android:layout_width="match_parent"
  12126.         android:layout_height="0dp"
  12127.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12128.         app:layout_constraintBottom_toBottomOf="parent"
  12129.         app:layout_constraintStart_toStartOf="parent"
  12130.         />
  12131. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  12132. <?xml version="1.0" encoding="utf-8"?>
  12133. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12134.     xmlns:tools="http://schemas.android.com/tools"
  12135.     android:layout_width="match_parent"
  12136.     android:layout_height="match_parent"
  12137.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12138.     tools:context=".tablayout.TabLayoutHomeFragment">
  12139.     <com.google.android.material.tabs.TabLayout
  12140.         android:id="@+id/mytablayout2"
  12141.         android:layout_width="match_parent"
  12142.         android:layout_height="wrap_content"
  12143.         app:tabMode="auto"
  12144.         app:tabGravity="start"
  12145.         app:tabBackground="@color/pink"
  12146.         app:tabTextColor="@color/white"
  12147.         app:layout_constraintStart_toStartOf="parent"
  12148.         app:layout_constraintTop_toTopOf="parent"
  12149.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12150.         />
  12151.     <androidx.viewpager2.widget.ViewPager2
  12152.         android:id="@+id/myviepage2"
  12153.         android:layout_width="match_parent"
  12154.         android:layout_height="0dp"
  12155.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12156.         app:layout_constraintBottom_toBottomOf="parent"
  12157.         app:layout_constraintStart_toStartOf="parent"
  12158.         />
  12159. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  12160. <?xml version="1.0" encoding="utf-8"?>
  12161. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12162.     xmlns:tools="http://schemas.android.com/tools"
  12163.     android:layout_width="match_parent"
  12164.     android:layout_height="match_parent"
  12165.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12166.     tools:context=".tablayout.TabLayoutHomeFragment">
  12167.     <com.google.android.material.tabs.TabLayout
  12168.         android:id="@+id/mytablayout2"
  12169.         android:layout_width="match_parent"
  12170.         android:layout_height="wrap_content"
  12171.         app:tabMode="auto"
  12172.         app:tabGravity="start"
  12173.         app:tabBackground="@color/pink"
  12174.         app:tabTextColor="@color/white"
  12175.         app:layout_constraintStart_toStartOf="parent"
  12176.         app:layout_constraintTop_toTopOf="parent"
  12177.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12178.         />
  12179.     <androidx.viewpager2.widget.ViewPager2
  12180.         android:id="@+id/myviepage2"
  12181.         android:layout_width="match_parent"
  12182.         android:layout_height="0dp"
  12183.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12184.         app:layout_constraintBottom_toBottomOf="parent"
  12185.         app:layout_constraintStart_toStartOf="parent"
  12186.         />
  12187. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  12188. <?xml version="1.0" encoding="utf-8"?>
  12189. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12190.     xmlns:tools="http://schemas.android.com/tools"
  12191.     android:layout_width="match_parent"
  12192.     android:layout_height="match_parent"
  12193.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12194.     tools:context=".tablayout.TabLayoutHomeFragment">
  12195.     <com.google.android.material.tabs.TabLayout
  12196.         android:id="@+id/mytablayout2"
  12197.         android:layout_width="match_parent"
  12198.         android:layout_height="wrap_content"
  12199.         app:tabMode="auto"
  12200.         app:tabGravity="start"
  12201.         app:tabBackground="@color/pink"
  12202.         app:tabTextColor="@color/white"
  12203.         app:layout_constraintStart_toStartOf="parent"
  12204.         app:layout_constraintTop_toTopOf="parent"
  12205.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12206.         />
  12207.     <androidx.viewpager2.widget.ViewPager2
  12208.         android:id="@+id/myviepage2"
  12209.         android:layout_width="match_parent"
  12210.         android:layout_height="0dp"
  12211.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12212.         app:layout_constraintBottom_toBottomOf="parent"
  12213.         app:layout_constraintStart_toStartOf="parent"
  12214.         />
  12215. </androidx.constraintlayout.widget.ConstraintLayout>/>
  12216. </androidx.constraintlayout.widget.ConstraintLayout>getSupportFragmentManager().beginTransaction()<?xml version="1.0" encoding="utf-8"?>
  12217. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12218.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12219.     xmlns:tools="http://schemas.android.com/tools"
  12220.     android:layout_width="match_parent"
  12221.     android:layout_height="match_parent"
  12222.     tools:context=".ViewPager2TabLayoutActivity">
  12223.    
  12224.     <androidx.fragment.app.FragmentContainerView
  12225. <?xml version="1.0" encoding="utf-8"?>
  12226. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12227.     xmlns:tools="http://schemas.android.com/tools"
  12228.     android:layout_width="match_parent"
  12229.     android:layout_height="match_parent"
  12230.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12231.     tools:context=".tablayout.TabLayoutHomeFragment">
  12232.     <com.google.android.material.tabs.TabLayout
  12233.         android:id="@+id/mytablayout2"
  12234.         android:layout_width="match_parent"
  12235.         android:layout_height="wrap_content"
  12236.         app:tabMode="auto"
  12237.         app:tabGravity="start"
  12238.         app:tabBackground="@color/pink"
  12239.         app:tabTextColor="@color/white"
  12240.         app:layout_constraintStart_toStartOf="parent"
  12241.         app:layout_constraintTop_toTopOf="parent"
  12242.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12243.         />
  12244.     <androidx.viewpager2.widget.ViewPager2
  12245.         android:id="@+id/myviepage2"
  12246.         android:layout_width="match_parent"
  12247.         android:layout_height="0dp"
  12248.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12249.         app:layout_constraintBottom_toBottomOf="parent"
  12250.         app:layout_constraintStart_toStartOf="parent"
  12251.         />
  12252. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  12253. <?xml version="1.0" encoding="utf-8"?>
  12254. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12255.     xmlns:tools="http://schemas.android.com/tools"
  12256.     android:layout_width="match_parent"
  12257.     android:layout_height="match_parent"
  12258.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12259.     tools:context=".tablayout.TabLayoutHomeFragment">
  12260.     <com.google.android.material.tabs.TabLayout
  12261.         android:id="@+id/mytablayout2"
  12262.         android:layout_width="match_parent"
  12263.         android:layout_height="wrap_content"
  12264.         app:tabMode="auto"
  12265.         app:tabGravity="start"
  12266.         app:tabBackground="@color/pink"
  12267.         app:tabTextColor="@color/white"
  12268.         app:layout_constraintStart_toStartOf="parent"
  12269.         app:layout_constraintTop_toTopOf="parent"
  12270.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12271.         />
  12272.     <androidx.viewpager2.widget.ViewPager2
  12273.         android:id="@+id/myviepage2"
  12274.         android:layout_width="match_parent"
  12275.         android:layout_height="0dp"
  12276.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12277.         app:layout_constraintBottom_toBottomOf="parent"
  12278.         app:layout_constraintStart_toStartOf="parent"
  12279.         />
  12280. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  12281. <?xml version="1.0" encoding="utf-8"?>
  12282. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12283.     xmlns:tools="http://schemas.android.com/tools"
  12284.     android:layout_width="match_parent"
  12285.     android:layout_height="match_parent"
  12286.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12287.     tools:context=".tablayout.TabLayoutHomeFragment">
  12288.     <com.google.android.material.tabs.TabLayout
  12289.         android:id="@+id/mytablayout2"
  12290.         android:layout_width="match_parent"
  12291.         android:layout_height="wrap_content"
  12292.         app:tabMode="auto"
  12293.         app:tabGravity="start"
  12294.         app:tabBackground="@color/pink"
  12295.         app:tabTextColor="@color/white"
  12296.         app:layout_constraintStart_toStartOf="parent"
  12297.         app:layout_constraintTop_toTopOf="parent"
  12298.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12299.         />
  12300.     <androidx.viewpager2.widget.ViewPager2
  12301.         android:id="@+id/myviepage2"
  12302.         android:layout_width="match_parent"
  12303.         android:layout_height="0dp"
  12304.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12305.         app:layout_constraintBottom_toBottomOf="parent"
  12306.         app:layout_constraintStart_toStartOf="parent"
  12307.         />
  12308. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  12309. <?xml version="1.0" encoding="utf-8"?>
  12310. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12311.     xmlns:tools="http://schemas.android.com/tools"
  12312.     android:layout_width="match_parent"
  12313.     android:layout_height="match_parent"
  12314.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12315.     tools:context=".tablayout.TabLayoutHomeFragment">
  12316.     <com.google.android.material.tabs.TabLayout
  12317.         android:id="@+id/mytablayout2"
  12318.         android:layout_width="match_parent"
  12319.         android:layout_height="wrap_content"
  12320.         app:tabMode="auto"
  12321.         app:tabGravity="start"
  12322.         app:tabBackground="@color/pink"
  12323.         app:tabTextColor="@color/white"
  12324.         app:layout_constraintStart_toStartOf="parent"
  12325.         app:layout_constraintTop_toTopOf="parent"
  12326.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12327.         />
  12328.     <androidx.viewpager2.widget.ViewPager2
  12329.         android:id="@+id/myviepage2"
  12330.         android:layout_width="match_parent"
  12331.         android:layout_height="0dp"
  12332.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12333.         app:layout_constraintBottom_toBottomOf="parent"
  12334.         app:layout_constraintStart_toStartOf="parent"
  12335.         />
  12336. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  12337. <?xml version="1.0" encoding="utf-8"?>
  12338. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12339.     xmlns:tools="http://schemas.android.com/tools"
  12340.     android:layout_width="match_parent"
  12341.     android:layout_height="match_parent"
  12342.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12343.     tools:context=".tablayout.TabLayoutHomeFragment">
  12344.     <com.google.android.material.tabs.TabLayout
  12345.         android:id="@+id/mytablayout2"
  12346.         android:layout_width="match_parent"
  12347.         android:layout_height="wrap_content"
  12348.         app:tabMode="auto"
  12349.         app:tabGravity="start"
  12350.         app:tabBackground="@color/pink"
  12351.         app:tabTextColor="@color/white"
  12352.         app:layout_constraintStart_toStartOf="parent"
  12353.         app:layout_constraintTop_toTopOf="parent"
  12354.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12355.         />
  12356.     <androidx.viewpager2.widget.ViewPager2
  12357.         android:id="@+id/myviepage2"
  12358.         android:layout_width="match_parent"
  12359.         android:layout_height="0dp"
  12360.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12361.         app:layout_constraintBottom_toBottomOf="parent"
  12362.         app:layout_constraintStart_toStartOf="parent"
  12363.         />
  12364. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  12365.     <com.google.android.material.bottomnavigation.BottomNavigationView
  12366. <?xml version="1.0" encoding="utf-8"?>
  12367. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12368.     xmlns:tools="http://schemas.android.com/tools"
  12369.     android:layout_width="match_parent"
  12370.     android:layout_height="match_parent"
  12371.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12372.     tools:context=".tablayout.TabLayoutHomeFragment">
  12373.     <com.google.android.material.tabs.TabLayout
  12374.         android:id="@+id/mytablayout2"
  12375.         android:layout_width="match_parent"
  12376.         android:layout_height="wrap_content"
  12377.         app:tabMode="auto"
  12378.         app:tabGravity="start"
  12379.         app:tabBackground="@color/pink"
  12380.         app:tabTextColor="@color/white"
  12381.         app:layout_constraintStart_toStartOf="parent"
  12382.         app:layout_constraintTop_toTopOf="parent"
  12383.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12384.         />
  12385.     <androidx.viewpager2.widget.ViewPager2
  12386.         android:id="@+id/myviepage2"
  12387.         android:layout_width="match_parent"
  12388.         android:layout_height="0dp"
  12389.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12390.         app:layout_constraintBottom_toBottomOf="parent"
  12391.         app:layout_constraintStart_toStartOf="parent"
  12392.         />
  12393. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  12394. <?xml version="1.0" encoding="utf-8"?>
  12395. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12396.     xmlns:tools="http://schemas.android.com/tools"
  12397.     android:layout_width="match_parent"
  12398.     android:layout_height="match_parent"
  12399.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12400.     tools:context=".tablayout.TabLayoutHomeFragment">
  12401.     <com.google.android.material.tabs.TabLayout
  12402.         android:id="@+id/mytablayout2"
  12403.         android:layout_width="match_parent"
  12404.         android:layout_height="wrap_content"
  12405.         app:tabMode="auto"
  12406.         app:tabGravity="start"
  12407.         app:tabBackground="@color/pink"
  12408.         app:tabTextColor="@color/white"
  12409.         app:layout_constraintStart_toStartOf="parent"
  12410.         app:layout_constraintTop_toTopOf="parent"
  12411.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12412.         />
  12413.     <androidx.viewpager2.widget.ViewPager2
  12414.         android:id="@+id/myviepage2"
  12415.         android:layout_width="match_parent"
  12416.         android:layout_height="0dp"
  12417.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12418.         app:layout_constraintBottom_toBottomOf="parent"
  12419.         app:layout_constraintStart_toStartOf="parent"
  12420.         />
  12421. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  12422. <?xml version="1.0" encoding="utf-8"?>
  12423. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12424.     xmlns:tools="http://schemas.android.com/tools"
  12425.     android:layout_width="match_parent"
  12426.     android:layout_height="match_parent"
  12427.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12428.     tools:context=".tablayout.TabLayoutHomeFragment">
  12429.     <com.google.android.material.tabs.TabLayout
  12430.         android:id="@+id/mytablayout2"
  12431.         android:layout_width="match_parent"
  12432.         android:layout_height="wrap_content"
  12433.         app:tabMode="auto"
  12434.         app:tabGravity="start"
  12435.         app:tabBackground="@color/pink"
  12436.         app:tabTextColor="@color/white"
  12437.         app:layout_constraintStart_toStartOf="parent"
  12438.         app:layout_constraintTop_toTopOf="parent"
  12439.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12440.         />
  12441.     <androidx.viewpager2.widget.ViewPager2
  12442.         android:id="@+id/myviepage2"
  12443.         android:layout_width="match_parent"
  12444.         android:layout_height="0dp"
  12445.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12446.         app:layout_constraintBottom_toBottomOf="parent"
  12447.         app:layout_constraintStart_toStartOf="parent"
  12448.         />
  12449. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  12450. <?xml version="1.0" encoding="utf-8"?>
  12451. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12452.     xmlns:tools="http://schemas.android.com/tools"
  12453.     android:layout_width="match_parent"
  12454.     android:layout_height="match_parent"
  12455.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12456.     tools:context=".tablayout.TabLayoutHomeFragment">
  12457.     <com.google.android.material.tabs.TabLayout
  12458.         android:id="@+id/mytablayout2"
  12459.         android:layout_width="match_parent"
  12460.         android:layout_height="wrap_content"
  12461.         app:tabMode="auto"
  12462.         app:tabGravity="start"
  12463.         app:tabBackground="@color/pink"
  12464.         app:tabTextColor="@color/white"
  12465.         app:layout_constraintStart_toStartOf="parent"
  12466.         app:layout_constraintTop_toTopOf="parent"
  12467.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12468.         />
  12469.     <androidx.viewpager2.widget.ViewPager2
  12470.         android:id="@+id/myviepage2"
  12471.         android:layout_width="match_parent"
  12472.         android:layout_height="0dp"
  12473.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12474.         app:layout_constraintBottom_toBottomOf="parent"
  12475.         app:layout_constraintStart_toStartOf="parent"
  12476.         />
  12477. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  12478. <?xml version="1.0" encoding="utf-8"?>
  12479. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12480.     xmlns:tools="http://schemas.android.com/tools"
  12481.     android:layout_width="match_parent"
  12482.     android:layout_height="match_parent"
  12483.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12484.     tools:context=".tablayout.TabLayoutHomeFragment">
  12485.     <com.google.android.material.tabs.TabLayout
  12486.         android:id="@+id/mytablayout2"
  12487.         android:layout_width="match_parent"
  12488.         android:layout_height="wrap_content"
  12489.         app:tabMode="auto"
  12490.         app:tabGravity="start"
  12491.         app:tabBackground="@color/pink"
  12492.         app:tabTextColor="@color/white"
  12493.         app:layout_constraintStart_toStartOf="parent"
  12494.         app:layout_constraintTop_toTopOf="parent"
  12495.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12496.         />
  12497.     <androidx.viewpager2.widget.ViewPager2
  12498.         android:id="@+id/myviepage2"
  12499.         android:layout_width="match_parent"
  12500.         android:layout_height="0dp"
  12501.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12502.         app:layout_constraintBottom_toBottomOf="parent"
  12503.         app:layout_constraintStart_toStartOf="parent"
  12504.         />
  12505. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  12506. <?xml version="1.0" encoding="utf-8"?>
  12507. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12508.     xmlns:tools="http://schemas.android.com/tools"
  12509.     android:layout_width="match_parent"
  12510.     android:layout_height="match_parent"
  12511.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12512.     tools:context=".tablayout.TabLayoutHomeFragment">
  12513.     <com.google.android.material.tabs.TabLayout
  12514.         android:id="@+id/mytablayout2"
  12515.         android:layout_width="match_parent"
  12516.         android:layout_height="wrap_content"
  12517.         app:tabMode="auto"
  12518.         app:tabGravity="start"
  12519.         app:tabBackground="@color/pink"
  12520.         app:tabTextColor="@color/white"
  12521.         app:layout_constraintStart_toStartOf="parent"
  12522.         app:layout_constraintTop_toTopOf="parent"
  12523.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12524.         />
  12525.     <androidx.viewpager2.widget.ViewPager2
  12526.         android:id="@+id/myviepage2"
  12527.         android:layout_width="match_parent"
  12528.         android:layout_height="0dp"
  12529.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12530.         app:layout_constraintBottom_toBottomOf="parent"
  12531.         app:layout_constraintStart_toStartOf="parent"
  12532.         />
  12533. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  12534. <?xml version="1.0" encoding="utf-8"?>
  12535. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12536.     xmlns:tools="http://schemas.android.com/tools"
  12537.     android:layout_width="match_parent"
  12538.     android:layout_height="match_parent"
  12539.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12540.     tools:context=".tablayout.TabLayoutHomeFragment">
  12541.     <com.google.android.material.tabs.TabLayout
  12542.         android:id="@+id/mytablayout2"
  12543.         android:layout_width="match_parent"
  12544.         android:layout_height="wrap_content"
  12545.         app:tabMode="auto"
  12546.         app:tabGravity="start"
  12547.         app:tabBackground="@color/pink"
  12548.         app:tabTextColor="@color/white"
  12549.         app:layout_constraintStart_toStartOf="parent"
  12550.         app:layout_constraintTop_toTopOf="parent"
  12551.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12552.         />
  12553.     <androidx.viewpager2.widget.ViewPager2
  12554.         android:id="@+id/myviepage2"
  12555.         android:layout_width="match_parent"
  12556.         android:layout_height="0dp"
  12557.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12558.         app:layout_constraintBottom_toBottomOf="parent"
  12559.         app:layout_constraintStart_toStartOf="parent"
  12560.         />
  12561. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  12562. <?xml version="1.0" encoding="utf-8"?>
  12563. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12564.     xmlns:tools="http://schemas.android.com/tools"
  12565.     android:layout_width="match_parent"
  12566.     android:layout_height="match_parent"
  12567.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12568.     tools:context=".tablayout.TabLayoutHomeFragment">
  12569.     <com.google.android.material.tabs.TabLayout
  12570.         android:id="@+id/mytablayout2"
  12571.         android:layout_width="match_parent"
  12572.         android:layout_height="wrap_content"
  12573.         app:tabMode="auto"
  12574.         app:tabGravity="start"
  12575.         app:tabBackground="@color/pink"
  12576.         app:tabTextColor="@color/white"
  12577.         app:layout_constraintStart_toStartOf="parent"
  12578.         app:layout_constraintTop_toTopOf="parent"
  12579.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12580.         />
  12581.     <androidx.viewpager2.widget.ViewPager2
  12582.         android:id="@+id/myviepage2"
  12583.         android:layout_width="match_parent"
  12584.         android:layout_height="0dp"
  12585.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12586.         app:layout_constraintBottom_toBottomOf="parent"
  12587.         app:layout_constraintStart_toStartOf="parent"
  12588.         />
  12589. </androidx.constraintlayout.widget.ConstraintLayout>/>
  12590. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  12591. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12592.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12593.     xmlns:tools="http://schemas.android.com/tools"
  12594.     android:layout_width="match_parent"
  12595.     android:layout_height="match_parent"
  12596.     tools:context=".ViewPager2TabLayoutActivity">
  12597.    
  12598.     <androidx.fragment.app.FragmentContainerView
  12599. <?xml version="1.0" encoding="utf-8"?>
  12600. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12601.     xmlns:tools="http://schemas.android.com/tools"
  12602.     android:layout_width="match_parent"
  12603.     android:layout_height="match_parent"
  12604.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12605.     tools:context=".tablayout.TabLayoutHomeFragment">
  12606.     <com.google.android.material.tabs.TabLayout
  12607.         android:id="@+id/mytablayout2"
  12608.         android:layout_width="match_parent"
  12609.         android:layout_height="wrap_content"
  12610.         app:tabMode="auto"
  12611.         app:tabGravity="start"
  12612.         app:tabBackground="@color/pink"
  12613.         app:tabTextColor="@color/white"
  12614.         app:layout_constraintStart_toStartOf="parent"
  12615.         app:layout_constraintTop_toTopOf="parent"
  12616.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12617.         />
  12618.     <androidx.viewpager2.widget.ViewPager2
  12619.         android:id="@+id/myviepage2"
  12620.         android:layout_width="match_parent"
  12621.         android:layout_height="0dp"
  12622.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12623.         app:layout_constraintBottom_toBottomOf="parent"
  12624.         app:layout_constraintStart_toStartOf="parent"
  12625.         />
  12626. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  12627. <?xml version="1.0" encoding="utf-8"?>
  12628. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12629.     xmlns:tools="http://schemas.android.com/tools"
  12630.     android:layout_width="match_parent"
  12631.     android:layout_height="match_parent"
  12632.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12633.     tools:context=".tablayout.TabLayoutHomeFragment">
  12634.     <com.google.android.material.tabs.TabLayout
  12635.         android:id="@+id/mytablayout2"
  12636.         android:layout_width="match_parent"
  12637.         android:layout_height="wrap_content"
  12638.         app:tabMode="auto"
  12639.         app:tabGravity="start"
  12640.         app:tabBackground="@color/pink"
  12641.         app:tabTextColor="@color/white"
  12642.         app:layout_constraintStart_toStartOf="parent"
  12643.         app:layout_constraintTop_toTopOf="parent"
  12644.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12645.         />
  12646.     <androidx.viewpager2.widget.ViewPager2
  12647.         android:id="@+id/myviepage2"
  12648.         android:layout_width="match_parent"
  12649.         android:layout_height="0dp"
  12650.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12651.         app:layout_constraintBottom_toBottomOf="parent"
  12652.         app:layout_constraintStart_toStartOf="parent"
  12653.         />
  12654. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  12655. <?xml version="1.0" encoding="utf-8"?>
  12656. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12657.     xmlns:tools="http://schemas.android.com/tools"
  12658.     android:layout_width="match_parent"
  12659.     android:layout_height="match_parent"
  12660.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12661.     tools:context=".tablayout.TabLayoutHomeFragment">
  12662.     <com.google.android.material.tabs.TabLayout
  12663.         android:id="@+id/mytablayout2"
  12664.         android:layout_width="match_parent"
  12665.         android:layout_height="wrap_content"
  12666.         app:tabMode="auto"
  12667.         app:tabGravity="start"
  12668.         app:tabBackground="@color/pink"
  12669.         app:tabTextColor="@color/white"
  12670.         app:layout_constraintStart_toStartOf="parent"
  12671.         app:layout_constraintTop_toTopOf="parent"
  12672.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12673.         />
  12674.     <androidx.viewpager2.widget.ViewPager2
  12675.         android:id="@+id/myviepage2"
  12676.         android:layout_width="match_parent"
  12677.         android:layout_height="0dp"
  12678.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12679.         app:layout_constraintBottom_toBottomOf="parent"
  12680.         app:layout_constraintStart_toStartOf="parent"
  12681.         />
  12682. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  12683. <?xml version="1.0" encoding="utf-8"?>
  12684. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12685.     xmlns:tools="http://schemas.android.com/tools"
  12686.     android:layout_width="match_parent"
  12687.     android:layout_height="match_parent"
  12688.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12689.     tools:context=".tablayout.TabLayoutHomeFragment">
  12690.     <com.google.android.material.tabs.TabLayout
  12691.         android:id="@+id/mytablayout2"
  12692.         android:layout_width="match_parent"
  12693.         android:layout_height="wrap_content"
  12694.         app:tabMode="auto"
  12695.         app:tabGravity="start"
  12696.         app:tabBackground="@color/pink"
  12697.         app:tabTextColor="@color/white"
  12698.         app:layout_constraintStart_toStartOf="parent"
  12699.         app:layout_constraintTop_toTopOf="parent"
  12700.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12701.         />
  12702.     <androidx.viewpager2.widget.ViewPager2
  12703.         android:id="@+id/myviepage2"
  12704.         android:layout_width="match_parent"
  12705.         android:layout_height="0dp"
  12706.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12707.         app:layout_constraintBottom_toBottomOf="parent"
  12708.         app:layout_constraintStart_toStartOf="parent"
  12709.         />
  12710. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  12711. <?xml version="1.0" encoding="utf-8"?>
  12712. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12713.     xmlns:tools="http://schemas.android.com/tools"
  12714.     android:layout_width="match_parent"
  12715.     android:layout_height="match_parent"
  12716.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12717.     tools:context=".tablayout.TabLayoutHomeFragment">
  12718.     <com.google.android.material.tabs.TabLayout
  12719.         android:id="@+id/mytablayout2"
  12720.         android:layout_width="match_parent"
  12721.         android:layout_height="wrap_content"
  12722.         app:tabMode="auto"
  12723.         app:tabGravity="start"
  12724.         app:tabBackground="@color/pink"
  12725.         app:tabTextColor="@color/white"
  12726.         app:layout_constraintStart_toStartOf="parent"
  12727.         app:layout_constraintTop_toTopOf="parent"
  12728.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12729.         />
  12730.     <androidx.viewpager2.widget.ViewPager2
  12731.         android:id="@+id/myviepage2"
  12732.         android:layout_width="match_parent"
  12733.         android:layout_height="0dp"
  12734.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12735.         app:layout_constraintBottom_toBottomOf="parent"
  12736.         app:layout_constraintStart_toStartOf="parent"
  12737.         />
  12738. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  12739.     <com.google.android.material.bottomnavigation.BottomNavigationView
  12740. <?xml version="1.0" encoding="utf-8"?>
  12741. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12742.     xmlns:tools="http://schemas.android.com/tools"
  12743.     android:layout_width="match_parent"
  12744.     android:layout_height="match_parent"
  12745.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12746.     tools:context=".tablayout.TabLayoutHomeFragment">
  12747.     <com.google.android.material.tabs.TabLayout
  12748.         android:id="@+id/mytablayout2"
  12749.         android:layout_width="match_parent"
  12750.         android:layout_height="wrap_content"
  12751.         app:tabMode="auto"
  12752.         app:tabGravity="start"
  12753.         app:tabBackground="@color/pink"
  12754.         app:tabTextColor="@color/white"
  12755.         app:layout_constraintStart_toStartOf="parent"
  12756.         app:layout_constraintTop_toTopOf="parent"
  12757.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12758.         />
  12759.     <androidx.viewpager2.widget.ViewPager2
  12760.         android:id="@+id/myviepage2"
  12761.         android:layout_width="match_parent"
  12762.         android:layout_height="0dp"
  12763.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12764.         app:layout_constraintBottom_toBottomOf="parent"
  12765.         app:layout_constraintStart_toStartOf="parent"
  12766.         />
  12767. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  12768. <?xml version="1.0" encoding="utf-8"?>
  12769. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12770.     xmlns:tools="http://schemas.android.com/tools"
  12771.     android:layout_width="match_parent"
  12772.     android:layout_height="match_parent"
  12773.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12774.     tools:context=".tablayout.TabLayoutHomeFragment">
  12775.     <com.google.android.material.tabs.TabLayout
  12776.         android:id="@+id/mytablayout2"
  12777.         android:layout_width="match_parent"
  12778.         android:layout_height="wrap_content"
  12779.         app:tabMode="auto"
  12780.         app:tabGravity="start"
  12781.         app:tabBackground="@color/pink"
  12782.         app:tabTextColor="@color/white"
  12783.         app:layout_constraintStart_toStartOf="parent"
  12784.         app:layout_constraintTop_toTopOf="parent"
  12785.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12786.         />
  12787.     <androidx.viewpager2.widget.ViewPager2
  12788.         android:id="@+id/myviepage2"
  12789.         android:layout_width="match_parent"
  12790.         android:layout_height="0dp"
  12791.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12792.         app:layout_constraintBottom_toBottomOf="parent"
  12793.         app:layout_constraintStart_toStartOf="parent"
  12794.         />
  12795. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  12796. <?xml version="1.0" encoding="utf-8"?>
  12797. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12798.     xmlns:tools="http://schemas.android.com/tools"
  12799.     android:layout_width="match_parent"
  12800.     android:layout_height="match_parent"
  12801.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12802.     tools:context=".tablayout.TabLayoutHomeFragment">
  12803.     <com.google.android.material.tabs.TabLayout
  12804.         android:id="@+id/mytablayout2"
  12805.         android:layout_width="match_parent"
  12806.         android:layout_height="wrap_content"
  12807.         app:tabMode="auto"
  12808.         app:tabGravity="start"
  12809.         app:tabBackground="@color/pink"
  12810.         app:tabTextColor="@color/white"
  12811.         app:layout_constraintStart_toStartOf="parent"
  12812.         app:layout_constraintTop_toTopOf="parent"
  12813.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12814.         />
  12815.     <androidx.viewpager2.widget.ViewPager2
  12816.         android:id="@+id/myviepage2"
  12817.         android:layout_width="match_parent"
  12818.         android:layout_height="0dp"
  12819.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12820.         app:layout_constraintBottom_toBottomOf="parent"
  12821.         app:layout_constraintStart_toStartOf="parent"
  12822.         />
  12823. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  12824. <?xml version="1.0" encoding="utf-8"?>
  12825. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12826.     xmlns:tools="http://schemas.android.com/tools"
  12827.     android:layout_width="match_parent"
  12828.     android:layout_height="match_parent"
  12829.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12830.     tools:context=".tablayout.TabLayoutHomeFragment">
  12831.     <com.google.android.material.tabs.TabLayout
  12832.         android:id="@+id/mytablayout2"
  12833.         android:layout_width="match_parent"
  12834.         android:layout_height="wrap_content"
  12835.         app:tabMode="auto"
  12836.         app:tabGravity="start"
  12837.         app:tabBackground="@color/pink"
  12838.         app:tabTextColor="@color/white"
  12839.         app:layout_constraintStart_toStartOf="parent"
  12840.         app:layout_constraintTop_toTopOf="parent"
  12841.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12842.         />
  12843.     <androidx.viewpager2.widget.ViewPager2
  12844.         android:id="@+id/myviepage2"
  12845.         android:layout_width="match_parent"
  12846.         android:layout_height="0dp"
  12847.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12848.         app:layout_constraintBottom_toBottomOf="parent"
  12849.         app:layout_constraintStart_toStartOf="parent"
  12850.         />
  12851. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  12852. <?xml version="1.0" encoding="utf-8"?>
  12853. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12854.     xmlns:tools="http://schemas.android.com/tools"
  12855.     android:layout_width="match_parent"
  12856.     android:layout_height="match_parent"
  12857.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12858.     tools:context=".tablayout.TabLayoutHomeFragment">
  12859.     <com.google.android.material.tabs.TabLayout
  12860.         android:id="@+id/mytablayout2"
  12861.         android:layout_width="match_parent"
  12862.         android:layout_height="wrap_content"
  12863.         app:tabMode="auto"
  12864.         app:tabGravity="start"
  12865.         app:tabBackground="@color/pink"
  12866.         app:tabTextColor="@color/white"
  12867.         app:layout_constraintStart_toStartOf="parent"
  12868.         app:layout_constraintTop_toTopOf="parent"
  12869.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12870.         />
  12871.     <androidx.viewpager2.widget.ViewPager2
  12872.         android:id="@+id/myviepage2"
  12873.         android:layout_width="match_parent"
  12874.         android:layout_height="0dp"
  12875.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12876.         app:layout_constraintBottom_toBottomOf="parent"
  12877.         app:layout_constraintStart_toStartOf="parent"
  12878.         />
  12879. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  12880. <?xml version="1.0" encoding="utf-8"?>
  12881. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12882.     xmlns:tools="http://schemas.android.com/tools"
  12883.     android:layout_width="match_parent"
  12884.     android:layout_height="match_parent"
  12885.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12886.     tools:context=".tablayout.TabLayoutHomeFragment">
  12887.     <com.google.android.material.tabs.TabLayout
  12888.         android:id="@+id/mytablayout2"
  12889.         android:layout_width="match_parent"
  12890.         android:layout_height="wrap_content"
  12891.         app:tabMode="auto"
  12892.         app:tabGravity="start"
  12893.         app:tabBackground="@color/pink"
  12894.         app:tabTextColor="@color/white"
  12895.         app:layout_constraintStart_toStartOf="parent"
  12896.         app:layout_constraintTop_toTopOf="parent"
  12897.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12898.         />
  12899.     <androidx.viewpager2.widget.ViewPager2
  12900.         android:id="@+id/myviepage2"
  12901.         android:layout_width="match_parent"
  12902.         android:layout_height="0dp"
  12903.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12904.         app:layout_constraintBottom_toBottomOf="parent"
  12905.         app:layout_constraintStart_toStartOf="parent"
  12906.         />
  12907. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  12908. <?xml version="1.0" encoding="utf-8"?>
  12909. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12910.     xmlns:tools="http://schemas.android.com/tools"
  12911.     android:layout_width="match_parent"
  12912.     android:layout_height="match_parent"
  12913.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12914.     tools:context=".tablayout.TabLayoutHomeFragment">
  12915.     <com.google.android.material.tabs.TabLayout
  12916.         android:id="@+id/mytablayout2"
  12917.         android:layout_width="match_parent"
  12918.         android:layout_height="wrap_content"
  12919.         app:tabMode="auto"
  12920.         app:tabGravity="start"
  12921.         app:tabBackground="@color/pink"
  12922.         app:tabTextColor="@color/white"
  12923.         app:layout_constraintStart_toStartOf="parent"
  12924.         app:layout_constraintTop_toTopOf="parent"
  12925.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12926.         />
  12927.     <androidx.viewpager2.widget.ViewPager2
  12928.         android:id="@+id/myviepage2"
  12929.         android:layout_width="match_parent"
  12930.         android:layout_height="0dp"
  12931.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12932.         app:layout_constraintBottom_toBottomOf="parent"
  12933.         app:layout_constraintStart_toStartOf="parent"
  12934.         />
  12935. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  12936. <?xml version="1.0" encoding="utf-8"?>
  12937. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12938.     xmlns:tools="http://schemas.android.com/tools"
  12939.     android:layout_width="match_parent"
  12940.     android:layout_height="match_parent"
  12941.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12942.     tools:context=".tablayout.TabLayoutHomeFragment">
  12943.     <com.google.android.material.tabs.TabLayout
  12944.         android:id="@+id/mytablayout2"
  12945.         android:layout_width="match_parent"
  12946.         android:layout_height="wrap_content"
  12947.         app:tabMode="auto"
  12948.         app:tabGravity="start"
  12949.         app:tabBackground="@color/pink"
  12950.         app:tabTextColor="@color/white"
  12951.         app:layout_constraintStart_toStartOf="parent"
  12952.         app:layout_constraintTop_toTopOf="parent"
  12953.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12954.         />
  12955.     <androidx.viewpager2.widget.ViewPager2
  12956.         android:id="@+id/myviepage2"
  12957.         android:layout_width="match_parent"
  12958.         android:layout_height="0dp"
  12959.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12960.         app:layout_constraintBottom_toBottomOf="parent"
  12961.         app:layout_constraintStart_toStartOf="parent"
  12962.         />
  12963. </androidx.constraintlayout.widget.ConstraintLayout>/>
  12964. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  12965. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12966.     xmlns:tools="http://schemas.android.com/tools"
  12967.     android:layout_width="match_parent"
  12968.     android:layout_height="match_parent"
  12969.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12970.     tools:context=".tablayout.TabLayoutHomeFragment">
  12971.     <com.google.android.material.tabs.TabLayout
  12972.         android:id="@+id/mytablayout2"
  12973.         android:layout_width="match_parent"
  12974.         android:layout_height="wrap_content"
  12975.         app:tabMode="auto"
  12976.         app:tabGravity="start"
  12977.         app:tabBackground="@color/pink"
  12978.         app:tabTextColor="@color/white"
  12979.         app:layout_constraintStart_toStartOf="parent"
  12980.         app:layout_constraintTop_toTopOf="parent"
  12981.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  12982.         />
  12983.     <androidx.viewpager2.widget.ViewPager2
  12984.         android:id="@+id/myviepage2"
  12985.         android:layout_width="match_parent"
  12986.         android:layout_height="0dp"
  12987.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  12988.         app:layout_constraintBottom_toBottomOf="parent"
  12989.         app:layout_constraintStart_toStartOf="parent"
  12990.         />
  12991. </androidx.constraintlayout.widget.ConstraintLayout>.replace(R.id.container_view, fragmentMap.get(R.id.setting_item))<?xml version="1.0" encoding="utf-8"?>
  12992. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12993.     xmlns:app="http://schemas.android.com/apk/res-auto"
  12994.     xmlns:tools="http://schemas.android.com/tools"
  12995.     android:layout_width="match_parent"
  12996.     android:layout_height="match_parent"
  12997.     tools:context=".ViewPager2TabLayoutActivity">
  12998.    
  12999.     <androidx.fragment.app.FragmentContainerView
  13000. <?xml version="1.0" encoding="utf-8"?>
  13001. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13002.     xmlns:tools="http://schemas.android.com/tools"
  13003.     android:layout_width="match_parent"
  13004.     android:layout_height="match_parent"
  13005.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13006.     tools:context=".tablayout.TabLayoutHomeFragment">
  13007.     <com.google.android.material.tabs.TabLayout
  13008.         android:id="@+id/mytablayout2"
  13009.         android:layout_width="match_parent"
  13010.         android:layout_height="wrap_content"
  13011.         app:tabMode="auto"
  13012.         app:tabGravity="start"
  13013.         app:tabBackground="@color/pink"
  13014.         app:tabTextColor="@color/white"
  13015.         app:layout_constraintStart_toStartOf="parent"
  13016.         app:layout_constraintTop_toTopOf="parent"
  13017.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13018.         />
  13019.     <androidx.viewpager2.widget.ViewPager2
  13020.         android:id="@+id/myviepage2"
  13021.         android:layout_width="match_parent"
  13022.         android:layout_height="0dp"
  13023.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13024.         app:layout_constraintBottom_toBottomOf="parent"
  13025.         app:layout_constraintStart_toStartOf="parent"
  13026.         />
  13027. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  13028. <?xml version="1.0" encoding="utf-8"?>
  13029. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13030.     xmlns:tools="http://schemas.android.com/tools"
  13031.     android:layout_width="match_parent"
  13032.     android:layout_height="match_parent"
  13033.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13034.     tools:context=".tablayout.TabLayoutHomeFragment">
  13035.     <com.google.android.material.tabs.TabLayout
  13036.         android:id="@+id/mytablayout2"
  13037.         android:layout_width="match_parent"
  13038.         android:layout_height="wrap_content"
  13039.         app:tabMode="auto"
  13040.         app:tabGravity="start"
  13041.         app:tabBackground="@color/pink"
  13042.         app:tabTextColor="@color/white"
  13043.         app:layout_constraintStart_toStartOf="parent"
  13044.         app:layout_constraintTop_toTopOf="parent"
  13045.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13046.         />
  13047.     <androidx.viewpager2.widget.ViewPager2
  13048.         android:id="@+id/myviepage2"
  13049.         android:layout_width="match_parent"
  13050.         android:layout_height="0dp"
  13051.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13052.         app:layout_constraintBottom_toBottomOf="parent"
  13053.         app:layout_constraintStart_toStartOf="parent"
  13054.         />
  13055. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  13056. <?xml version="1.0" encoding="utf-8"?>
  13057. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13058.     xmlns:tools="http://schemas.android.com/tools"
  13059.     android:layout_width="match_parent"
  13060.     android:layout_height="match_parent"
  13061.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13062.     tools:context=".tablayout.TabLayoutHomeFragment">
  13063.     <com.google.android.material.tabs.TabLayout
  13064.         android:id="@+id/mytablayout2"
  13065.         android:layout_width="match_parent"
  13066.         android:layout_height="wrap_content"
  13067.         app:tabMode="auto"
  13068.         app:tabGravity="start"
  13069.         app:tabBackground="@color/pink"
  13070.         app:tabTextColor="@color/white"
  13071.         app:layout_constraintStart_toStartOf="parent"
  13072.         app:layout_constraintTop_toTopOf="parent"
  13073.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13074.         />
  13075.     <androidx.viewpager2.widget.ViewPager2
  13076.         android:id="@+id/myviepage2"
  13077.         android:layout_width="match_parent"
  13078.         android:layout_height="0dp"
  13079.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13080.         app:layout_constraintBottom_toBottomOf="parent"
  13081.         app:layout_constraintStart_toStartOf="parent"
  13082.         />
  13083. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  13084. <?xml version="1.0" encoding="utf-8"?>
  13085. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13086.     xmlns:tools="http://schemas.android.com/tools"
  13087.     android:layout_width="match_parent"
  13088.     android:layout_height="match_parent"
  13089.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13090.     tools:context=".tablayout.TabLayoutHomeFragment">
  13091.     <com.google.android.material.tabs.TabLayout
  13092.         android:id="@+id/mytablayout2"
  13093.         android:layout_width="match_parent"
  13094.         android:layout_height="wrap_content"
  13095.         app:tabMode="auto"
  13096.         app:tabGravity="start"
  13097.         app:tabBackground="@color/pink"
  13098.         app:tabTextColor="@color/white"
  13099.         app:layout_constraintStart_toStartOf="parent"
  13100.         app:layout_constraintTop_toTopOf="parent"
  13101.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13102.         />
  13103.     <androidx.viewpager2.widget.ViewPager2
  13104.         android:id="@+id/myviepage2"
  13105.         android:layout_width="match_parent"
  13106.         android:layout_height="0dp"
  13107.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13108.         app:layout_constraintBottom_toBottomOf="parent"
  13109.         app:layout_constraintStart_toStartOf="parent"
  13110.         />
  13111. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  13112. <?xml version="1.0" encoding="utf-8"?>
  13113. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13114.     xmlns:tools="http://schemas.android.com/tools"
  13115.     android:layout_width="match_parent"
  13116.     android:layout_height="match_parent"
  13117.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13118.     tools:context=".tablayout.TabLayoutHomeFragment">
  13119.     <com.google.android.material.tabs.TabLayout
  13120.         android:id="@+id/mytablayout2"
  13121.         android:layout_width="match_parent"
  13122.         android:layout_height="wrap_content"
  13123.         app:tabMode="auto"
  13124.         app:tabGravity="start"
  13125.         app:tabBackground="@color/pink"
  13126.         app:tabTextColor="@color/white"
  13127.         app:layout_constraintStart_toStartOf="parent"
  13128.         app:layout_constraintTop_toTopOf="parent"
  13129.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13130.         />
  13131.     <androidx.viewpager2.widget.ViewPager2
  13132.         android:id="@+id/myviepage2"
  13133.         android:layout_width="match_parent"
  13134.         android:layout_height="0dp"
  13135.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13136.         app:layout_constraintBottom_toBottomOf="parent"
  13137.         app:layout_constraintStart_toStartOf="parent"
  13138.         />
  13139. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  13140.     <com.google.android.material.bottomnavigation.BottomNavigationView
  13141. <?xml version="1.0" encoding="utf-8"?>
  13142. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13143.     xmlns:tools="http://schemas.android.com/tools"
  13144.     android:layout_width="match_parent"
  13145.     android:layout_height="match_parent"
  13146.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13147.     tools:context=".tablayout.TabLayoutHomeFragment">
  13148.     <com.google.android.material.tabs.TabLayout
  13149.         android:id="@+id/mytablayout2"
  13150.         android:layout_width="match_parent"
  13151.         android:layout_height="wrap_content"
  13152.         app:tabMode="auto"
  13153.         app:tabGravity="start"
  13154.         app:tabBackground="@color/pink"
  13155.         app:tabTextColor="@color/white"
  13156.         app:layout_constraintStart_toStartOf="parent"
  13157.         app:layout_constraintTop_toTopOf="parent"
  13158.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13159.         />
  13160.     <androidx.viewpager2.widget.ViewPager2
  13161.         android:id="@+id/myviepage2"
  13162.         android:layout_width="match_parent"
  13163.         android:layout_height="0dp"
  13164.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13165.         app:layout_constraintBottom_toBottomOf="parent"
  13166.         app:layout_constraintStart_toStartOf="parent"
  13167.         />
  13168. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  13169. <?xml version="1.0" encoding="utf-8"?>
  13170. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13171.     xmlns:tools="http://schemas.android.com/tools"
  13172.     android:layout_width="match_parent"
  13173.     android:layout_height="match_parent"
  13174.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13175.     tools:context=".tablayout.TabLayoutHomeFragment">
  13176.     <com.google.android.material.tabs.TabLayout
  13177.         android:id="@+id/mytablayout2"
  13178.         android:layout_width="match_parent"
  13179.         android:layout_height="wrap_content"
  13180.         app:tabMode="auto"
  13181.         app:tabGravity="start"
  13182.         app:tabBackground="@color/pink"
  13183.         app:tabTextColor="@color/white"
  13184.         app:layout_constraintStart_toStartOf="parent"
  13185.         app:layout_constraintTop_toTopOf="parent"
  13186.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13187.         />
  13188.     <androidx.viewpager2.widget.ViewPager2
  13189.         android:id="@+id/myviepage2"
  13190.         android:layout_width="match_parent"
  13191.         android:layout_height="0dp"
  13192.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13193.         app:layout_constraintBottom_toBottomOf="parent"
  13194.         app:layout_constraintStart_toStartOf="parent"
  13195.         />
  13196. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  13197. <?xml version="1.0" encoding="utf-8"?>
  13198. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13199.     xmlns:tools="http://schemas.android.com/tools"
  13200.     android:layout_width="match_parent"
  13201.     android:layout_height="match_parent"
  13202.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13203.     tools:context=".tablayout.TabLayoutHomeFragment">
  13204.     <com.google.android.material.tabs.TabLayout
  13205.         android:id="@+id/mytablayout2"
  13206.         android:layout_width="match_parent"
  13207.         android:layout_height="wrap_content"
  13208.         app:tabMode="auto"
  13209.         app:tabGravity="start"
  13210.         app:tabBackground="@color/pink"
  13211.         app:tabTextColor="@color/white"
  13212.         app:layout_constraintStart_toStartOf="parent"
  13213.         app:layout_constraintTop_toTopOf="parent"
  13214.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13215.         />
  13216.     <androidx.viewpager2.widget.ViewPager2
  13217.         android:id="@+id/myviepage2"
  13218.         android:layout_width="match_parent"
  13219.         android:layout_height="0dp"
  13220.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13221.         app:layout_constraintBottom_toBottomOf="parent"
  13222.         app:layout_constraintStart_toStartOf="parent"
  13223.         />
  13224. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  13225. <?xml version="1.0" encoding="utf-8"?>
  13226. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13227.     xmlns:tools="http://schemas.android.com/tools"
  13228.     android:layout_width="match_parent"
  13229.     android:layout_height="match_parent"
  13230.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13231.     tools:context=".tablayout.TabLayoutHomeFragment">
  13232.     <com.google.android.material.tabs.TabLayout
  13233.         android:id="@+id/mytablayout2"
  13234.         android:layout_width="match_parent"
  13235.         android:layout_height="wrap_content"
  13236.         app:tabMode="auto"
  13237.         app:tabGravity="start"
  13238.         app:tabBackground="@color/pink"
  13239.         app:tabTextColor="@color/white"
  13240.         app:layout_constraintStart_toStartOf="parent"
  13241.         app:layout_constraintTop_toTopOf="parent"
  13242.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13243.         />
  13244.     <androidx.viewpager2.widget.ViewPager2
  13245.         android:id="@+id/myviepage2"
  13246.         android:layout_width="match_parent"
  13247.         android:layout_height="0dp"
  13248.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13249.         app:layout_constraintBottom_toBottomOf="parent"
  13250.         app:layout_constraintStart_toStartOf="parent"
  13251.         />
  13252. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  13253. <?xml version="1.0" encoding="utf-8"?>
  13254. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13255.     xmlns:tools="http://schemas.android.com/tools"
  13256.     android:layout_width="match_parent"
  13257.     android:layout_height="match_parent"
  13258.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13259.     tools:context=".tablayout.TabLayoutHomeFragment">
  13260.     <com.google.android.material.tabs.TabLayout
  13261.         android:id="@+id/mytablayout2"
  13262.         android:layout_width="match_parent"
  13263.         android:layout_height="wrap_content"
  13264.         app:tabMode="auto"
  13265.         app:tabGravity="start"
  13266.         app:tabBackground="@color/pink"
  13267.         app:tabTextColor="@color/white"
  13268.         app:layout_constraintStart_toStartOf="parent"
  13269.         app:layout_constraintTop_toTopOf="parent"
  13270.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13271.         />
  13272.     <androidx.viewpager2.widget.ViewPager2
  13273.         android:id="@+id/myviepage2"
  13274.         android:layout_width="match_parent"
  13275.         android:layout_height="0dp"
  13276.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13277.         app:layout_constraintBottom_toBottomOf="parent"
  13278.         app:layout_constraintStart_toStartOf="parent"
  13279.         />
  13280. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  13281. <?xml version="1.0" encoding="utf-8"?>
  13282. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13283.     xmlns:tools="http://schemas.android.com/tools"
  13284.     android:layout_width="match_parent"
  13285.     android:layout_height="match_parent"
  13286.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13287.     tools:context=".tablayout.TabLayoutHomeFragment">
  13288.     <com.google.android.material.tabs.TabLayout
  13289.         android:id="@+id/mytablayout2"
  13290.         android:layout_width="match_parent"
  13291.         android:layout_height="wrap_content"
  13292.         app:tabMode="auto"
  13293.         app:tabGravity="start"
  13294.         app:tabBackground="@color/pink"
  13295.         app:tabTextColor="@color/white"
  13296.         app:layout_constraintStart_toStartOf="parent"
  13297.         app:layout_constraintTop_toTopOf="parent"
  13298.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13299.         />
  13300.     <androidx.viewpager2.widget.ViewPager2
  13301.         android:id="@+id/myviepage2"
  13302.         android:layout_width="match_parent"
  13303.         android:layout_height="0dp"
  13304.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13305.         app:layout_constraintBottom_toBottomOf="parent"
  13306.         app:layout_constraintStart_toStartOf="parent"
  13307.         />
  13308. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  13309. <?xml version="1.0" encoding="utf-8"?>
  13310. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13311.     xmlns:tools="http://schemas.android.com/tools"
  13312.     android:layout_width="match_parent"
  13313.     android:layout_height="match_parent"
  13314.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13315.     tools:context=".tablayout.TabLayoutHomeFragment">
  13316.     <com.google.android.material.tabs.TabLayout
  13317.         android:id="@+id/mytablayout2"
  13318.         android:layout_width="match_parent"
  13319.         android:layout_height="wrap_content"
  13320.         app:tabMode="auto"
  13321.         app:tabGravity="start"
  13322.         app:tabBackground="@color/pink"
  13323.         app:tabTextColor="@color/white"
  13324.         app:layout_constraintStart_toStartOf="parent"
  13325.         app:layout_constraintTop_toTopOf="parent"
  13326.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13327.         />
  13328.     <androidx.viewpager2.widget.ViewPager2
  13329.         android:id="@+id/myviepage2"
  13330.         android:layout_width="match_parent"
  13331.         android:layout_height="0dp"
  13332.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13333.         app:layout_constraintBottom_toBottomOf="parent"
  13334.         app:layout_constraintStart_toStartOf="parent"
  13335.         />
  13336. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  13337. <?xml version="1.0" encoding="utf-8"?>
  13338. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13339.     xmlns:tools="http://schemas.android.com/tools"
  13340.     android:layout_width="match_parent"
  13341.     android:layout_height="match_parent"
  13342.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13343.     tools:context=".tablayout.TabLayoutHomeFragment">
  13344.     <com.google.android.material.tabs.TabLayout
  13345.         android:id="@+id/mytablayout2"
  13346.         android:layout_width="match_parent"
  13347.         android:layout_height="wrap_content"
  13348.         app:tabMode="auto"
  13349.         app:tabGravity="start"
  13350.         app:tabBackground="@color/pink"
  13351.         app:tabTextColor="@color/white"
  13352.         app:layout_constraintStart_toStartOf="parent"
  13353.         app:layout_constraintTop_toTopOf="parent"
  13354.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13355.         />
  13356.     <androidx.viewpager2.widget.ViewPager2
  13357.         android:id="@+id/myviepage2"
  13358.         android:layout_width="match_parent"
  13359.         android:layout_height="0dp"
  13360.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13361.         app:layout_constraintBottom_toBottomOf="parent"
  13362.         app:layout_constraintStart_toStartOf="parent"
  13363.         />
  13364. </androidx.constraintlayout.widget.ConstraintLayout>/>
  13365. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  13366. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13367.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13368.     xmlns:tools="http://schemas.android.com/tools"
  13369.     android:layout_width="match_parent"
  13370.     android:layout_height="match_parent"
  13371.     tools:context=".ViewPager2TabLayoutActivity">
  13372.    
  13373.     <androidx.fragment.app.FragmentContainerView
  13374. <?xml version="1.0" encoding="utf-8"?>
  13375. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13376.     xmlns:tools="http://schemas.android.com/tools"
  13377.     android:layout_width="match_parent"
  13378.     android:layout_height="match_parent"
  13379.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13380.     tools:context=".tablayout.TabLayoutHomeFragment">
  13381.     <com.google.android.material.tabs.TabLayout
  13382.         android:id="@+id/mytablayout2"
  13383.         android:layout_width="match_parent"
  13384.         android:layout_height="wrap_content"
  13385.         app:tabMode="auto"
  13386.         app:tabGravity="start"
  13387.         app:tabBackground="@color/pink"
  13388.         app:tabTextColor="@color/white"
  13389.         app:layout_constraintStart_toStartOf="parent"
  13390.         app:layout_constraintTop_toTopOf="parent"
  13391.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13392.         />
  13393.     <androidx.viewpager2.widget.ViewPager2
  13394.         android:id="@+id/myviepage2"
  13395.         android:layout_width="match_parent"
  13396.         android:layout_height="0dp"
  13397.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13398.         app:layout_constraintBottom_toBottomOf="parent"
  13399.         app:layout_constraintStart_toStartOf="parent"
  13400.         />
  13401. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  13402. <?xml version="1.0" encoding="utf-8"?>
  13403. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13404.     xmlns:tools="http://schemas.android.com/tools"
  13405.     android:layout_width="match_parent"
  13406.     android:layout_height="match_parent"
  13407.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13408.     tools:context=".tablayout.TabLayoutHomeFragment">
  13409.     <com.google.android.material.tabs.TabLayout
  13410.         android:id="@+id/mytablayout2"
  13411.         android:layout_width="match_parent"
  13412.         android:layout_height="wrap_content"
  13413.         app:tabMode="auto"
  13414.         app:tabGravity="start"
  13415.         app:tabBackground="@color/pink"
  13416.         app:tabTextColor="@color/white"
  13417.         app:layout_constraintStart_toStartOf="parent"
  13418.         app:layout_constraintTop_toTopOf="parent"
  13419.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13420.         />
  13421.     <androidx.viewpager2.widget.ViewPager2
  13422.         android:id="@+id/myviepage2"
  13423.         android:layout_width="match_parent"
  13424.         android:layout_height="0dp"
  13425.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13426.         app:layout_constraintBottom_toBottomOf="parent"
  13427.         app:layout_constraintStart_toStartOf="parent"
  13428.         />
  13429. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  13430. <?xml version="1.0" encoding="utf-8"?>
  13431. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13432.     xmlns:tools="http://schemas.android.com/tools"
  13433.     android:layout_width="match_parent"
  13434.     android:layout_height="match_parent"
  13435.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13436.     tools:context=".tablayout.TabLayoutHomeFragment">
  13437.     <com.google.android.material.tabs.TabLayout
  13438.         android:id="@+id/mytablayout2"
  13439.         android:layout_width="match_parent"
  13440.         android:layout_height="wrap_content"
  13441.         app:tabMode="auto"
  13442.         app:tabGravity="start"
  13443.         app:tabBackground="@color/pink"
  13444.         app:tabTextColor="@color/white"
  13445.         app:layout_constraintStart_toStartOf="parent"
  13446.         app:layout_constraintTop_toTopOf="parent"
  13447.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13448.         />
  13449.     <androidx.viewpager2.widget.ViewPager2
  13450.         android:id="@+id/myviepage2"
  13451.         android:layout_width="match_parent"
  13452.         android:layout_height="0dp"
  13453.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13454.         app:layout_constraintBottom_toBottomOf="parent"
  13455.         app:layout_constraintStart_toStartOf="parent"
  13456.         />
  13457. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  13458. <?xml version="1.0" encoding="utf-8"?>
  13459. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13460.     xmlns:tools="http://schemas.android.com/tools"
  13461.     android:layout_width="match_parent"
  13462.     android:layout_height="match_parent"
  13463.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13464.     tools:context=".tablayout.TabLayoutHomeFragment">
  13465.     <com.google.android.material.tabs.TabLayout
  13466.         android:id="@+id/mytablayout2"
  13467.         android:layout_width="match_parent"
  13468.         android:layout_height="wrap_content"
  13469.         app:tabMode="auto"
  13470.         app:tabGravity="start"
  13471.         app:tabBackground="@color/pink"
  13472.         app:tabTextColor="@color/white"
  13473.         app:layout_constraintStart_toStartOf="parent"
  13474.         app:layout_constraintTop_toTopOf="parent"
  13475.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13476.         />
  13477.     <androidx.viewpager2.widget.ViewPager2
  13478.         android:id="@+id/myviepage2"
  13479.         android:layout_width="match_parent"
  13480.         android:layout_height="0dp"
  13481.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13482.         app:layout_constraintBottom_toBottomOf="parent"
  13483.         app:layout_constraintStart_toStartOf="parent"
  13484.         />
  13485. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  13486. <?xml version="1.0" encoding="utf-8"?>
  13487. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13488.     xmlns:tools="http://schemas.android.com/tools"
  13489.     android:layout_width="match_parent"
  13490.     android:layout_height="match_parent"
  13491.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13492.     tools:context=".tablayout.TabLayoutHomeFragment">
  13493.     <com.google.android.material.tabs.TabLayout
  13494.         android:id="@+id/mytablayout2"
  13495.         android:layout_width="match_parent"
  13496.         android:layout_height="wrap_content"
  13497.         app:tabMode="auto"
  13498.         app:tabGravity="start"
  13499.         app:tabBackground="@color/pink"
  13500.         app:tabTextColor="@color/white"
  13501.         app:layout_constraintStart_toStartOf="parent"
  13502.         app:layout_constraintTop_toTopOf="parent"
  13503.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13504.         />
  13505.     <androidx.viewpager2.widget.ViewPager2
  13506.         android:id="@+id/myviepage2"
  13507.         android:layout_width="match_parent"
  13508.         android:layout_height="0dp"
  13509.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13510.         app:layout_constraintBottom_toBottomOf="parent"
  13511.         app:layout_constraintStart_toStartOf="parent"
  13512.         />
  13513. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  13514.     <com.google.android.material.bottomnavigation.BottomNavigationView
  13515. <?xml version="1.0" encoding="utf-8"?>
  13516. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13517.     xmlns:tools="http://schemas.android.com/tools"
  13518.     android:layout_width="match_parent"
  13519.     android:layout_height="match_parent"
  13520.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13521.     tools:context=".tablayout.TabLayoutHomeFragment">
  13522.     <com.google.android.material.tabs.TabLayout
  13523.         android:id="@+id/mytablayout2"
  13524.         android:layout_width="match_parent"
  13525.         android:layout_height="wrap_content"
  13526.         app:tabMode="auto"
  13527.         app:tabGravity="start"
  13528.         app:tabBackground="@color/pink"
  13529.         app:tabTextColor="@color/white"
  13530.         app:layout_constraintStart_toStartOf="parent"
  13531.         app:layout_constraintTop_toTopOf="parent"
  13532.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13533.         />
  13534.     <androidx.viewpager2.widget.ViewPager2
  13535.         android:id="@+id/myviepage2"
  13536.         android:layout_width="match_parent"
  13537.         android:layout_height="0dp"
  13538.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13539.         app:layout_constraintBottom_toBottomOf="parent"
  13540.         app:layout_constraintStart_toStartOf="parent"
  13541.         />
  13542. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  13543. <?xml version="1.0" encoding="utf-8"?>
  13544. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13545.     xmlns:tools="http://schemas.android.com/tools"
  13546.     android:layout_width="match_parent"
  13547.     android:layout_height="match_parent"
  13548.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13549.     tools:context=".tablayout.TabLayoutHomeFragment">
  13550.     <com.google.android.material.tabs.TabLayout
  13551.         android:id="@+id/mytablayout2"
  13552.         android:layout_width="match_parent"
  13553.         android:layout_height="wrap_content"
  13554.         app:tabMode="auto"
  13555.         app:tabGravity="start"
  13556.         app:tabBackground="@color/pink"
  13557.         app:tabTextColor="@color/white"
  13558.         app:layout_constraintStart_toStartOf="parent"
  13559.         app:layout_constraintTop_toTopOf="parent"
  13560.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13561.         />
  13562.     <androidx.viewpager2.widget.ViewPager2
  13563.         android:id="@+id/myviepage2"
  13564.         android:layout_width="match_parent"
  13565.         android:layout_height="0dp"
  13566.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13567.         app:layout_constraintBottom_toBottomOf="parent"
  13568.         app:layout_constraintStart_toStartOf="parent"
  13569.         />
  13570. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  13571. <?xml version="1.0" encoding="utf-8"?>
  13572. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13573.     xmlns:tools="http://schemas.android.com/tools"
  13574.     android:layout_width="match_parent"
  13575.     android:layout_height="match_parent"
  13576.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13577.     tools:context=".tablayout.TabLayoutHomeFragment">
  13578.     <com.google.android.material.tabs.TabLayout
  13579.         android:id="@+id/mytablayout2"
  13580.         android:layout_width="match_parent"
  13581.         android:layout_height="wrap_content"
  13582.         app:tabMode="auto"
  13583.         app:tabGravity="start"
  13584.         app:tabBackground="@color/pink"
  13585.         app:tabTextColor="@color/white"
  13586.         app:layout_constraintStart_toStartOf="parent"
  13587.         app:layout_constraintTop_toTopOf="parent"
  13588.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13589.         />
  13590.     <androidx.viewpager2.widget.ViewPager2
  13591.         android:id="@+id/myviepage2"
  13592.         android:layout_width="match_parent"
  13593.         android:layout_height="0dp"
  13594.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13595.         app:layout_constraintBottom_toBottomOf="parent"
  13596.         app:layout_constraintStart_toStartOf="parent"
  13597.         />
  13598. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  13599. <?xml version="1.0" encoding="utf-8"?>
  13600. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13601.     xmlns:tools="http://schemas.android.com/tools"
  13602.     android:layout_width="match_parent"
  13603.     android:layout_height="match_parent"
  13604.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13605.     tools:context=".tablayout.TabLayoutHomeFragment">
  13606.     <com.google.android.material.tabs.TabLayout
  13607.         android:id="@+id/mytablayout2"
  13608.         android:layout_width="match_parent"
  13609.         android:layout_height="wrap_content"
  13610.         app:tabMode="auto"
  13611.         app:tabGravity="start"
  13612.         app:tabBackground="@color/pink"
  13613.         app:tabTextColor="@color/white"
  13614.         app:layout_constraintStart_toStartOf="parent"
  13615.         app:layout_constraintTop_toTopOf="parent"
  13616.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13617.         />
  13618.     <androidx.viewpager2.widget.ViewPager2
  13619.         android:id="@+id/myviepage2"
  13620.         android:layout_width="match_parent"
  13621.         android:layout_height="0dp"
  13622.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13623.         app:layout_constraintBottom_toBottomOf="parent"
  13624.         app:layout_constraintStart_toStartOf="parent"
  13625.         />
  13626. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  13627. <?xml version="1.0" encoding="utf-8"?>
  13628. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13629.     xmlns:tools="http://schemas.android.com/tools"
  13630.     android:layout_width="match_parent"
  13631.     android:layout_height="match_parent"
  13632.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13633.     tools:context=".tablayout.TabLayoutHomeFragment">
  13634.     <com.google.android.material.tabs.TabLayout
  13635.         android:id="@+id/mytablayout2"
  13636.         android:layout_width="match_parent"
  13637.         android:layout_height="wrap_content"
  13638.         app:tabMode="auto"
  13639.         app:tabGravity="start"
  13640.         app:tabBackground="@color/pink"
  13641.         app:tabTextColor="@color/white"
  13642.         app:layout_constraintStart_toStartOf="parent"
  13643.         app:layout_constraintTop_toTopOf="parent"
  13644.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13645.         />
  13646.     <androidx.viewpager2.widget.ViewPager2
  13647.         android:id="@+id/myviepage2"
  13648.         android:layout_width="match_parent"
  13649.         android:layout_height="0dp"
  13650.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13651.         app:layout_constraintBottom_toBottomOf="parent"
  13652.         app:layout_constraintStart_toStartOf="parent"
  13653.         />
  13654. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  13655. <?xml version="1.0" encoding="utf-8"?>
  13656. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13657.     xmlns:tools="http://schemas.android.com/tools"
  13658.     android:layout_width="match_parent"
  13659.     android:layout_height="match_parent"
  13660.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13661.     tools:context=".tablayout.TabLayoutHomeFragment">
  13662.     <com.google.android.material.tabs.TabLayout
  13663.         android:id="@+id/mytablayout2"
  13664.         android:layout_width="match_parent"
  13665.         android:layout_height="wrap_content"
  13666.         app:tabMode="auto"
  13667.         app:tabGravity="start"
  13668.         app:tabBackground="@color/pink"
  13669.         app:tabTextColor="@color/white"
  13670.         app:layout_constraintStart_toStartOf="parent"
  13671.         app:layout_constraintTop_toTopOf="parent"
  13672.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13673.         />
  13674.     <androidx.viewpager2.widget.ViewPager2
  13675.         android:id="@+id/myviepage2"
  13676.         android:layout_width="match_parent"
  13677.         android:layout_height="0dp"
  13678.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13679.         app:layout_constraintBottom_toBottomOf="parent"
  13680.         app:layout_constraintStart_toStartOf="parent"
  13681.         />
  13682. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  13683. <?xml version="1.0" encoding="utf-8"?>
  13684. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13685.     xmlns:tools="http://schemas.android.com/tools"
  13686.     android:layout_width="match_parent"
  13687.     android:layout_height="match_parent"
  13688.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13689.     tools:context=".tablayout.TabLayoutHomeFragment">
  13690.     <com.google.android.material.tabs.TabLayout
  13691.         android:id="@+id/mytablayout2"
  13692.         android:layout_width="match_parent"
  13693.         android:layout_height="wrap_content"
  13694.         app:tabMode="auto"
  13695.         app:tabGravity="start"
  13696.         app:tabBackground="@color/pink"
  13697.         app:tabTextColor="@color/white"
  13698.         app:layout_constraintStart_toStartOf="parent"
  13699.         app:layout_constraintTop_toTopOf="parent"
  13700.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13701.         />
  13702.     <androidx.viewpager2.widget.ViewPager2
  13703.         android:id="@+id/myviepage2"
  13704.         android:layout_width="match_parent"
  13705.         android:layout_height="0dp"
  13706.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13707.         app:layout_constraintBottom_toBottomOf="parent"
  13708.         app:layout_constraintStart_toStartOf="parent"
  13709.         />
  13710. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  13711. <?xml version="1.0" encoding="utf-8"?>
  13712. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13713.     xmlns:tools="http://schemas.android.com/tools"
  13714.     android:layout_width="match_parent"
  13715.     android:layout_height="match_parent"
  13716.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13717.     tools:context=".tablayout.TabLayoutHomeFragment">
  13718.     <com.google.android.material.tabs.TabLayout
  13719.         android:id="@+id/mytablayout2"
  13720.         android:layout_width="match_parent"
  13721.         android:layout_height="wrap_content"
  13722.         app:tabMode="auto"
  13723.         app:tabGravity="start"
  13724.         app:tabBackground="@color/pink"
  13725.         app:tabTextColor="@color/white"
  13726.         app:layout_constraintStart_toStartOf="parent"
  13727.         app:layout_constraintTop_toTopOf="parent"
  13728.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13729.         />
  13730.     <androidx.viewpager2.widget.ViewPager2
  13731.         android:id="@+id/myviepage2"
  13732.         android:layout_width="match_parent"
  13733.         android:layout_height="0dp"
  13734.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13735.         app:layout_constraintBottom_toBottomOf="parent"
  13736.         app:layout_constraintStart_toStartOf="parent"
  13737.         />
  13738. </androidx.constraintlayout.widget.ConstraintLayout>/>
  13739. </androidx.constraintlayout.widget.ConstraintLayout><?xml version="1.0" encoding="utf-8"?>
  13740. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13741.     xmlns:tools="http://schemas.android.com/tools"
  13742.     android:layout_width="match_parent"
  13743.     android:layout_height="match_parent"
  13744.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13745.     tools:context=".tablayout.TabLayoutHomeFragment">
  13746.     <com.google.android.material.tabs.TabLayout
  13747.         android:id="@+id/mytablayout2"
  13748.         android:layout_width="match_parent"
  13749.         android:layout_height="wrap_content"
  13750.         app:tabMode="auto"
  13751.         app:tabGravity="start"
  13752.         app:tabBackground="@color/pink"
  13753.         app:tabTextColor="@color/white"
  13754.         app:layout_constraintStart_toStartOf="parent"
  13755.         app:layout_constraintTop_toTopOf="parent"
  13756.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13757.         />
  13758.     <androidx.viewpager2.widget.ViewPager2
  13759.         android:id="@+id/myviepage2"
  13760.         android:layout_width="match_parent"
  13761.         android:layout_height="0dp"
  13762.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13763.         app:layout_constraintBottom_toBottomOf="parent"
  13764.         app:layout_constraintStart_toStartOf="parent"
  13765.         />
  13766. </androidx.constraintlayout.widget.ConstraintLayout>.commit();<?xml version="1.0" encoding="utf-8"?>
  13767. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13768.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13769.     xmlns:tools="http://schemas.android.com/tools"
  13770.     android:layout_width="match_parent"
  13771.     android:layout_height="match_parent"
  13772.     tools:context=".ViewPager2TabLayoutActivity">
  13773.    
  13774.     <androidx.fragment.app.FragmentContainerView
  13775. <?xml version="1.0" encoding="utf-8"?>
  13776. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13777.     xmlns:tools="http://schemas.android.com/tools"
  13778.     android:layout_width="match_parent"
  13779.     android:layout_height="match_parent"
  13780.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13781.     tools:context=".tablayout.TabLayoutHomeFragment">
  13782.     <com.google.android.material.tabs.TabLayout
  13783.         android:id="@+id/mytablayout2"
  13784.         android:layout_width="match_parent"
  13785.         android:layout_height="wrap_content"
  13786.         app:tabMode="auto"
  13787.         app:tabGravity="start"
  13788.         app:tabBackground="@color/pink"
  13789.         app:tabTextColor="@color/white"
  13790.         app:layout_constraintStart_toStartOf="parent"
  13791.         app:layout_constraintTop_toTopOf="parent"
  13792.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13793.         />
  13794.     <androidx.viewpager2.widget.ViewPager2
  13795.         android:id="@+id/myviepage2"
  13796.         android:layout_width="match_parent"
  13797.         android:layout_height="0dp"
  13798.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13799.         app:layout_constraintBottom_toBottomOf="parent"
  13800.         app:layout_constraintStart_toStartOf="parent"
  13801.         />
  13802. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  13803. <?xml version="1.0" encoding="utf-8"?>
  13804. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13805.     xmlns:tools="http://schemas.android.com/tools"
  13806.     android:layout_width="match_parent"
  13807.     android:layout_height="match_parent"
  13808.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13809.     tools:context=".tablayout.TabLayoutHomeFragment">
  13810.     <com.google.android.material.tabs.TabLayout
  13811.         android:id="@+id/mytablayout2"
  13812.         android:layout_width="match_parent"
  13813.         android:layout_height="wrap_content"
  13814.         app:tabMode="auto"
  13815.         app:tabGravity="start"
  13816.         app:tabBackground="@color/pink"
  13817.         app:tabTextColor="@color/white"
  13818.         app:layout_constraintStart_toStartOf="parent"
  13819.         app:layout_constraintTop_toTopOf="parent"
  13820.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13821.         />
  13822.     <androidx.viewpager2.widget.ViewPager2
  13823.         android:id="@+id/myviepage2"
  13824.         android:layout_width="match_parent"
  13825.         android:layout_height="0dp"
  13826.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13827.         app:layout_constraintBottom_toBottomOf="parent"
  13828.         app:layout_constraintStart_toStartOf="parent"
  13829.         />
  13830. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  13831. <?xml version="1.0" encoding="utf-8"?>
  13832. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13833.     xmlns:tools="http://schemas.android.com/tools"
  13834.     android:layout_width="match_parent"
  13835.     android:layout_height="match_parent"
  13836.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13837.     tools:context=".tablayout.TabLayoutHomeFragment">
  13838.     <com.google.android.material.tabs.TabLayout
  13839.         android:id="@+id/mytablayout2"
  13840.         android:layout_width="match_parent"
  13841.         android:layout_height="wrap_content"
  13842.         app:tabMode="auto"
  13843.         app:tabGravity="start"
  13844.         app:tabBackground="@color/pink"
  13845.         app:tabTextColor="@color/white"
  13846.         app:layout_constraintStart_toStartOf="parent"
  13847.         app:layout_constraintTop_toTopOf="parent"
  13848.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13849.         />
  13850.     <androidx.viewpager2.widget.ViewPager2
  13851.         android:id="@+id/myviepage2"
  13852.         android:layout_width="match_parent"
  13853.         android:layout_height="0dp"
  13854.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13855.         app:layout_constraintBottom_toBottomOf="parent"
  13856.         app:layout_constraintStart_toStartOf="parent"
  13857.         />
  13858. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  13859. <?xml version="1.0" encoding="utf-8"?>
  13860. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13861.     xmlns:tools="http://schemas.android.com/tools"
  13862.     android:layout_width="match_parent"
  13863.     android:layout_height="match_parent"
  13864.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13865.     tools:context=".tablayout.TabLayoutHomeFragment">
  13866.     <com.google.android.material.tabs.TabLayout
  13867.         android:id="@+id/mytablayout2"
  13868.         android:layout_width="match_parent"
  13869.         android:layout_height="wrap_content"
  13870.         app:tabMode="auto"
  13871.         app:tabGravity="start"
  13872.         app:tabBackground="@color/pink"
  13873.         app:tabTextColor="@color/white"
  13874.         app:layout_constraintStart_toStartOf="parent"
  13875.         app:layout_constraintTop_toTopOf="parent"
  13876.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13877.         />
  13878.     <androidx.viewpager2.widget.ViewPager2
  13879.         android:id="@+id/myviepage2"
  13880.         android:layout_width="match_parent"
  13881.         android:layout_height="0dp"
  13882.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13883.         app:layout_constraintBottom_toBottomOf="parent"
  13884.         app:layout_constraintStart_toStartOf="parent"
  13885.         />
  13886. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  13887. <?xml version="1.0" encoding="utf-8"?>
  13888. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13889.     xmlns:tools="http://schemas.android.com/tools"
  13890.     android:layout_width="match_parent"
  13891.     android:layout_height="match_parent"
  13892.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13893.     tools:context=".tablayout.TabLayoutHomeFragment">
  13894.     <com.google.android.material.tabs.TabLayout
  13895.         android:id="@+id/mytablayout2"
  13896.         android:layout_width="match_parent"
  13897.         android:layout_height="wrap_content"
  13898.         app:tabMode="auto"
  13899.         app:tabGravity="start"
  13900.         app:tabBackground="@color/pink"
  13901.         app:tabTextColor="@color/white"
  13902.         app:layout_constraintStart_toStartOf="parent"
  13903.         app:layout_constraintTop_toTopOf="parent"
  13904.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13905.         />
  13906.     <androidx.viewpager2.widget.ViewPager2
  13907.         android:id="@+id/myviepage2"
  13908.         android:layout_width="match_parent"
  13909.         android:layout_height="0dp"
  13910.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13911.         app:layout_constraintBottom_toBottomOf="parent"
  13912.         app:layout_constraintStart_toStartOf="parent"
  13913.         />
  13914. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  13915.     <com.google.android.material.bottomnavigation.BottomNavigationView
  13916. <?xml version="1.0" encoding="utf-8"?>
  13917. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13918.     xmlns:tools="http://schemas.android.com/tools"
  13919.     android:layout_width="match_parent"
  13920.     android:layout_height="match_parent"
  13921.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13922.     tools:context=".tablayout.TabLayoutHomeFragment">
  13923.     <com.google.android.material.tabs.TabLayout
  13924.         android:id="@+id/mytablayout2"
  13925.         android:layout_width="match_parent"
  13926.         android:layout_height="wrap_content"
  13927.         app:tabMode="auto"
  13928.         app:tabGravity="start"
  13929.         app:tabBackground="@color/pink"
  13930.         app:tabTextColor="@color/white"
  13931.         app:layout_constraintStart_toStartOf="parent"
  13932.         app:layout_constraintTop_toTopOf="parent"
  13933.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13934.         />
  13935.     <androidx.viewpager2.widget.ViewPager2
  13936.         android:id="@+id/myviepage2"
  13937.         android:layout_width="match_parent"
  13938.         android:layout_height="0dp"
  13939.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13940.         app:layout_constraintBottom_toBottomOf="parent"
  13941.         app:layout_constraintStart_toStartOf="parent"
  13942.         />
  13943. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  13944. <?xml version="1.0" encoding="utf-8"?>
  13945. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13946.     xmlns:tools="http://schemas.android.com/tools"
  13947.     android:layout_width="match_parent"
  13948.     android:layout_height="match_parent"
  13949.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13950.     tools:context=".tablayout.TabLayoutHomeFragment">
  13951.     <com.google.android.material.tabs.TabLayout
  13952.         android:id="@+id/mytablayout2"
  13953.         android:layout_width="match_parent"
  13954.         android:layout_height="wrap_content"
  13955.         app:tabMode="auto"
  13956.         app:tabGravity="start"
  13957.         app:tabBackground="@color/pink"
  13958.         app:tabTextColor="@color/white"
  13959.         app:layout_constraintStart_toStartOf="parent"
  13960.         app:layout_constraintTop_toTopOf="parent"
  13961.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13962.         />
  13963.     <androidx.viewpager2.widget.ViewPager2
  13964.         android:id="@+id/myviepage2"
  13965.         android:layout_width="match_parent"
  13966.         android:layout_height="0dp"
  13967.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13968.         app:layout_constraintBottom_toBottomOf="parent"
  13969.         app:layout_constraintStart_toStartOf="parent"
  13970.         />
  13971. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  13972. <?xml version="1.0" encoding="utf-8"?>
  13973. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13974.     xmlns:tools="http://schemas.android.com/tools"
  13975.     android:layout_width="match_parent"
  13976.     android:layout_height="match_parent"
  13977.     xmlns:app="http://schemas.android.com/apk/res-auto"
  13978.     tools:context=".tablayout.TabLayoutHomeFragment">
  13979.     <com.google.android.material.tabs.TabLayout
  13980.         android:id="@+id/mytablayout2"
  13981.         android:layout_width="match_parent"
  13982.         android:layout_height="wrap_content"
  13983.         app:tabMode="auto"
  13984.         app:tabGravity="start"
  13985.         app:tabBackground="@color/pink"
  13986.         app:tabTextColor="@color/white"
  13987.         app:layout_constraintStart_toStartOf="parent"
  13988.         app:layout_constraintTop_toTopOf="parent"
  13989.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  13990.         />
  13991.     <androidx.viewpager2.widget.ViewPager2
  13992.         android:id="@+id/myviepage2"
  13993.         android:layout_width="match_parent"
  13994.         android:layout_height="0dp"
  13995.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  13996.         app:layout_constraintBottom_toBottomOf="parent"
  13997.         app:layout_constraintStart_toStartOf="parent"
  13998.         />
  13999. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  14000. <?xml version="1.0" encoding="utf-8"?>
  14001. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14002.     xmlns:tools="http://schemas.android.com/tools"
  14003.     android:layout_width="match_parent"
  14004.     android:layout_height="match_parent"
  14005.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14006.     tools:context=".tablayout.TabLayoutHomeFragment">
  14007.     <com.google.android.material.tabs.TabLayout
  14008.         android:id="@+id/mytablayout2"
  14009.         android:layout_width="match_parent"
  14010.         android:layout_height="wrap_content"
  14011.         app:tabMode="auto"
  14012.         app:tabGravity="start"
  14013.         app:tabBackground="@color/pink"
  14014.         app:tabTextColor="@color/white"
  14015.         app:layout_constraintStart_toStartOf="parent"
  14016.         app:layout_constraintTop_toTopOf="parent"
  14017.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14018.         />
  14019.     <androidx.viewpager2.widget.ViewPager2
  14020.         android:id="@+id/myviepage2"
  14021.         android:layout_width="match_parent"
  14022.         android:layout_height="0dp"
  14023.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14024.         app:layout_constraintBottom_toBottomOf="parent"
  14025.         app:layout_constraintStart_toStartOf="parent"
  14026.         />
  14027. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  14028. <?xml version="1.0" encoding="utf-8"?>
  14029. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14030.     xmlns:tools="http://schemas.android.com/tools"
  14031.     android:layout_width="match_parent"
  14032.     android:layout_height="match_parent"
  14033.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14034.     tools:context=".tablayout.TabLayoutHomeFragment">
  14035.     <com.google.android.material.tabs.TabLayout
  14036.         android:id="@+id/mytablayout2"
  14037.         android:layout_width="match_parent"
  14038.         android:layout_height="wrap_content"
  14039.         app:tabMode="auto"
  14040.         app:tabGravity="start"
  14041.         app:tabBackground="@color/pink"
  14042.         app:tabTextColor="@color/white"
  14043.         app:layout_constraintStart_toStartOf="parent"
  14044.         app:layout_constraintTop_toTopOf="parent"
  14045.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14046.         />
  14047.     <androidx.viewpager2.widget.ViewPager2
  14048.         android:id="@+id/myviepage2"
  14049.         android:layout_width="match_parent"
  14050.         android:layout_height="0dp"
  14051.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14052.         app:layout_constraintBottom_toBottomOf="parent"
  14053.         app:layout_constraintStart_toStartOf="parent"
  14054.         />
  14055. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  14056. <?xml version="1.0" encoding="utf-8"?>
  14057. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14058.     xmlns:tools="http://schemas.android.com/tools"
  14059.     android:layout_width="match_parent"
  14060.     android:layout_height="match_parent"
  14061.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14062.     tools:context=".tablayout.TabLayoutHomeFragment">
  14063.     <com.google.android.material.tabs.TabLayout
  14064.         android:id="@+id/mytablayout2"
  14065.         android:layout_width="match_parent"
  14066.         android:layout_height="wrap_content"
  14067.         app:tabMode="auto"
  14068.         app:tabGravity="start"
  14069.         app:tabBackground="@color/pink"
  14070.         app:tabTextColor="@color/white"
  14071.         app:layout_constraintStart_toStartOf="parent"
  14072.         app:layout_constraintTop_toTopOf="parent"
  14073.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14074.         />
  14075.     <androidx.viewpager2.widget.ViewPager2
  14076.         android:id="@+id/myviepage2"
  14077.         android:layout_width="match_parent"
  14078.         android:layout_height="0dp"
  14079.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14080.         app:layout_constraintBottom_toBottomOf="parent"
  14081.         app:layout_constraintStart_toStartOf="parent"
  14082.         />
  14083. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  14084. <?xml version="1.0" encoding="utf-8"?>
  14085. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14086.     xmlns:tools="http://schemas.android.com/tools"
  14087.     android:layout_width="match_parent"
  14088.     android:layout_height="match_parent"
  14089.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14090.     tools:context=".tablayout.TabLayoutHomeFragment">
  14091.     <com.google.android.material.tabs.TabLayout
  14092.         android:id="@+id/mytablayout2"
  14093.         android:layout_width="match_parent"
  14094.         android:layout_height="wrap_content"
  14095.         app:tabMode="auto"
  14096.         app:tabGravity="start"
  14097.         app:tabBackground="@color/pink"
  14098.         app:tabTextColor="@color/white"
  14099.         app:layout_constraintStart_toStartOf="parent"
  14100.         app:layout_constraintTop_toTopOf="parent"
  14101.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14102.         />
  14103.     <androidx.viewpager2.widget.ViewPager2
  14104.         android:id="@+id/myviepage2"
  14105.         android:layout_width="match_parent"
  14106.         android:layout_height="0dp"
  14107.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14108.         app:layout_constraintBottom_toBottomOf="parent"
  14109.         app:layout_constraintStart_toStartOf="parent"
  14110.         />
  14111. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  14112. <?xml version="1.0" encoding="utf-8"?>
  14113. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14114.     xmlns:tools="http://schemas.android.com/tools"
  14115.     android:layout_width="match_parent"
  14116.     android:layout_height="match_parent"
  14117.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14118.     tools:context=".tablayout.TabLayoutHomeFragment">
  14119.     <com.google.android.material.tabs.TabLayout
  14120.         android:id="@+id/mytablayout2"
  14121.         android:layout_width="match_parent"
  14122.         android:layout_height="wrap_content"
  14123.         app:tabMode="auto"
  14124.         app:tabGravity="start"
  14125.         app:tabBackground="@color/pink"
  14126.         app:tabTextColor="@color/white"
  14127.         app:layout_constraintStart_toStartOf="parent"
  14128.         app:layout_constraintTop_toTopOf="parent"
  14129.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14130.         />
  14131.     <androidx.viewpager2.widget.ViewPager2
  14132.         android:id="@+id/myviepage2"
  14133.         android:layout_width="match_parent"
  14134.         android:layout_height="0dp"
  14135.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14136.         app:layout_constraintBottom_toBottomOf="parent"
  14137.         app:layout_constraintStart_toStartOf="parent"
  14138.         />
  14139. </androidx.constraintlayout.widget.ConstraintLayout>/>
  14140. </androidx.constraintlayout.widget.ConstraintLayout>    }<?xml version="1.0" encoding="utf-8"?>
  14141. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14142.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14143.     xmlns:tools="http://schemas.android.com/tools"
  14144.     android:layout_width="match_parent"
  14145.     android:layout_height="match_parent"
  14146.     tools:context=".ViewPager2TabLayoutActivity">
  14147.    
  14148.     <androidx.fragment.app.FragmentContainerView
  14149. <?xml version="1.0" encoding="utf-8"?>
  14150. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14151.     xmlns:tools="http://schemas.android.com/tools"
  14152.     android:layout_width="match_parent"
  14153.     android:layout_height="match_parent"
  14154.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14155.     tools:context=".tablayout.TabLayoutHomeFragment">
  14156.     <com.google.android.material.tabs.TabLayout
  14157.         android:id="@+id/mytablayout2"
  14158.         android:layout_width="match_parent"
  14159.         android:layout_height="wrap_content"
  14160.         app:tabMode="auto"
  14161.         app:tabGravity="start"
  14162.         app:tabBackground="@color/pink"
  14163.         app:tabTextColor="@color/white"
  14164.         app:layout_constraintStart_toStartOf="parent"
  14165.         app:layout_constraintTop_toTopOf="parent"
  14166.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14167.         />
  14168.     <androidx.viewpager2.widget.ViewPager2
  14169.         android:id="@+id/myviepage2"
  14170.         android:layout_width="match_parent"
  14171.         android:layout_height="0dp"
  14172.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14173.         app:layout_constraintBottom_toBottomOf="parent"
  14174.         app:layout_constraintStart_toStartOf="parent"
  14175.         />
  14176. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  14177. <?xml version="1.0" encoding="utf-8"?>
  14178. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14179.     xmlns:tools="http://schemas.android.com/tools"
  14180.     android:layout_width="match_parent"
  14181.     android:layout_height="match_parent"
  14182.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14183.     tools:context=".tablayout.TabLayoutHomeFragment">
  14184.     <com.google.android.material.tabs.TabLayout
  14185.         android:id="@+id/mytablayout2"
  14186.         android:layout_width="match_parent"
  14187.         android:layout_height="wrap_content"
  14188.         app:tabMode="auto"
  14189.         app:tabGravity="start"
  14190.         app:tabBackground="@color/pink"
  14191.         app:tabTextColor="@color/white"
  14192.         app:layout_constraintStart_toStartOf="parent"
  14193.         app:layout_constraintTop_toTopOf="parent"
  14194.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14195.         />
  14196.     <androidx.viewpager2.widget.ViewPager2
  14197.         android:id="@+id/myviepage2"
  14198.         android:layout_width="match_parent"
  14199.         android:layout_height="0dp"
  14200.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14201.         app:layout_constraintBottom_toBottomOf="parent"
  14202.         app:layout_constraintStart_toStartOf="parent"
  14203.         />
  14204. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  14205. <?xml version="1.0" encoding="utf-8"?>
  14206. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14207.     xmlns:tools="http://schemas.android.com/tools"
  14208.     android:layout_width="match_parent"
  14209.     android:layout_height="match_parent"
  14210.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14211.     tools:context=".tablayout.TabLayoutHomeFragment">
  14212.     <com.google.android.material.tabs.TabLayout
  14213.         android:id="@+id/mytablayout2"
  14214.         android:layout_width="match_parent"
  14215.         android:layout_height="wrap_content"
  14216.         app:tabMode="auto"
  14217.         app:tabGravity="start"
  14218.         app:tabBackground="@color/pink"
  14219.         app:tabTextColor="@color/white"
  14220.         app:layout_constraintStart_toStartOf="parent"
  14221.         app:layout_constraintTop_toTopOf="parent"
  14222.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14223.         />
  14224.     <androidx.viewpager2.widget.ViewPager2
  14225.         android:id="@+id/myviepage2"
  14226.         android:layout_width="match_parent"
  14227.         android:layout_height="0dp"
  14228.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14229.         app:layout_constraintBottom_toBottomOf="parent"
  14230.         app:layout_constraintStart_toStartOf="parent"
  14231.         />
  14232. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  14233. <?xml version="1.0" encoding="utf-8"?>
  14234. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14235.     xmlns:tools="http://schemas.android.com/tools"
  14236.     android:layout_width="match_parent"
  14237.     android:layout_height="match_parent"
  14238.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14239.     tools:context=".tablayout.TabLayoutHomeFragment">
  14240.     <com.google.android.material.tabs.TabLayout
  14241.         android:id="@+id/mytablayout2"
  14242.         android:layout_width="match_parent"
  14243.         android:layout_height="wrap_content"
  14244.         app:tabMode="auto"
  14245.         app:tabGravity="start"
  14246.         app:tabBackground="@color/pink"
  14247.         app:tabTextColor="@color/white"
  14248.         app:layout_constraintStart_toStartOf="parent"
  14249.         app:layout_constraintTop_toTopOf="parent"
  14250.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14251.         />
  14252.     <androidx.viewpager2.widget.ViewPager2
  14253.         android:id="@+id/myviepage2"
  14254.         android:layout_width="match_parent"
  14255.         android:layout_height="0dp"
  14256.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14257.         app:layout_constraintBottom_toBottomOf="parent"
  14258.         app:layout_constraintStart_toStartOf="parent"
  14259.         />
  14260. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  14261. <?xml version="1.0" encoding="utf-8"?>
  14262. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14263.     xmlns:tools="http://schemas.android.com/tools"
  14264.     android:layout_width="match_parent"
  14265.     android:layout_height="match_parent"
  14266.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14267.     tools:context=".tablayout.TabLayoutHomeFragment">
  14268.     <com.google.android.material.tabs.TabLayout
  14269.         android:id="@+id/mytablayout2"
  14270.         android:layout_width="match_parent"
  14271.         android:layout_height="wrap_content"
  14272.         app:tabMode="auto"
  14273.         app:tabGravity="start"
  14274.         app:tabBackground="@color/pink"
  14275.         app:tabTextColor="@color/white"
  14276.         app:layout_constraintStart_toStartOf="parent"
  14277.         app:layout_constraintTop_toTopOf="parent"
  14278.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14279.         />
  14280.     <androidx.viewpager2.widget.ViewPager2
  14281.         android:id="@+id/myviepage2"
  14282.         android:layout_width="match_parent"
  14283.         android:layout_height="0dp"
  14284.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14285.         app:layout_constraintBottom_toBottomOf="parent"
  14286.         app:layout_constraintStart_toStartOf="parent"
  14287.         />
  14288. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  14289.     <com.google.android.material.bottomnavigation.BottomNavigationView
  14290. <?xml version="1.0" encoding="utf-8"?>
  14291. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14292.     xmlns:tools="http://schemas.android.com/tools"
  14293.     android:layout_width="match_parent"
  14294.     android:layout_height="match_parent"
  14295.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14296.     tools:context=".tablayout.TabLayoutHomeFragment">
  14297.     <com.google.android.material.tabs.TabLayout
  14298.         android:id="@+id/mytablayout2"
  14299.         android:layout_width="match_parent"
  14300.         android:layout_height="wrap_content"
  14301.         app:tabMode="auto"
  14302.         app:tabGravity="start"
  14303.         app:tabBackground="@color/pink"
  14304.         app:tabTextColor="@color/white"
  14305.         app:layout_constraintStart_toStartOf="parent"
  14306.         app:layout_constraintTop_toTopOf="parent"
  14307.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14308.         />
  14309.     <androidx.viewpager2.widget.ViewPager2
  14310.         android:id="@+id/myviepage2"
  14311.         android:layout_width="match_parent"
  14312.         android:layout_height="0dp"
  14313.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14314.         app:layout_constraintBottom_toBottomOf="parent"
  14315.         app:layout_constraintStart_toStartOf="parent"
  14316.         />
  14317. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  14318. <?xml version="1.0" encoding="utf-8"?>
  14319. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14320.     xmlns:tools="http://schemas.android.com/tools"
  14321.     android:layout_width="match_parent"
  14322.     android:layout_height="match_parent"
  14323.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14324.     tools:context=".tablayout.TabLayoutHomeFragment">
  14325.     <com.google.android.material.tabs.TabLayout
  14326.         android:id="@+id/mytablayout2"
  14327.         android:layout_width="match_parent"
  14328.         android:layout_height="wrap_content"
  14329.         app:tabMode="auto"
  14330.         app:tabGravity="start"
  14331.         app:tabBackground="@color/pink"
  14332.         app:tabTextColor="@color/white"
  14333.         app:layout_constraintStart_toStartOf="parent"
  14334.         app:layout_constraintTop_toTopOf="parent"
  14335.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14336.         />
  14337.     <androidx.viewpager2.widget.ViewPager2
  14338.         android:id="@+id/myviepage2"
  14339.         android:layout_width="match_parent"
  14340.         android:layout_height="0dp"
  14341.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14342.         app:layout_constraintBottom_toBottomOf="parent"
  14343.         app:layout_constraintStart_toStartOf="parent"
  14344.         />
  14345. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  14346. <?xml version="1.0" encoding="utf-8"?>
  14347. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14348.     xmlns:tools="http://schemas.android.com/tools"
  14349.     android:layout_width="match_parent"
  14350.     android:layout_height="match_parent"
  14351.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14352.     tools:context=".tablayout.TabLayoutHomeFragment">
  14353.     <com.google.android.material.tabs.TabLayout
  14354.         android:id="@+id/mytablayout2"
  14355.         android:layout_width="match_parent"
  14356.         android:layout_height="wrap_content"
  14357.         app:tabMode="auto"
  14358.         app:tabGravity="start"
  14359.         app:tabBackground="@color/pink"
  14360.         app:tabTextColor="@color/white"
  14361.         app:layout_constraintStart_toStartOf="parent"
  14362.         app:layout_constraintTop_toTopOf="parent"
  14363.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14364.         />
  14365.     <androidx.viewpager2.widget.ViewPager2
  14366.         android:id="@+id/myviepage2"
  14367.         android:layout_width="match_parent"
  14368.         android:layout_height="0dp"
  14369.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14370.         app:layout_constraintBottom_toBottomOf="parent"
  14371.         app:layout_constraintStart_toStartOf="parent"
  14372.         />
  14373. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  14374. <?xml version="1.0" encoding="utf-8"?>
  14375. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14376.     xmlns:tools="http://schemas.android.com/tools"
  14377.     android:layout_width="match_parent"
  14378.     android:layout_height="match_parent"
  14379.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14380.     tools:context=".tablayout.TabLayoutHomeFragment">
  14381.     <com.google.android.material.tabs.TabLayout
  14382.         android:id="@+id/mytablayout2"
  14383.         android:layout_width="match_parent"
  14384.         android:layout_height="wrap_content"
  14385.         app:tabMode="auto"
  14386.         app:tabGravity="start"
  14387.         app:tabBackground="@color/pink"
  14388.         app:tabTextColor="@color/white"
  14389.         app:layout_constraintStart_toStartOf="parent"
  14390.         app:layout_constraintTop_toTopOf="parent"
  14391.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14392.         />
  14393.     <androidx.viewpager2.widget.ViewPager2
  14394.         android:id="@+id/myviepage2"
  14395.         android:layout_width="match_parent"
  14396.         android:layout_height="0dp"
  14397.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14398.         app:layout_constraintBottom_toBottomOf="parent"
  14399.         app:layout_constraintStart_toStartOf="parent"
  14400.         />
  14401. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  14402. <?xml version="1.0" encoding="utf-8"?>
  14403. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14404.     xmlns:tools="http://schemas.android.com/tools"
  14405.     android:layout_width="match_parent"
  14406.     android:layout_height="match_parent"
  14407.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14408.     tools:context=".tablayout.TabLayoutHomeFragment">
  14409.     <com.google.android.material.tabs.TabLayout
  14410.         android:id="@+id/mytablayout2"
  14411.         android:layout_width="match_parent"
  14412.         android:layout_height="wrap_content"
  14413.         app:tabMode="auto"
  14414.         app:tabGravity="start"
  14415.         app:tabBackground="@color/pink"
  14416.         app:tabTextColor="@color/white"
  14417.         app:layout_constraintStart_toStartOf="parent"
  14418.         app:layout_constraintTop_toTopOf="parent"
  14419.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14420.         />
  14421.     <androidx.viewpager2.widget.ViewPager2
  14422.         android:id="@+id/myviepage2"
  14423.         android:layout_width="match_parent"
  14424.         android:layout_height="0dp"
  14425.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14426.         app:layout_constraintBottom_toBottomOf="parent"
  14427.         app:layout_constraintStart_toStartOf="parent"
  14428.         />
  14429. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  14430. <?xml version="1.0" encoding="utf-8"?>
  14431. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14432.     xmlns:tools="http://schemas.android.com/tools"
  14433.     android:layout_width="match_parent"
  14434.     android:layout_height="match_parent"
  14435.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14436.     tools:context=".tablayout.TabLayoutHomeFragment">
  14437.     <com.google.android.material.tabs.TabLayout
  14438.         android:id="@+id/mytablayout2"
  14439.         android:layout_width="match_parent"
  14440.         android:layout_height="wrap_content"
  14441.         app:tabMode="auto"
  14442.         app:tabGravity="start"
  14443.         app:tabBackground="@color/pink"
  14444.         app:tabTextColor="@color/white"
  14445.         app:layout_constraintStart_toStartOf="parent"
  14446.         app:layout_constraintTop_toTopOf="parent"
  14447.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14448.         />
  14449.     <androidx.viewpager2.widget.ViewPager2
  14450.         android:id="@+id/myviepage2"
  14451.         android:layout_width="match_parent"
  14452.         android:layout_height="0dp"
  14453.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14454.         app:layout_constraintBottom_toBottomOf="parent"
  14455.         app:layout_constraintStart_toStartOf="parent"
  14456.         />
  14457. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  14458. <?xml version="1.0" encoding="utf-8"?>
  14459. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14460.     xmlns:tools="http://schemas.android.com/tools"
  14461.     android:layout_width="match_parent"
  14462.     android:layout_height="match_parent"
  14463.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14464.     tools:context=".tablayout.TabLayoutHomeFragment">
  14465.     <com.google.android.material.tabs.TabLayout
  14466.         android:id="@+id/mytablayout2"
  14467.         android:layout_width="match_parent"
  14468.         android:layout_height="wrap_content"
  14469.         app:tabMode="auto"
  14470.         app:tabGravity="start"
  14471.         app:tabBackground="@color/pink"
  14472.         app:tabTextColor="@color/white"
  14473.         app:layout_constraintStart_toStartOf="parent"
  14474.         app:layout_constraintTop_toTopOf="parent"
  14475.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14476.         />
  14477.     <androidx.viewpager2.widget.ViewPager2
  14478.         android:id="@+id/myviepage2"
  14479.         android:layout_width="match_parent"
  14480.         android:layout_height="0dp"
  14481.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14482.         app:layout_constraintBottom_toBottomOf="parent"
  14483.         app:layout_constraintStart_toStartOf="parent"
  14484.         />
  14485. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  14486. <?xml version="1.0" encoding="utf-8"?>
  14487. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14488.     xmlns:tools="http://schemas.android.com/tools"
  14489.     android:layout_width="match_parent"
  14490.     android:layout_height="match_parent"
  14491.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14492.     tools:context=".tablayout.TabLayoutHomeFragment">
  14493.     <com.google.android.material.tabs.TabLayout
  14494.         android:id="@+id/mytablayout2"
  14495.         android:layout_width="match_parent"
  14496.         android:layout_height="wrap_content"
  14497.         app:tabMode="auto"
  14498.         app:tabGravity="start"
  14499.         app:tabBackground="@color/pink"
  14500.         app:tabTextColor="@color/white"
  14501.         app:layout_constraintStart_toStartOf="parent"
  14502.         app:layout_constraintTop_toTopOf="parent"
  14503.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14504.         />
  14505.     <androidx.viewpager2.widget.ViewPager2
  14506.         android:id="@+id/myviepage2"
  14507.         android:layout_width="match_parent"
  14508.         android:layout_height="0dp"
  14509.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14510.         app:layout_constraintBottom_toBottomOf="parent"
  14511.         app:layout_constraintStart_toStartOf="parent"
  14512.         />
  14513. </androidx.constraintlayout.widget.ConstraintLayout>/>
  14514. </androidx.constraintlayout.widget.ConstraintLayout>    return true;<?xml version="1.0" encoding="utf-8"?>
  14515. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14516.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14517.     xmlns:tools="http://schemas.android.com/tools"
  14518.     android:layout_width="match_parent"
  14519.     android:layout_height="match_parent"
  14520.     tools:context=".ViewPager2TabLayoutActivity">
  14521.    
  14522.     <androidx.fragment.app.FragmentContainerView
  14523. <?xml version="1.0" encoding="utf-8"?>
  14524. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14525.     xmlns:tools="http://schemas.android.com/tools"
  14526.     android:layout_width="match_parent"
  14527.     android:layout_height="match_parent"
  14528.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14529.     tools:context=".tablayout.TabLayoutHomeFragment">
  14530.     <com.google.android.material.tabs.TabLayout
  14531.         android:id="@+id/mytablayout2"
  14532.         android:layout_width="match_parent"
  14533.         android:layout_height="wrap_content"
  14534.         app:tabMode="auto"
  14535.         app:tabGravity="start"
  14536.         app:tabBackground="@color/pink"
  14537.         app:tabTextColor="@color/white"
  14538.         app:layout_constraintStart_toStartOf="parent"
  14539.         app:layout_constraintTop_toTopOf="parent"
  14540.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14541.         />
  14542.     <androidx.viewpager2.widget.ViewPager2
  14543.         android:id="@+id/myviepage2"
  14544.         android:layout_width="match_parent"
  14545.         android:layout_height="0dp"
  14546.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14547.         app:layout_constraintBottom_toBottomOf="parent"
  14548.         app:layout_constraintStart_toStartOf="parent"
  14549.         />
  14550. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  14551. <?xml version="1.0" encoding="utf-8"?>
  14552. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14553.     xmlns:tools="http://schemas.android.com/tools"
  14554.     android:layout_width="match_parent"
  14555.     android:layout_height="match_parent"
  14556.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14557.     tools:context=".tablayout.TabLayoutHomeFragment">
  14558.     <com.google.android.material.tabs.TabLayout
  14559.         android:id="@+id/mytablayout2"
  14560.         android:layout_width="match_parent"
  14561.         android:layout_height="wrap_content"
  14562.         app:tabMode="auto"
  14563.         app:tabGravity="start"
  14564.         app:tabBackground="@color/pink"
  14565.         app:tabTextColor="@color/white"
  14566.         app:layout_constraintStart_toStartOf="parent"
  14567.         app:layout_constraintTop_toTopOf="parent"
  14568.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14569.         />
  14570.     <androidx.viewpager2.widget.ViewPager2
  14571.         android:id="@+id/myviepage2"
  14572.         android:layout_width="match_parent"
  14573.         android:layout_height="0dp"
  14574.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14575.         app:layout_constraintBottom_toBottomOf="parent"
  14576.         app:layout_constraintStart_toStartOf="parent"
  14577.         />
  14578. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  14579. <?xml version="1.0" encoding="utf-8"?>
  14580. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14581.     xmlns:tools="http://schemas.android.com/tools"
  14582.     android:layout_width="match_parent"
  14583.     android:layout_height="match_parent"
  14584.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14585.     tools:context=".tablayout.TabLayoutHomeFragment">
  14586.     <com.google.android.material.tabs.TabLayout
  14587.         android:id="@+id/mytablayout2"
  14588.         android:layout_width="match_parent"
  14589.         android:layout_height="wrap_content"
  14590.         app:tabMode="auto"
  14591.         app:tabGravity="start"
  14592.         app:tabBackground="@color/pink"
  14593.         app:tabTextColor="@color/white"
  14594.         app:layout_constraintStart_toStartOf="parent"
  14595.         app:layout_constraintTop_toTopOf="parent"
  14596.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14597.         />
  14598.     <androidx.viewpager2.widget.ViewPager2
  14599.         android:id="@+id/myviepage2"
  14600.         android:layout_width="match_parent"
  14601.         android:layout_height="0dp"
  14602.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14603.         app:layout_constraintBottom_toBottomOf="parent"
  14604.         app:layout_constraintStart_toStartOf="parent"
  14605.         />
  14606. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  14607. <?xml version="1.0" encoding="utf-8"?>
  14608. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14609.     xmlns:tools="http://schemas.android.com/tools"
  14610.     android:layout_width="match_parent"
  14611.     android:layout_height="match_parent"
  14612.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14613.     tools:context=".tablayout.TabLayoutHomeFragment">
  14614.     <com.google.android.material.tabs.TabLayout
  14615.         android:id="@+id/mytablayout2"
  14616.         android:layout_width="match_parent"
  14617.         android:layout_height="wrap_content"
  14618.         app:tabMode="auto"
  14619.         app:tabGravity="start"
  14620.         app:tabBackground="@color/pink"
  14621.         app:tabTextColor="@color/white"
  14622.         app:layout_constraintStart_toStartOf="parent"
  14623.         app:layout_constraintTop_toTopOf="parent"
  14624.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14625.         />
  14626.     <androidx.viewpager2.widget.ViewPager2
  14627.         android:id="@+id/myviepage2"
  14628.         android:layout_width="match_parent"
  14629.         android:layout_height="0dp"
  14630.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14631.         app:layout_constraintBottom_toBottomOf="parent"
  14632.         app:layout_constraintStart_toStartOf="parent"
  14633.         />
  14634. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  14635. <?xml version="1.0" encoding="utf-8"?>
  14636. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14637.     xmlns:tools="http://schemas.android.com/tools"
  14638.     android:layout_width="match_parent"
  14639.     android:layout_height="match_parent"
  14640.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14641.     tools:context=".tablayout.TabLayoutHomeFragment">
  14642.     <com.google.android.material.tabs.TabLayout
  14643.         android:id="@+id/mytablayout2"
  14644.         android:layout_width="match_parent"
  14645.         android:layout_height="wrap_content"
  14646.         app:tabMode="auto"
  14647.         app:tabGravity="start"
  14648.         app:tabBackground="@color/pink"
  14649.         app:tabTextColor="@color/white"
  14650.         app:layout_constraintStart_toStartOf="parent"
  14651.         app:layout_constraintTop_toTopOf="parent"
  14652.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14653.         />
  14654.     <androidx.viewpager2.widget.ViewPager2
  14655.         android:id="@+id/myviepage2"
  14656.         android:layout_width="match_parent"
  14657.         android:layout_height="0dp"
  14658.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14659.         app:layout_constraintBottom_toBottomOf="parent"
  14660.         app:layout_constraintStart_toStartOf="parent"
  14661.         />
  14662. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  14663.     <com.google.android.material.bottomnavigation.BottomNavigationView
  14664. <?xml version="1.0" encoding="utf-8"?>
  14665. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14666.     xmlns:tools="http://schemas.android.com/tools"
  14667.     android:layout_width="match_parent"
  14668.     android:layout_height="match_parent"
  14669.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14670.     tools:context=".tablayout.TabLayoutHomeFragment">
  14671.     <com.google.android.material.tabs.TabLayout
  14672.         android:id="@+id/mytablayout2"
  14673.         android:layout_width="match_parent"
  14674.         android:layout_height="wrap_content"
  14675.         app:tabMode="auto"
  14676.         app:tabGravity="start"
  14677.         app:tabBackground="@color/pink"
  14678.         app:tabTextColor="@color/white"
  14679.         app:layout_constraintStart_toStartOf="parent"
  14680.         app:layout_constraintTop_toTopOf="parent"
  14681.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14682.         />
  14683.     <androidx.viewpager2.widget.ViewPager2
  14684.         android:id="@+id/myviepage2"
  14685.         android:layout_width="match_parent"
  14686.         android:layout_height="0dp"
  14687.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14688.         app:layout_constraintBottom_toBottomOf="parent"
  14689.         app:layout_constraintStart_toStartOf="parent"
  14690.         />
  14691. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  14692. <?xml version="1.0" encoding="utf-8"?>
  14693. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14694.     xmlns:tools="http://schemas.android.com/tools"
  14695.     android:layout_width="match_parent"
  14696.     android:layout_height="match_parent"
  14697.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14698.     tools:context=".tablayout.TabLayoutHomeFragment">
  14699.     <com.google.android.material.tabs.TabLayout
  14700.         android:id="@+id/mytablayout2"
  14701.         android:layout_width="match_parent"
  14702.         android:layout_height="wrap_content"
  14703.         app:tabMode="auto"
  14704.         app:tabGravity="start"
  14705.         app:tabBackground="@color/pink"
  14706.         app:tabTextColor="@color/white"
  14707.         app:layout_constraintStart_toStartOf="parent"
  14708.         app:layout_constraintTop_toTopOf="parent"
  14709.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14710.         />
  14711.     <androidx.viewpager2.widget.ViewPager2
  14712.         android:id="@+id/myviepage2"
  14713.         android:layout_width="match_parent"
  14714.         android:layout_height="0dp"
  14715.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14716.         app:layout_constraintBottom_toBottomOf="parent"
  14717.         app:layout_constraintStart_toStartOf="parent"
  14718.         />
  14719. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  14720. <?xml version="1.0" encoding="utf-8"?>
  14721. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14722.     xmlns:tools="http://schemas.android.com/tools"
  14723.     android:layout_width="match_parent"
  14724.     android:layout_height="match_parent"
  14725.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14726.     tools:context=".tablayout.TabLayoutHomeFragment">
  14727.     <com.google.android.material.tabs.TabLayout
  14728.         android:id="@+id/mytablayout2"
  14729.         android:layout_width="match_parent"
  14730.         android:layout_height="wrap_content"
  14731.         app:tabMode="auto"
  14732.         app:tabGravity="start"
  14733.         app:tabBackground="@color/pink"
  14734.         app:tabTextColor="@color/white"
  14735.         app:layout_constraintStart_toStartOf="parent"
  14736.         app:layout_constraintTop_toTopOf="parent"
  14737.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14738.         />
  14739.     <androidx.viewpager2.widget.ViewPager2
  14740.         android:id="@+id/myviepage2"
  14741.         android:layout_width="match_parent"
  14742.         android:layout_height="0dp"
  14743.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14744.         app:layout_constraintBottom_toBottomOf="parent"
  14745.         app:layout_constraintStart_toStartOf="parent"
  14746.         />
  14747. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  14748. <?xml version="1.0" encoding="utf-8"?>
  14749. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14750.     xmlns:tools="http://schemas.android.com/tools"
  14751.     android:layout_width="match_parent"
  14752.     android:layout_height="match_parent"
  14753.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14754.     tools:context=".tablayout.TabLayoutHomeFragment">
  14755.     <com.google.android.material.tabs.TabLayout
  14756.         android:id="@+id/mytablayout2"
  14757.         android:layout_width="match_parent"
  14758.         android:layout_height="wrap_content"
  14759.         app:tabMode="auto"
  14760.         app:tabGravity="start"
  14761.         app:tabBackground="@color/pink"
  14762.         app:tabTextColor="@color/white"
  14763.         app:layout_constraintStart_toStartOf="parent"
  14764.         app:layout_constraintTop_toTopOf="parent"
  14765.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14766.         />
  14767.     <androidx.viewpager2.widget.ViewPager2
  14768.         android:id="@+id/myviepage2"
  14769.         android:layout_width="match_parent"
  14770.         android:layout_height="0dp"
  14771.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14772.         app:layout_constraintBottom_toBottomOf="parent"
  14773.         app:layout_constraintStart_toStartOf="parent"
  14774.         />
  14775. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  14776. <?xml version="1.0" encoding="utf-8"?>
  14777. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14778.     xmlns:tools="http://schemas.android.com/tools"
  14779.     android:layout_width="match_parent"
  14780.     android:layout_height="match_parent"
  14781.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14782.     tools:context=".tablayout.TabLayoutHomeFragment">
  14783.     <com.google.android.material.tabs.TabLayout
  14784.         android:id="@+id/mytablayout2"
  14785.         android:layout_width="match_parent"
  14786.         android:layout_height="wrap_content"
  14787.         app:tabMode="auto"
  14788.         app:tabGravity="start"
  14789.         app:tabBackground="@color/pink"
  14790.         app:tabTextColor="@color/white"
  14791.         app:layout_constraintStart_toStartOf="parent"
  14792.         app:layout_constraintTop_toTopOf="parent"
  14793.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14794.         />
  14795.     <androidx.viewpager2.widget.ViewPager2
  14796.         android:id="@+id/myviepage2"
  14797.         android:layout_width="match_parent"
  14798.         android:layout_height="0dp"
  14799.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14800.         app:layout_constraintBottom_toBottomOf="parent"
  14801.         app:layout_constraintStart_toStartOf="parent"
  14802.         />
  14803. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  14804. <?xml version="1.0" encoding="utf-8"?>
  14805. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14806.     xmlns:tools="http://schemas.android.com/tools"
  14807.     android:layout_width="match_parent"
  14808.     android:layout_height="match_parent"
  14809.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14810.     tools:context=".tablayout.TabLayoutHomeFragment">
  14811.     <com.google.android.material.tabs.TabLayout
  14812.         android:id="@+id/mytablayout2"
  14813.         android:layout_width="match_parent"
  14814.         android:layout_height="wrap_content"
  14815.         app:tabMode="auto"
  14816.         app:tabGravity="start"
  14817.         app:tabBackground="@color/pink"
  14818.         app:tabTextColor="@color/white"
  14819.         app:layout_constraintStart_toStartOf="parent"
  14820.         app:layout_constraintTop_toTopOf="parent"
  14821.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14822.         />
  14823.     <androidx.viewpager2.widget.ViewPager2
  14824.         android:id="@+id/myviepage2"
  14825.         android:layout_width="match_parent"
  14826.         android:layout_height="0dp"
  14827.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14828.         app:layout_constraintBottom_toBottomOf="parent"
  14829.         app:layout_constraintStart_toStartOf="parent"
  14830.         />
  14831. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  14832. <?xml version="1.0" encoding="utf-8"?>
  14833. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14834.     xmlns:tools="http://schemas.android.com/tools"
  14835.     android:layout_width="match_parent"
  14836.     android:layout_height="match_parent"
  14837.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14838.     tools:context=".tablayout.TabLayoutHomeFragment">
  14839.     <com.google.android.material.tabs.TabLayout
  14840.         android:id="@+id/mytablayout2"
  14841.         android:layout_width="match_parent"
  14842.         android:layout_height="wrap_content"
  14843.         app:tabMode="auto"
  14844.         app:tabGravity="start"
  14845.         app:tabBackground="@color/pink"
  14846.         app:tabTextColor="@color/white"
  14847.         app:layout_constraintStart_toStartOf="parent"
  14848.         app:layout_constraintTop_toTopOf="parent"
  14849.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14850.         />
  14851.     <androidx.viewpager2.widget.ViewPager2
  14852.         android:id="@+id/myviepage2"
  14853.         android:layout_width="match_parent"
  14854.         android:layout_height="0dp"
  14855.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14856.         app:layout_constraintBottom_toBottomOf="parent"
  14857.         app:layout_constraintStart_toStartOf="parent"
  14858.         />
  14859. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  14860. <?xml version="1.0" encoding="utf-8"?>
  14861. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14862.     xmlns:tools="http://schemas.android.com/tools"
  14863.     android:layout_width="match_parent"
  14864.     android:layout_height="match_parent"
  14865.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14866.     tools:context=".tablayout.TabLayoutHomeFragment">
  14867.     <com.google.android.material.tabs.TabLayout
  14868.         android:id="@+id/mytablayout2"
  14869.         android:layout_width="match_parent"
  14870.         android:layout_height="wrap_content"
  14871.         app:tabMode="auto"
  14872.         app:tabGravity="start"
  14873.         app:tabBackground="@color/pink"
  14874.         app:tabTextColor="@color/white"
  14875.         app:layout_constraintStart_toStartOf="parent"
  14876.         app:layout_constraintTop_toTopOf="parent"
  14877.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14878.         />
  14879.     <androidx.viewpager2.widget.ViewPager2
  14880.         android:id="@+id/myviepage2"
  14881.         android:layout_width="match_parent"
  14882.         android:layout_height="0dp"
  14883.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14884.         app:layout_constraintBottom_toBottomOf="parent"
  14885.         app:layout_constraintStart_toStartOf="parent"
  14886.         />
  14887. </androidx.constraintlayout.widget.ConstraintLayout>/>
  14888. </androidx.constraintlayout.widget.ConstraintLayout>}<?xml version="1.0" encoding="utf-8"?>
  14889. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14890.     xmlns:tools="http://schemas.android.com/tools"
  14891.     android:layout_width="match_parent"
  14892.     android:layout_height="match_parent"
  14893.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14894.     tools:context=".tablayout.TabLayoutHomeFragment">
  14895.     <com.google.android.material.tabs.TabLayout
  14896.         android:id="@+id/mytablayout2"
  14897.         android:layout_width="match_parent"
  14898.         android:layout_height="wrap_content"
  14899.         app:tabMode="auto"
  14900.         app:tabGravity="start"
  14901.         app:tabBackground="@color/pink"
  14902.         app:tabTextColor="@color/white"
  14903.         app:layout_constraintStart_toStartOf="parent"
  14904.         app:layout_constraintTop_toTopOf="parent"
  14905.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14906.         />
  14907.     <androidx.viewpager2.widget.ViewPager2
  14908.         android:id="@+id/myviepage2"
  14909.         android:layout_width="match_parent"
  14910.         android:layout_height="0dp"
  14911.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14912.         app:layout_constraintBottom_toBottomOf="parent"
  14913.         app:layout_constraintStart_toStartOf="parent"
  14914.         />
  14915. </androidx.constraintlayout.widget.ConstraintLayout>});<?xml version="1.0" encoding="utf-8"?>
  14916. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14917.     xmlns:tools="http://schemas.android.com/tools"
  14918.     android:layout_width="match_parent"
  14919.     android:layout_height="match_parent"
  14920.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14921.     tools:context=".tablayout.TabLayoutHomeFragment">
  14922.     <com.google.android.material.tabs.TabLayout
  14923.         android:id="@+id/mytablayout2"
  14924.         android:layout_width="match_parent"
  14925.         android:layout_height="wrap_content"
  14926.         app:tabMode="auto"
  14927.         app:tabGravity="start"
  14928.         app:tabBackground="@color/pink"
  14929.         app:tabTextColor="@color/white"
  14930.         app:layout_constraintStart_toStartOf="parent"
  14931.         app:layout_constraintTop_toTopOf="parent"
  14932.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14933.         />
  14934.     <androidx.viewpager2.widget.ViewPager2
  14935.         android:id="@+id/myviepage2"
  14936.         android:layout_width="match_parent"
  14937.         android:layout_height="0dp"
  14938.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14939.         app:layout_constraintBottom_toBottomOf="parent"
  14940.         app:layout_constraintStart_toStartOf="parent"
  14941.         />
  14942. </androidx.constraintlayout.widget.ConstraintLayout>getSupportFragmentManager().beginTransaction()<?xml version="1.0" encoding="utf-8"?>
  14943. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14944.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14945.     xmlns:tools="http://schemas.android.com/tools"
  14946.     android:layout_width="match_parent"
  14947.     android:layout_height="match_parent"
  14948.     tools:context=".ViewPager2TabLayoutActivity">
  14949.    
  14950.     <androidx.fragment.app.FragmentContainerView
  14951. <?xml version="1.0" encoding="utf-8"?>
  14952. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14953.     xmlns:tools="http://schemas.android.com/tools"
  14954.     android:layout_width="match_parent"
  14955.     android:layout_height="match_parent"
  14956.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14957.     tools:context=".tablayout.TabLayoutHomeFragment">
  14958.     <com.google.android.material.tabs.TabLayout
  14959.         android:id="@+id/mytablayout2"
  14960.         android:layout_width="match_parent"
  14961.         android:layout_height="wrap_content"
  14962.         app:tabMode="auto"
  14963.         app:tabGravity="start"
  14964.         app:tabBackground="@color/pink"
  14965.         app:tabTextColor="@color/white"
  14966.         app:layout_constraintStart_toStartOf="parent"
  14967.         app:layout_constraintTop_toTopOf="parent"
  14968.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14969.         />
  14970.     <androidx.viewpager2.widget.ViewPager2
  14971.         android:id="@+id/myviepage2"
  14972.         android:layout_width="match_parent"
  14973.         android:layout_height="0dp"
  14974.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  14975.         app:layout_constraintBottom_toBottomOf="parent"
  14976.         app:layout_constraintStart_toStartOf="parent"
  14977.         />
  14978. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  14979. <?xml version="1.0" encoding="utf-8"?>
  14980. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14981.     xmlns:tools="http://schemas.android.com/tools"
  14982.     android:layout_width="match_parent"
  14983.     android:layout_height="match_parent"
  14984.     xmlns:app="http://schemas.android.com/apk/res-auto"
  14985.     tools:context=".tablayout.TabLayoutHomeFragment">
  14986.     <com.google.android.material.tabs.TabLayout
  14987.         android:id="@+id/mytablayout2"
  14988.         android:layout_width="match_parent"
  14989.         android:layout_height="wrap_content"
  14990.         app:tabMode="auto"
  14991.         app:tabGravity="start"
  14992.         app:tabBackground="@color/pink"
  14993.         app:tabTextColor="@color/white"
  14994.         app:layout_constraintStart_toStartOf="parent"
  14995.         app:layout_constraintTop_toTopOf="parent"
  14996.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  14997.         />
  14998.     <androidx.viewpager2.widget.ViewPager2
  14999.         android:id="@+id/myviepage2"
  15000.         android:layout_width="match_parent"
  15001.         android:layout_height="0dp"
  15002.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15003.         app:layout_constraintBottom_toBottomOf="parent"
  15004.         app:layout_constraintStart_toStartOf="parent"
  15005.         />
  15006. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  15007. <?xml version="1.0" encoding="utf-8"?>
  15008. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15009.     xmlns:tools="http://schemas.android.com/tools"
  15010.     android:layout_width="match_parent"
  15011.     android:layout_height="match_parent"
  15012.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15013.     tools:context=".tablayout.TabLayoutHomeFragment">
  15014.     <com.google.android.material.tabs.TabLayout
  15015.         android:id="@+id/mytablayout2"
  15016.         android:layout_width="match_parent"
  15017.         android:layout_height="wrap_content"
  15018.         app:tabMode="auto"
  15019.         app:tabGravity="start"
  15020.         app:tabBackground="@color/pink"
  15021.         app:tabTextColor="@color/white"
  15022.         app:layout_constraintStart_toStartOf="parent"
  15023.         app:layout_constraintTop_toTopOf="parent"
  15024.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15025.         />
  15026.     <androidx.viewpager2.widget.ViewPager2
  15027.         android:id="@+id/myviepage2"
  15028.         android:layout_width="match_parent"
  15029.         android:layout_height="0dp"
  15030.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15031.         app:layout_constraintBottom_toBottomOf="parent"
  15032.         app:layout_constraintStart_toStartOf="parent"
  15033.         />
  15034. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  15035. <?xml version="1.0" encoding="utf-8"?>
  15036. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15037.     xmlns:tools="http://schemas.android.com/tools"
  15038.     android:layout_width="match_parent"
  15039.     android:layout_height="match_parent"
  15040.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15041.     tools:context=".tablayout.TabLayoutHomeFragment">
  15042.     <com.google.android.material.tabs.TabLayout
  15043.         android:id="@+id/mytablayout2"
  15044.         android:layout_width="match_parent"
  15045.         android:layout_height="wrap_content"
  15046.         app:tabMode="auto"
  15047.         app:tabGravity="start"
  15048.         app:tabBackground="@color/pink"
  15049.         app:tabTextColor="@color/white"
  15050.         app:layout_constraintStart_toStartOf="parent"
  15051.         app:layout_constraintTop_toTopOf="parent"
  15052.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15053.         />
  15054.     <androidx.viewpager2.widget.ViewPager2
  15055.         android:id="@+id/myviepage2"
  15056.         android:layout_width="match_parent"
  15057.         android:layout_height="0dp"
  15058.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15059.         app:layout_constraintBottom_toBottomOf="parent"
  15060.         app:layout_constraintStart_toStartOf="parent"
  15061.         />
  15062. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  15063. <?xml version="1.0" encoding="utf-8"?>
  15064. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15065.     xmlns:tools="http://schemas.android.com/tools"
  15066.     android:layout_width="match_parent"
  15067.     android:layout_height="match_parent"
  15068.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15069.     tools:context=".tablayout.TabLayoutHomeFragment">
  15070.     <com.google.android.material.tabs.TabLayout
  15071.         android:id="@+id/mytablayout2"
  15072.         android:layout_width="match_parent"
  15073.         android:layout_height="wrap_content"
  15074.         app:tabMode="auto"
  15075.         app:tabGravity="start"
  15076.         app:tabBackground="@color/pink"
  15077.         app:tabTextColor="@color/white"
  15078.         app:layout_constraintStart_toStartOf="parent"
  15079.         app:layout_constraintTop_toTopOf="parent"
  15080.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15081.         />
  15082.     <androidx.viewpager2.widget.ViewPager2
  15083.         android:id="@+id/myviepage2"
  15084.         android:layout_width="match_parent"
  15085.         android:layout_height="0dp"
  15086.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15087.         app:layout_constraintBottom_toBottomOf="parent"
  15088.         app:layout_constraintStart_toStartOf="parent"
  15089.         />
  15090. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  15091.     <com.google.android.material.bottomnavigation.BottomNavigationView
  15092. <?xml version="1.0" encoding="utf-8"?>
  15093. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15094.     xmlns:tools="http://schemas.android.com/tools"
  15095.     android:layout_width="match_parent"
  15096.     android:layout_height="match_parent"
  15097.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15098.     tools:context=".tablayout.TabLayoutHomeFragment">
  15099.     <com.google.android.material.tabs.TabLayout
  15100.         android:id="@+id/mytablayout2"
  15101.         android:layout_width="match_parent"
  15102.         android:layout_height="wrap_content"
  15103.         app:tabMode="auto"
  15104.         app:tabGravity="start"
  15105.         app:tabBackground="@color/pink"
  15106.         app:tabTextColor="@color/white"
  15107.         app:layout_constraintStart_toStartOf="parent"
  15108.         app:layout_constraintTop_toTopOf="parent"
  15109.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15110.         />
  15111.     <androidx.viewpager2.widget.ViewPager2
  15112.         android:id="@+id/myviepage2"
  15113.         android:layout_width="match_parent"
  15114.         android:layout_height="0dp"
  15115.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15116.         app:layout_constraintBottom_toBottomOf="parent"
  15117.         app:layout_constraintStart_toStartOf="parent"
  15118.         />
  15119. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  15120. <?xml version="1.0" encoding="utf-8"?>
  15121. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15122.     xmlns:tools="http://schemas.android.com/tools"
  15123.     android:layout_width="match_parent"
  15124.     android:layout_height="match_parent"
  15125.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15126.     tools:context=".tablayout.TabLayoutHomeFragment">
  15127.     <com.google.android.material.tabs.TabLayout
  15128.         android:id="@+id/mytablayout2"
  15129.         android:layout_width="match_parent"
  15130.         android:layout_height="wrap_content"
  15131.         app:tabMode="auto"
  15132.         app:tabGravity="start"
  15133.         app:tabBackground="@color/pink"
  15134.         app:tabTextColor="@color/white"
  15135.         app:layout_constraintStart_toStartOf="parent"
  15136.         app:layout_constraintTop_toTopOf="parent"
  15137.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15138.         />
  15139.     <androidx.viewpager2.widget.ViewPager2
  15140.         android:id="@+id/myviepage2"
  15141.         android:layout_width="match_parent"
  15142.         android:layout_height="0dp"
  15143.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15144.         app:layout_constraintBottom_toBottomOf="parent"
  15145.         app:layout_constraintStart_toStartOf="parent"
  15146.         />
  15147. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  15148. <?xml version="1.0" encoding="utf-8"?>
  15149. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15150.     xmlns:tools="http://schemas.android.com/tools"
  15151.     android:layout_width="match_parent"
  15152.     android:layout_height="match_parent"
  15153.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15154.     tools:context=".tablayout.TabLayoutHomeFragment">
  15155.     <com.google.android.material.tabs.TabLayout
  15156.         android:id="@+id/mytablayout2"
  15157.         android:layout_width="match_parent"
  15158.         android:layout_height="wrap_content"
  15159.         app:tabMode="auto"
  15160.         app:tabGravity="start"
  15161.         app:tabBackground="@color/pink"
  15162.         app:tabTextColor="@color/white"
  15163.         app:layout_constraintStart_toStartOf="parent"
  15164.         app:layout_constraintTop_toTopOf="parent"
  15165.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15166.         />
  15167.     <androidx.viewpager2.widget.ViewPager2
  15168.         android:id="@+id/myviepage2"
  15169.         android:layout_width="match_parent"
  15170.         android:layout_height="0dp"
  15171.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15172.         app:layout_constraintBottom_toBottomOf="parent"
  15173.         app:layout_constraintStart_toStartOf="parent"
  15174.         />
  15175. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  15176. <?xml version="1.0" encoding="utf-8"?>
  15177. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15178.     xmlns:tools="http://schemas.android.com/tools"
  15179.     android:layout_width="match_parent"
  15180.     android:layout_height="match_parent"
  15181.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15182.     tools:context=".tablayout.TabLayoutHomeFragment">
  15183.     <com.google.android.material.tabs.TabLayout
  15184.         android:id="@+id/mytablayout2"
  15185.         android:layout_width="match_parent"
  15186.         android:layout_height="wrap_content"
  15187.         app:tabMode="auto"
  15188.         app:tabGravity="start"
  15189.         app:tabBackground="@color/pink"
  15190.         app:tabTextColor="@color/white"
  15191.         app:layout_constraintStart_toStartOf="parent"
  15192.         app:layout_constraintTop_toTopOf="parent"
  15193.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15194.         />
  15195.     <androidx.viewpager2.widget.ViewPager2
  15196.         android:id="@+id/myviepage2"
  15197.         android:layout_width="match_parent"
  15198.         android:layout_height="0dp"
  15199.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15200.         app:layout_constraintBottom_toBottomOf="parent"
  15201.         app:layout_constraintStart_toStartOf="parent"
  15202.         />
  15203. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  15204. <?xml version="1.0" encoding="utf-8"?>
  15205. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15206.     xmlns:tools="http://schemas.android.com/tools"
  15207.     android:layout_width="match_parent"
  15208.     android:layout_height="match_parent"
  15209.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15210.     tools:context=".tablayout.TabLayoutHomeFragment">
  15211.     <com.google.android.material.tabs.TabLayout
  15212.         android:id="@+id/mytablayout2"
  15213.         android:layout_width="match_parent"
  15214.         android:layout_height="wrap_content"
  15215.         app:tabMode="auto"
  15216.         app:tabGravity="start"
  15217.         app:tabBackground="@color/pink"
  15218.         app:tabTextColor="@color/white"
  15219.         app:layout_constraintStart_toStartOf="parent"
  15220.         app:layout_constraintTop_toTopOf="parent"
  15221.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15222.         />
  15223.     <androidx.viewpager2.widget.ViewPager2
  15224.         android:id="@+id/myviepage2"
  15225.         android:layout_width="match_parent"
  15226.         android:layout_height="0dp"
  15227.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15228.         app:layout_constraintBottom_toBottomOf="parent"
  15229.         app:layout_constraintStart_toStartOf="parent"
  15230.         />
  15231. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  15232. <?xml version="1.0" encoding="utf-8"?>
  15233. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15234.     xmlns:tools="http://schemas.android.com/tools"
  15235.     android:layout_width="match_parent"
  15236.     android:layout_height="match_parent"
  15237.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15238.     tools:context=".tablayout.TabLayoutHomeFragment">
  15239.     <com.google.android.material.tabs.TabLayout
  15240.         android:id="@+id/mytablayout2"
  15241.         android:layout_width="match_parent"
  15242.         android:layout_height="wrap_content"
  15243.         app:tabMode="auto"
  15244.         app:tabGravity="start"
  15245.         app:tabBackground="@color/pink"
  15246.         app:tabTextColor="@color/white"
  15247.         app:layout_constraintStart_toStartOf="parent"
  15248.         app:layout_constraintTop_toTopOf="parent"
  15249.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15250.         />
  15251.     <androidx.viewpager2.widget.ViewPager2
  15252.         android:id="@+id/myviepage2"
  15253.         android:layout_width="match_parent"
  15254.         android:layout_height="0dp"
  15255.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15256.         app:layout_constraintBottom_toBottomOf="parent"
  15257.         app:layout_constraintStart_toStartOf="parent"
  15258.         />
  15259. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  15260. <?xml version="1.0" encoding="utf-8"?>
  15261. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15262.     xmlns:tools="http://schemas.android.com/tools"
  15263.     android:layout_width="match_parent"
  15264.     android:layout_height="match_parent"
  15265.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15266.     tools:context=".tablayout.TabLayoutHomeFragment">
  15267.     <com.google.android.material.tabs.TabLayout
  15268.         android:id="@+id/mytablayout2"
  15269.         android:layout_width="match_parent"
  15270.         android:layout_height="wrap_content"
  15271.         app:tabMode="auto"
  15272.         app:tabGravity="start"
  15273.         app:tabBackground="@color/pink"
  15274.         app:tabTextColor="@color/white"
  15275.         app:layout_constraintStart_toStartOf="parent"
  15276.         app:layout_constraintTop_toTopOf="parent"
  15277.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15278.         />
  15279.     <androidx.viewpager2.widget.ViewPager2
  15280.         android:id="@+id/myviepage2"
  15281.         android:layout_width="match_parent"
  15282.         android:layout_height="0dp"
  15283.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15284.         app:layout_constraintBottom_toBottomOf="parent"
  15285.         app:layout_constraintStart_toStartOf="parent"
  15286.         />
  15287. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  15288. <?xml version="1.0" encoding="utf-8"?>
  15289. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15290.     xmlns:tools="http://schemas.android.com/tools"
  15291.     android:layout_width="match_parent"
  15292.     android:layout_height="match_parent"
  15293.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15294.     tools:context=".tablayout.TabLayoutHomeFragment">
  15295.     <com.google.android.material.tabs.TabLayout
  15296.         android:id="@+id/mytablayout2"
  15297.         android:layout_width="match_parent"
  15298.         android:layout_height="wrap_content"
  15299.         app:tabMode="auto"
  15300.         app:tabGravity="start"
  15301.         app:tabBackground="@color/pink"
  15302.         app:tabTextColor="@color/white"
  15303.         app:layout_constraintStart_toStartOf="parent"
  15304.         app:layout_constraintTop_toTopOf="parent"
  15305.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15306.         />
  15307.     <androidx.viewpager2.widget.ViewPager2
  15308.         android:id="@+id/myviepage2"
  15309.         android:layout_width="match_parent"
  15310.         android:layout_height="0dp"
  15311.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15312.         app:layout_constraintBottom_toBottomOf="parent"
  15313.         app:layout_constraintStart_toStartOf="parent"
  15314.         />
  15315. </androidx.constraintlayout.widget.ConstraintLayout>/>
  15316. </androidx.constraintlayout.widget.ConstraintLayout>    .replace(R.id.container_view, fragmentMap.get(R.id.home_item))<?xml version="1.0" encoding="utf-8"?>
  15317. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15318.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15319.     xmlns:tools="http://schemas.android.com/tools"
  15320.     android:layout_width="match_parent"
  15321.     android:layout_height="match_parent"
  15322.     tools:context=".ViewPager2TabLayoutActivity">
  15323.    
  15324.     <androidx.fragment.app.FragmentContainerView
  15325. <?xml version="1.0" encoding="utf-8"?>
  15326. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15327.     xmlns:tools="http://schemas.android.com/tools"
  15328.     android:layout_width="match_parent"
  15329.     android:layout_height="match_parent"
  15330.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15331.     tools:context=".tablayout.TabLayoutHomeFragment">
  15332.     <com.google.android.material.tabs.TabLayout
  15333.         android:id="@+id/mytablayout2"
  15334.         android:layout_width="match_parent"
  15335.         android:layout_height="wrap_content"
  15336.         app:tabMode="auto"
  15337.         app:tabGravity="start"
  15338.         app:tabBackground="@color/pink"
  15339.         app:tabTextColor="@color/white"
  15340.         app:layout_constraintStart_toStartOf="parent"
  15341.         app:layout_constraintTop_toTopOf="parent"
  15342.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15343.         />
  15344.     <androidx.viewpager2.widget.ViewPager2
  15345.         android:id="@+id/myviepage2"
  15346.         android:layout_width="match_parent"
  15347.         android:layout_height="0dp"
  15348.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15349.         app:layout_constraintBottom_toBottomOf="parent"
  15350.         app:layout_constraintStart_toStartOf="parent"
  15351.         />
  15352. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/container_view"
  15353. <?xml version="1.0" encoding="utf-8"?>
  15354. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15355.     xmlns:tools="http://schemas.android.com/tools"
  15356.     android:layout_width="match_parent"
  15357.     android:layout_height="match_parent"
  15358.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15359.     tools:context=".tablayout.TabLayoutHomeFragment">
  15360.     <com.google.android.material.tabs.TabLayout
  15361.         android:id="@+id/mytablayout2"
  15362.         android:layout_width="match_parent"
  15363.         android:layout_height="wrap_content"
  15364.         app:tabMode="auto"
  15365.         app:tabGravity="start"
  15366.         app:tabBackground="@color/pink"
  15367.         app:tabTextColor="@color/white"
  15368.         app:layout_constraintStart_toStartOf="parent"
  15369.         app:layout_constraintTop_toTopOf="parent"
  15370.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15371.         />
  15372.     <androidx.viewpager2.widget.ViewPager2
  15373.         android:id="@+id/myviepage2"
  15374.         android:layout_width="match_parent"
  15375.         android:layout_height="0dp"
  15376.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15377.         app:layout_constraintBottom_toBottomOf="parent"
  15378.         app:layout_constraintStart_toStartOf="parent"
  15379.         />
  15380. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  15381. <?xml version="1.0" encoding="utf-8"?>
  15382. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15383.     xmlns:tools="http://schemas.android.com/tools"
  15384.     android:layout_width="match_parent"
  15385.     android:layout_height="match_parent"
  15386.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15387.     tools:context=".tablayout.TabLayoutHomeFragment">
  15388.     <com.google.android.material.tabs.TabLayout
  15389.         android:id="@+id/mytablayout2"
  15390.         android:layout_width="match_parent"
  15391.         android:layout_height="wrap_content"
  15392.         app:tabMode="auto"
  15393.         app:tabGravity="start"
  15394.         app:tabBackground="@color/pink"
  15395.         app:tabTextColor="@color/white"
  15396.         app:layout_constraintStart_toStartOf="parent"
  15397.         app:layout_constraintTop_toTopOf="parent"
  15398.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15399.         />
  15400.     <androidx.viewpager2.widget.ViewPager2
  15401.         android:id="@+id/myviepage2"
  15402.         android:layout_width="match_parent"
  15403.         android:layout_height="0dp"
  15404.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15405.         app:layout_constraintBottom_toBottomOf="parent"
  15406.         app:layout_constraintStart_toStartOf="parent"
  15407.         />
  15408. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  15409. <?xml version="1.0" encoding="utf-8"?>
  15410. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15411.     xmlns:tools="http://schemas.android.com/tools"
  15412.     android:layout_width="match_parent"
  15413.     android:layout_height="match_parent"
  15414.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15415.     tools:context=".tablayout.TabLayoutHomeFragment">
  15416.     <com.google.android.material.tabs.TabLayout
  15417.         android:id="@+id/mytablayout2"
  15418.         android:layout_width="match_parent"
  15419.         android:layout_height="wrap_content"
  15420.         app:tabMode="auto"
  15421.         app:tabGravity="start"
  15422.         app:tabBackground="@color/pink"
  15423.         app:tabTextColor="@color/white"
  15424.         app:layout_constraintStart_toStartOf="parent"
  15425.         app:layout_constraintTop_toTopOf="parent"
  15426.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15427.         />
  15428.     <androidx.viewpager2.widget.ViewPager2
  15429.         android:id="@+id/myviepage2"
  15430.         android:layout_width="match_parent"
  15431.         android:layout_height="0dp"
  15432.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15433.         app:layout_constraintBottom_toBottomOf="parent"
  15434.         app:layout_constraintStart_toStartOf="parent"
  15435.         />
  15436. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintTop_toTopOf="parent"
  15437. <?xml version="1.0" encoding="utf-8"?>
  15438. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15439.     xmlns:tools="http://schemas.android.com/tools"
  15440.     android:layout_width="match_parent"
  15441.     android:layout_height="match_parent"
  15442.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15443.     tools:context=".tablayout.TabLayoutHomeFragment">
  15444.     <com.google.android.material.tabs.TabLayout
  15445.         android:id="@+id/mytablayout2"
  15446.         android:layout_width="match_parent"
  15447.         android:layout_height="wrap_content"
  15448.         app:tabMode="auto"
  15449.         app:tabGravity="start"
  15450.         app:tabBackground="@color/pink"
  15451.         app:tabTextColor="@color/white"
  15452.         app:layout_constraintStart_toStartOf="parent"
  15453.         app:layout_constraintTop_toTopOf="parent"
  15454.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15455.         />
  15456.     <androidx.viewpager2.widget.ViewPager2
  15457.         android:id="@+id/myviepage2"
  15458.         android:layout_width="match_parent"
  15459.         android:layout_height="0dp"
  15460.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15461.         app:layout_constraintBottom_toBottomOf="parent"
  15462.         app:layout_constraintStart_toStartOf="parent"
  15463.         />
  15464. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toTopOf="@id/bootomnav3"/>
  15465.     <com.google.android.material.bottomnavigation.BottomNavigationView
  15466. <?xml version="1.0" encoding="utf-8"?>
  15467. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15468.     xmlns:tools="http://schemas.android.com/tools"
  15469.     android:layout_width="match_parent"
  15470.     android:layout_height="match_parent"
  15471.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15472.     tools:context=".tablayout.TabLayoutHomeFragment">
  15473.     <com.google.android.material.tabs.TabLayout
  15474.         android:id="@+id/mytablayout2"
  15475.         android:layout_width="match_parent"
  15476.         android:layout_height="wrap_content"
  15477.         app:tabMode="auto"
  15478.         app:tabGravity="start"
  15479.         app:tabBackground="@color/pink"
  15480.         app:tabTextColor="@color/white"
  15481.         app:layout_constraintStart_toStartOf="parent"
  15482.         app:layout_constraintTop_toTopOf="parent"
  15483.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15484.         />
  15485.     <androidx.viewpager2.widget.ViewPager2
  15486.         android:id="@+id/myviepage2"
  15487.         android:layout_width="match_parent"
  15488.         android:layout_height="0dp"
  15489.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15490.         app:layout_constraintBottom_toBottomOf="parent"
  15491.         app:layout_constraintStart_toStartOf="parent"
  15492.         />
  15493. </androidx.constraintlayout.widget.ConstraintLayout>android:id="@+id/bootomnav3"
  15494. <?xml version="1.0" encoding="utf-8"?>
  15495. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15496.     xmlns:tools="http://schemas.android.com/tools"
  15497.     android:layout_width="match_parent"
  15498.     android:layout_height="match_parent"
  15499.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15500.     tools:context=".tablayout.TabLayoutHomeFragment">
  15501.     <com.google.android.material.tabs.TabLayout
  15502.         android:id="@+id/mytablayout2"
  15503.         android:layout_width="match_parent"
  15504.         android:layout_height="wrap_content"
  15505.         app:tabMode="auto"
  15506.         app:tabGravity="start"
  15507.         app:tabBackground="@color/pink"
  15508.         app:tabTextColor="@color/white"
  15509.         app:layout_constraintStart_toStartOf="parent"
  15510.         app:layout_constraintTop_toTopOf="parent"
  15511.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15512.         />
  15513.     <androidx.viewpager2.widget.ViewPager2
  15514.         android:id="@+id/myviepage2"
  15515.         android:layout_width="match_parent"
  15516.         android:layout_height="0dp"
  15517.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15518.         app:layout_constraintBottom_toBottomOf="parent"
  15519.         app:layout_constraintStart_toStartOf="parent"
  15520.         />
  15521. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_width="match_parent"
  15522. <?xml version="1.0" encoding="utf-8"?>
  15523. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15524.     xmlns:tools="http://schemas.android.com/tools"
  15525.     android:layout_width="match_parent"
  15526.     android:layout_height="match_parent"
  15527.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15528.     tools:context=".tablayout.TabLayoutHomeFragment">
  15529.     <com.google.android.material.tabs.TabLayout
  15530.         android:id="@+id/mytablayout2"
  15531.         android:layout_width="match_parent"
  15532.         android:layout_height="wrap_content"
  15533.         app:tabMode="auto"
  15534.         app:tabGravity="start"
  15535.         app:tabBackground="@color/pink"
  15536.         app:tabTextColor="@color/white"
  15537.         app:layout_constraintStart_toStartOf="parent"
  15538.         app:layout_constraintTop_toTopOf="parent"
  15539.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15540.         />
  15541.     <androidx.viewpager2.widget.ViewPager2
  15542.         android:id="@+id/myviepage2"
  15543.         android:layout_width="match_parent"
  15544.         android:layout_height="0dp"
  15545.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15546.         app:layout_constraintBottom_toBottomOf="parent"
  15547.         app:layout_constraintStart_toStartOf="parent"
  15548.         />
  15549. </androidx.constraintlayout.widget.ConstraintLayout>android:layout_height="0dp"
  15550. <?xml version="1.0" encoding="utf-8"?>
  15551. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15552.     xmlns:tools="http://schemas.android.com/tools"
  15553.     android:layout_width="match_parent"
  15554.     android:layout_height="match_parent"
  15555.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15556.     tools:context=".tablayout.TabLayoutHomeFragment">
  15557.     <com.google.android.material.tabs.TabLayout
  15558.         android:id="@+id/mytablayout2"
  15559.         android:layout_width="match_parent"
  15560.         android:layout_height="wrap_content"
  15561.         app:tabMode="auto"
  15562.         app:tabGravity="start"
  15563.         app:tabBackground="@color/pink"
  15564.         app:tabTextColor="@color/white"
  15565.         app:layout_constraintStart_toStartOf="parent"
  15566.         app:layout_constraintTop_toTopOf="parent"
  15567.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15568.         />
  15569.     <androidx.viewpager2.widget.ViewPager2
  15570.         android:id="@+id/myviepage2"
  15571.         android:layout_width="match_parent"
  15572.         android:layout_height="0dp"
  15573.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15574.         app:layout_constraintBottom_toBottomOf="parent"
  15575.         app:layout_constraintStart_toStartOf="parent"
  15576.         />
  15577. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintStart_toStartOf="parent"
  15578. <?xml version="1.0" encoding="utf-8"?>
  15579. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15580.     xmlns:tools="http://schemas.android.com/tools"
  15581.     android:layout_width="match_parent"
  15582.     android:layout_height="match_parent"
  15583.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15584.     tools:context=".tablayout.TabLayoutHomeFragment">
  15585.     <com.google.android.material.tabs.TabLayout
  15586.         android:id="@+id/mytablayout2"
  15587.         android:layout_width="match_parent"
  15588.         android:layout_height="wrap_content"
  15589.         app:tabMode="auto"
  15590.         app:tabGravity="start"
  15591.         app:tabBackground="@color/pink"
  15592.         app:tabTextColor="@color/white"
  15593.         app:layout_constraintStart_toStartOf="parent"
  15594.         app:layout_constraintTop_toTopOf="parent"
  15595.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15596.         />
  15597.     <androidx.viewpager2.widget.ViewPager2
  15598.         android:id="@+id/myviepage2"
  15599.         android:layout_width="match_parent"
  15600.         android:layout_height="0dp"
  15601.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15602.         app:layout_constraintBottom_toBottomOf="parent"
  15603.         app:layout_constraintStart_toStartOf="parent"
  15604.         />
  15605. </androidx.constraintlayout.widget.ConstraintLayout>app:layout_constraintBottom_toBottomOf="parent"
  15606. <?xml version="1.0" encoding="utf-8"?>
  15607. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15608.     xmlns:tools="http://schemas.android.com/tools"
  15609.     android:layout_width="match_parent"
  15610.     android:layout_height="match_parent"
  15611.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15612.     tools:context=".tablayout.TabLayoutHomeFragment">
  15613.     <com.google.android.material.tabs.TabLayout
  15614.         android:id="@+id/mytablayout2"
  15615.         android:layout_width="match_parent"
  15616.         android:layout_height="wrap_content"
  15617.         app:tabMode="auto"
  15618.         app:tabGravity="start"
  15619.         app:tabBackground="@color/pink"
  15620.         app:tabTextColor="@color/white"
  15621.         app:layout_constraintStart_toStartOf="parent"
  15622.         app:layout_constraintTop_toTopOf="parent"
  15623.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15624.         />
  15625.     <androidx.viewpager2.widget.ViewPager2
  15626.         android:id="@+id/myviepage2"
  15627.         android:layout_width="match_parent"
  15628.         android:layout_height="0dp"
  15629.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15630.         app:layout_constraintBottom_toBottomOf="parent"
  15631.         app:layout_constraintStart_toStartOf="parent"
  15632.         />
  15633. </androidx.constraintlayout.widget.ConstraintLayout>app:menu="@menu/bottom_item_menu"
  15634. <?xml version="1.0" encoding="utf-8"?>
  15635. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15636.     xmlns:tools="http://schemas.android.com/tools"
  15637.     android:layout_width="match_parent"
  15638.     android:layout_height="match_parent"
  15639.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15640.     tools:context=".tablayout.TabLayoutHomeFragment">
  15641.     <com.google.android.material.tabs.TabLayout
  15642.         android:id="@+id/mytablayout2"
  15643.         android:layout_width="match_parent"
  15644.         android:layout_height="wrap_content"
  15645.         app:tabMode="auto"
  15646.         app:tabGravity="start"
  15647.         app:tabBackground="@color/pink"
  15648.         app:tabTextColor="@color/white"
  15649.         app:layout_constraintStart_toStartOf="parent"
  15650.         app:layout_constraintTop_toTopOf="parent"
  15651.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15652.         />
  15653.     <androidx.viewpager2.widget.ViewPager2
  15654.         android:id="@+id/myviepage2"
  15655.         android:layout_width="match_parent"
  15656.         android:layout_height="0dp"
  15657.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15658.         app:layout_constraintBottom_toBottomOf="parent"
  15659.         app:layout_constraintStart_toStartOf="parent"
  15660.         />
  15661. </androidx.constraintlayout.widget.ConstraintLayout>app:labelVisibilityMode="labeled"
  15662. <?xml version="1.0" encoding="utf-8"?>
  15663. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15664.     xmlns:tools="http://schemas.android.com/tools"
  15665.     android:layout_width="match_parent"
  15666.     android:layout_height="match_parent"
  15667.     xmlns:app="http://schemas.android.com/apk/res-auto"
  15668.     tools:context=".tablayout.TabLayoutHomeFragment">
  15669.     <com.google.android.material.tabs.TabLayout
  15670.         android:id="@+id/mytablayout2"
  15671.         android:layout_width="match_parent"
  15672.         android:layout_height="wrap_content"
  15673.         app:tabMode="auto"
  15674.         app:tabGravity="start"
  15675.         app:tabBackground="@color/pink"
  15676.         app:tabTextColor="@color/white"
  15677.         app:layout_constraintStart_toStartOf="parent"
  15678.         app:layout_constraintTop_toTopOf="parent"
  15679.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  15680.         />
  15681.     <androidx.viewpager2.widget.ViewPager2
  15682.         android:id="@+id/myviepage2"
  15683.         android:layout_width="match_parent"
  15684.         android:layout_height="0dp"
  15685.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  15686.         app:layout_constraintBottom_toBottomOf="parent"
  15687.         app:layout_constraintStart_toStartOf="parent"
  15688.         />
  15689. </androidx.constraintlayout.widget.ConstraintLayout>/>
  15690. </androidx.constraintlayout.widget.ConstraintLayout>    .commit();    }}
复制代码
效果

可以看到 顶部有类似 今日头条的 Tab 并且可以滑动哟

总结

本篇主要介绍了 ViewPager2 + TabLayout 的一个集成 实现类似今日头条的顶部Tab 并且支持滑动
核心联动代码
不同于ViewPager , ViewPager2 使用 TabLayoutMediator 来联动TabLayout 和ViewPager2 以及 tab的标题,注意最后要 attach()
  1. viewPager2.setAdapter(tabLayoutChildViewPager);new TabLayoutMediator(tabLayout, viewPager2, true,<?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:tools="http://schemas.android.com/tools"
  4.     android:layout_width="match_parent"
  5.     android:layout_height="match_parent"
  6.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7.     tools:context=".tablayout.TabLayoutHomeFragment">
  8.     <com.google.android.material.tabs.TabLayout
  9.         android:id="@+id/mytablayout2"
  10.         android:layout_width="match_parent"
  11.         android:layout_height="wrap_content"
  12.         app:tabMode="auto"
  13.         app:tabGravity="start"
  14.         app:tabBackground="@color/pink"
  15.         app:tabTextColor="@color/white"
  16.         app:layout_constraintStart_toStartOf="parent"
  17.         app:layout_constraintTop_toTopOf="parent"
  18.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  19.         />
  20.     <androidx.viewpager2.widget.ViewPager2
  21.         android:id="@+id/myviepage2"
  22.         android:layout_width="match_parent"
  23.         android:layout_height="0dp"
  24.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  25.         app:layout_constraintBottom_toBottomOf="parent"
  26.         app:layout_constraintStart_toStartOf="parent"
  27.         />
  28. </androidx.constraintlayout.widget.ConstraintLayout>(tab, position) -> tab.setText(titleList.get(position)))<?xml version="1.0" encoding="utf-8"?>
  29. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  30.     xmlns:tools="http://schemas.android.com/tools"
  31.     android:layout_width="match_parent"
  32.     android:layout_height="match_parent"
  33.     xmlns:app="http://schemas.android.com/apk/res-auto"
  34.     tools:context=".tablayout.TabLayoutHomeFragment">
  35.     <com.google.android.material.tabs.TabLayout
  36.         android:id="@+id/mytablayout2"
  37.         android:layout_width="match_parent"
  38.         android:layout_height="wrap_content"
  39.         app:tabMode="auto"
  40.         app:tabGravity="start"
  41.         app:tabBackground="@color/pink"
  42.         app:tabTextColor="@color/white"
  43.         app:layout_constraintStart_toStartOf="parent"
  44.         app:layout_constraintTop_toTopOf="parent"
  45.         app:layout_constraintBottom_toTopOf="@id/myviepage2"
  46.         />
  47.     <androidx.viewpager2.widget.ViewPager2
  48.         android:id="@+id/myviepage2"
  49.         android:layout_width="match_parent"
  50.         android:layout_height="0dp"
  51.         app:layout_constraintTop_toBottomOf="@id/mytablayout2"
  52.         app:layout_constraintBottom_toBottomOf="parent"
  53.         app:layout_constraintStart_toStartOf="parent"
  54.         />
  55. </androidx.constraintlayout.widget.ConstraintLayout>.attach();
复制代码
欢迎大家访问 个人博客  Johnny小屋
欢迎关注个人公众号


免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!




欢迎光临 IT评测·应用市场-qidao123.com技术社区 (https://dis.qidao123.com/) Powered by Discuz! X3.4