Commit 16eca93e authored by wanglei's avatar wanglei

...

parent d8880904
...@@ -33,6 +33,13 @@ class ScanJunkActivity : BaseActivity<ActivityScanJunkBinding>() { ...@@ -33,6 +33,13 @@ class ScanJunkActivity : BaseActivity<ActivityScanJunkBinding>() {
beginScan() beginScan()
} }
override fun initListener() {
super.initListener()
binding.flFanhui.setOnClickListener {
finishToMain()
}
}
private fun beginScan() { private fun beginScan() {
lifecycleScope.launch(Dispatchers.Main) { lifecycleScope.launch(Dispatchers.Main) {
junkScanAdapter.addData(ParentBean(R.mipmap.x_residual, "Residual File"), 0) junkScanAdapter.addData(ParentBean(R.mipmap.x_residual, "Residual File"), 0)
......
...@@ -12,7 +12,44 @@ ...@@ -12,7 +12,44 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="300dp" android:layout_height="300dp"
android:background="@mipmap/lan_bg" android:background="@mipmap/lan_bg"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<FrameLayout
android:id="@+id/fl_fanhui"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="15dp">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:src="@mipmap/b_fanhui"
tools:ignore="ContentDescription,MissingPrefix" />
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="Clean Junk"
android:textColor="@color/white"
android:textSize="19sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
......
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