在开发应用程序时,有时会崩溃,并且众所周知,在开发过程中会崩溃,它不必要地向客户端发送邮件,说明应用程序中存在一些趋势稳定性问题。
所以我想知道是否有任何方法可以在开发过程中停止日志记录。
我使用下面的代码在 Android 中使用 XML 创建一个材质 3 开关,它比普通开关大得多。有什么办法可以让它变小吗?
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/biometrics_switch"
style="@style/Widget.Material3.CompoundButton.MaterialSwitch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:switchPadding="@dimen/_10sdp" android:minHeight="@dimen/_10sdp"
app:thumbTint="@color/white" app:trackTint="@color/neutral_800" />
Run Code Online (Sandbox Code Playgroud) 我已经从图库中选择了多个图像。但是,我想限制用户从图库中最多选择 5 张图像。
TextButton(onClick = {
scope.launch {
uploadImageLauncher.launch("image/*")
}
}
Run Code Online (Sandbox Code Playgroud)