pandorapan/common/src/main/res/layout/activity_preview_image.xml

67 lines
2.4 KiB
XML
Raw Normal View History

2022-07-18 15:31:45 +08:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black2">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="72dp"
android:gravity="center"
android:paddingTop="24dp"
tools:ignore="MissingConstraints">
<View
android:id="@+id/v_back"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginLeft="9dp"
android:background="@drawable/iconfh_left_white" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_gravity="center_vertical"
android:layout_marginLeft="12dp"
android:layout_toEndOf="@id/v_back"
android:gravity="center"
android:text="@string/preview"
android:textColor="@color/white"
android:textSize="16sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_gravity="right"
android:layout_marginRight="18dp"
android:textColor="@color/red"
android:textSize="16sp" />
</RelativeLayout>
<androidx.viewpager.widget.ViewPager
android:id="@+id/viewPager"
android:layout_marginTop="72dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="16dp"
android:paddingBottom="24dp"
android:text="0/0"
android:textColor="@color/red"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>