Commit 5c96ae9f authored by wanglei's avatar wanglei

...

parent 829e516e
...@@ -62,6 +62,9 @@ class Home2Fragment : BaseFragment<FragmentHome2Binding>(FragmentHome2Binding::i ...@@ -62,6 +62,9 @@ class Home2Fragment : BaseFragment<FragmentHome2Binding>(FragmentHome2Binding::i
binding.llPhotoCompression.setOnClickListener { binding.llPhotoCompression.setOnClickListener {
(requireActivity() as MainActivity).permissionStorageJump(PHOTO_COMPRESSION) (requireActivity() as MainActivity).permissionStorageJump(PHOTO_COMPRESSION)
} }
binding.ivScrollBottom.setOnClickListener {
binding.scrollView.smoothScrollTo(0, binding.scrollView.getChildAt(0).measuredHeight)
}
} }
@SuppressLint("SetTextI18n") @SuppressLint("SetTextI18n")
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
</FrameLayout> </FrameLayout>
<ScrollView <ScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
...@@ -138,6 +139,7 @@ ...@@ -138,6 +139,7 @@
android:textSize="@dimen/sp_17" /> android:textSize="@dimen/sp_17" />
<androidx.appcompat.widget.AppCompatImageView <androidx.appcompat.widget.AppCompatImageView
android:id="@+id/ivScrollBottom"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
......
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