Files
Xuewang365OSHonor/PhotoPreview/src/main/res/layout/view_preview_root.xml
tongtongstudio 5a64967c57 version:1.9.4
fix:
update:作业页面完善
2024-09-23 15:04:12 +08:00

82 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/rl_root_photo_preview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/transparent">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--仅用于低版本切圆角-->
<androidx.cardview.widget.CardView
android:id="@+id/fl_parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/transparent"
android:visibility="invisible"
app:cardBackgroundColor="@color/transparent"
app:cardElevation="0dp">
<ImageView
android:id="@+id/iv_anim"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="ContentDescription" />
</androidx.cardview.widget.CardView>
</FrameLayout>
<com.wgw.photo.preview.NoTouchExceptionViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never" />
<LinearLayout
android:id="@+id/ll_dot_indicator_photo_preview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginBottom="44dp"
android:gravity="center"
android:orientation="horizontal"
android:visibility="gone"
tools:visibility="visible" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_select_dot_photo_preview"
android:layout_width="7dp"
android:layout_height="7dp"
android:layout_gravity="bottom"
android:layout_marginBottom="44dp"
android:src="@drawable/selected_dot"
android:visibility="gone"
tools:ignore="ContentDescription"
tools:visibility="visible" />
<TextView
android:id="@+id/tv_text_indicator_photo_preview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginBottom="40dp"
android:gravity="center"
android:textColor="@android:color/darker_gray"
android:textSize="14sp"
android:visibility="gone"
tools:text="1 / 9"
tools:visibility="visible" />
<FrameLayout
android:id="@+id/fl_custom"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
</FrameLayout>