Android Compose CircularProgressIndicator crashing with latest material

Issue This is what I use in my top level build.gradle buildscript { ext.kotlin_version = ‘1.9.22’ ext.compose_version = ‘1.5.8’ This is in my app/build.gradle: //compose implementation platform(‘org.jetbrains.kotlin:kotlin-bom:1.8.0’) implementation platform(‘androidx.compose:compose-bom:2023.10.01’) implementation ‘androidx.compose.ui:ui’ implementation ‘androidx.compose.ui:ui-graphics’ implementation ‘androidx.compose.ui:ui-tooling-preview’ implementation ‘androidx.lifecycle:lifecycle-runtime-compose’ implementation "androidx.compose.material:material:1.6.0-rc01" implementation

Continue reading

Android – Chip background color changes when used with BottomSheet Material 3

Issue This is my chip XML code: <com.google.android.material.chip.Chip android:id="@+id/income_type_chip" android:layout_width="0dp" style="@style/Widget.Material3.Chip.Filter" android:layout_height="wrap_content" android:layout_marginTop="24dp" android:layout_marginEnd="16dp" android:layout_marginStart="16dp" android:checkable="true" android:enabled="true" android:text="@string/income_label" app:layout_constraintEnd_toStartOf="@+id/expense_type_chip" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintStart_toEndOf="@+id/category_type_label" app:layout_constraintTop_toBottomOf="@+id/category_name_input_layout" /> When I use the same code outside the modal bottom sheet everything is normal: But when

Continue reading

Material dialog is not displaying buttons corectlly

Issue When app displays dialog with long text via MaterialAlertDialogBuilder buttons are cropped on some devices. my code: MaterialAlertDialogBuilder(requireContext()) .setTitle(getString(R.string.placeholder)) .setMessage(getString(R.string.lorem_ipsum)) .setPositiveButton(getString(R.string.ok)) { dialog, _ -> dialog.dismiss() } .show() How do I make them displayed properly? Screenshot Screenshot from another

Continue reading