Commit 3b3db94d authored by wanglei's avatar wanglei

...

parent cb118fa1
......@@ -119,7 +119,10 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>() {
}
(requireActivity() as MainActivity).setScreenSize {
if (it > 0) {
binding.tvScreenSize.visibility = View.VISIBLE
binding.tvScreenSize.text = it.toFormatSize(0)
} else {
binding.tvScreenSize.visibility = View.GONE
}
}
}
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#EB423B" />
<corners android:radius="2.5dp" />
</shape>
\ No newline at end of file
......@@ -233,7 +233,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_margin="8dp" />
android:layout_margin="8dp"
android:background="@drawable/bg_eb423b_2_5"
android:padding="2dp"
android:textColor="@color/white"
android:textSize="9sp"
tools:ignore="SmallSp" />
</androidx.cardview.widget.CardView>
......
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