Commit 82f1e8fe authored by wanglei's avatar wanglei

...

parent fd0ef373
...@@ -97,10 +97,22 @@ class RecycleBinDetailActivity : BaseActivity<ActivityRecycleBinDetailBinding>() ...@@ -97,10 +97,22 @@ class RecycleBinDetailActivity : BaseActivity<ActivityRecycleBinDetailBinding>()
recycleBinBean?.let { bean -> recycleBinBean?.let { bean ->
val file = File(bean.path) val file = File(bean.path)
val binFile = findRecycleBinFile(file.name) val binFile = findRecycleBinFile(file.name)
VideoPlayerUtil.playVideo(this,binFile?.absolutePath) VideoPlayerUtil.playVideo(this, binFile?.absolutePath)
} }
} }
binding.flDelete.setOnClickListener {
recycleBinBean?.let { bean ->
val file = File(bean.path)
val binFile = findRecycleBinFile(file.name)
val binJsonFile = findRecycleBinJsonFile(file.name)
binFile?.delete()
binJsonFile?.delete()
}
finish()
}
} }
} }
\ No newline at end of file
...@@ -7,6 +7,13 @@ ...@@ -7,6 +7,13 @@
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".activity.recyclebin.RecycleBinDetailActivity"> tools:context=".activity.recyclebin.RecycleBinDetailActivity">
<ImageView
android:id="@+id/iv"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="ContentDescription" />
<FrameLayout <FrameLayout
android:id="@+id/fl_back" android:id="@+id/fl_back"
android:layout_width="wrap_content" android:layout_width="wrap_content"
...@@ -23,11 +30,22 @@ ...@@ -23,11 +30,22 @@
tools:ignore="ContentDescription,UseAppTint" /> tools:ignore="ContentDescription,UseAppTint" />
</FrameLayout> </FrameLayout>
<ImageView <FrameLayout
android:id="@+id/iv" android:id="@+id/fl_delete"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
tools:ignore="ContentDescription" /> android:layout_marginTop="40dp"
android:padding="15dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/delete_b"
tools:ignore="ContentDescription,UseAppTint" />
</FrameLayout>
<ImageView <ImageView
android:id="@+id/iv_bofang" android:id="@+id/iv_bofang"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment