小编Adi*_*ane的帖子

如何防止 Crashlytics 在 Android 开发过程中记录崩溃

在开发应用程序时,有时会崩溃,并且众所周知,在开发过程中会崩溃,它不必要地向客户端发送邮件,说明应用程序中存在一些趋势稳定性问题。

所以我想知道是否有任何方法可以在开发过程中停止日志记录。

android firebase crashlytics

7
推荐指数
1
解决办法
1714
查看次数

Material 3 MaterialSwitch默认尺寸太大?怎样才能让它变小呢?

我使用下面的代码在 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)

xml android android-layout kotlin material3

5
推荐指数
1
解决办法
581
查看次数

如何在 Jetpack compose 中从图库中拾取图像时设置最大图像选择限制

我已经从图库中选择了多个图像。但是,我想限制用户从图库中最多选择 5 张图像。

  TextButton(onClick = {
            scope.launch {
                uploadImageLauncher.launch("image/*")
            }
        }
Run Code Online (Sandbox Code Playgroud)

android kotlin android-jetpack-compose

1
推荐指数
1
解决办法
1471
查看次数