version:1.9.4
fix: update:作业页面完善
This commit is contained in:
8
PhotoPreview/src/main/res/drawable/no_selected_dot.xml
Normal file
8
PhotoPreview/src/main/res/drawable/no_selected_dot.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<size
|
||||
android:width="7dp"
|
||||
android:height="7dp" />
|
||||
<solid android:color="@android:color/darker_gray" />
|
||||
</shape>
|
||||
8
PhotoPreview/src/main/res/drawable/selected_dot.xml
Normal file
8
PhotoPreview/src/main/res/drawable/selected_dot.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<size
|
||||
android:width="7dp"
|
||||
android:height="7dp" />
|
||||
<solid android:color="@android:color/white" />
|
||||
</shape>
|
||||
21
PhotoPreview/src/main/res/layout/fragment_preview.xml
Normal file
21
PhotoPreview/src/main/res/layout/fragment_preview.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.wgw.photo.preview.PhotoView
|
||||
android:id="@+id/photoView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/loading"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</FrameLayout>
|
||||
81
PhotoPreview/src/main/res/layout/view_preview_root.xml
Normal file
81
PhotoPreview/src/main/res/layout/view_preview_root.xml
Normal file
@@ -0,0 +1,81 @@
|
||||
<?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>
|
||||
6
PhotoPreview/src/main/res/values/colors.xml
Normal file
6
PhotoPreview/src/main/res/values/colors.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="transparent">#0000</color>
|
||||
<color name="black">#000</color>
|
||||
<color name="white">#fff</color>
|
||||
</resources>
|
||||
7
PhotoPreview/src/main/res/values/ids.xml
Normal file
7
PhotoPreview/src/main/res/values/ids.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<item name="view_holder" type="id" />
|
||||
<item name="loading" type="id" />
|
||||
<item name="view_pager_id" type="id" />
|
||||
<item name="view_pager_id_next" type="id" />
|
||||
</resources>
|
||||
3
PhotoPreview/src/main/res/values/strings.xml
Normal file
3
PhotoPreview/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<string name="app_name">preview</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user