Я создал RelativeLayout, а внутри относительного макета есть представление BottomNavigation и FrameLayout.Внутри frameLayout находится панель инструментов и ползунок, который называется FlipperLayout.
Я хотел создать cardView в FlipperLayout.Поэтому я создаю новый linearLayout, в котором есть все кодирование карт, которое будет находиться внутри FrameLayout.И я сделал кодирование.
Я заметил, что CardView находится в верхней части экрана, который является панелью инструментов.Итак, мои вопросы, как я могу сделать просмотр карты прямо под flipperLayout?
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/frame_layout"
android:layout_above="@id/btm_nav">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/purpleBoo"
android:minHeight="?attr/actionBarSize"
android:theme="@style/ThemeOverlay.AppCompat.Dark"
>
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:layout_gravity="center"
android:textColor="@color/white">
</TextView>
</androidx.appcompat.widget.Toolbar>
<technolifestyle.com.imageslider.FlipperLayout
android:layout_marginTop="?attr/actionBarSize"
android:id="@+id/flipper"
android:layout_width="match_parent"
android:layout_height="200dp"
>
</technolifestyle.com.imageslider.FlipperLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:gravity="center"
android:orientation="horizontal"
android:weight="1">
<androidx.cardview.widget.CardView
android:id="@+id/tp"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="match_parent" >
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="64dp"
android:layout_height="64dp"
android:padding="5dp"
android:src="@drawable/tp"
android:background="@drawable/cardview_background">
</ImageView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="HI"
android:textStyle="bold" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_margin="10dp"
android:background="@color/lightgray" />
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</FrameLayout>
Я хотел создать что-то вроде этого, где просмотр карты находится под слайдером