-
material3 中的BottomSheetDialogFragment 如何实现预测性返回?
在 Material3 中,BottomSheetDialogFragment(通常继承自 com.google.android.material.bottomsheet.BottomSheetDialogFragmen…
-
Android ViewStub 使用
ViewStub 是 Android 提供的一个轻量级 View,用于延迟加载布局,优化性能。它在 XML 中定义时不会立即占用资源,只有在 inflate() 之后才会真正创建和添加视图。 1. ViewStub 的使…