All Questions
Tagged with material-components-android android-jetpack-compose
63
questions
0
votes
1
answer
33
views
Must I use MaterialTheme.typography when using Jetpack Compose, or are there any alternatives?
Recently, I have switched to Jetpack Compose, I see that it's very convenient and faster when building UI with Compose. But I find it difficult and confusing to decide which style of Text should use ...
1
vote
1
answer
109
views
LargeTopAppBar is collapsible even if the inner content is not scrollable in Jetpack Compose
I am trying to implement a screen that uses TopAppBar and some items with LazyColumn.
However, LargeTopAppBar is collapsible even if the inner content is not scrollable.
STEPS
I made a scrollBehavior ...
2
votes
1
answer
177
views
Updating Jetpack Compose broke dynamic colors
In my Android Project I was using the Compose BOM 2023.08.00 version, and now I updated to 2024.04.01, but after doing so, dynamic colors no longer work. Instead, it shows gray (which isn't the ...
0
votes
2
answers
152
views
How to change CheckBox icons more effectively in jetpack compose
ok so i have two rows of checkboxes that the user can either press checked or uncheked to each individual column so i came up with this idea of code :
fun HowAmIDoingComponent(
modifier: Modifier =...
0
votes
1
answer
365
views
How to make a mini player like YouTube Music or YouTube in Android Jetpack Compose while having bottom navigation bar?
Using Material3 design principle, I think (I may be wrong here) BottomSheetScaffold Composable should be used rather than ModalBottomSheet Composable, but the problem is that I didn't find any way of ...
0
votes
0
answers
32
views
AutocompleteActivity with Compose : IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents
We are in the process of migrating our app from XML to compose and migrated a lot of areas in the app.
right now we need to implement Autocomplete from Google Places to one of our Compose screens ...
0
votes
1
answer
227
views
how can i draw a border between DropdownMenuItems in jet pack compose?
how can i draw a border between DropdownMenuItems in jet pack compose?
I want to draw a bottom border or a border between the diferent items in a DropDownMenu in jetpack compose in my Topbar Menu.
I ...
1
vote
0
answers
130
views
Android Compose Error for CoreTextField -> CoreTextField -> semanticsModifier
I get the following error when switching from Fragment to Compose view and this is experienced by many users.
I couldn't solve the error because I don't use TextField within that page or any page it ...
0
votes
0
answers
569
views
Facing issue with ModalBottomSheet in Jetpack Compose. Scrim color is not animating while opening and closing of sheet and white line on right corner
I am using ModalBottomSheet but I am facing two issues:
There is a white line on the right corner of the scrim
The scrim color is not animating while opening and closing of ModalBottomSheet
val ...
1
vote
1
answer
512
views
Don't work reCreate() activity with jetpack compose for android 13(API 30)
Don't work SetContent{} function when i call recreate function for change my app theme
Hi there
i try to change theme in my app that developed with jetpack compose(material v1.2.0-alpha12) and android ...
0
votes
1
answer
509
views
Android Native Jetpack Compose OutlinedTextField Selected By Default
In Android Native Jetpack Compose, using the material androidx.compose.material3.OutlinedTextField composable, is there some way to cause the default value I put in the field to be selected as soon as ...
1
vote
0
answers
46
views
Incorrect Colors in Jetpack Compose Preview and Physical Device [duplicate]
I'm facing an issue with colors in my Jetpack Compose app. Both in the Android Studio Preview and on my physical device (Samsung SM-G780G - Android 13.0), the colors are incorrect. In the Preview, the ...
0
votes
0
answers
28
views
What will better, make own custom AppBar, or to insert 2 appBar Android Material
I need to have 1 appBar in top where will be information, and another below is search.
But Jetpack offer AppBars not very customizable
I dont know what will better to do
Scaffold(topBar = {Column{...
0
votes
0
answers
35
views
Material Design Guidelines for choosing the right Composable
Material3 from Google is great for applying some consistency in terms of what colors, shapes and typography is used throughout the app.
However, sometimes i struggle with knowing which composables to ...
0
votes
1
answer
588
views
Jetpack Compose: Screen freezes when dissmiss ModalBottomSheet by swiping down by touching drag handle
I'm trying to create a ModalBottomSheet that will be visible and invisible depending on the value of a boolean state showBottomSheet. if showBottomSheet value is true, ModalBottomSheet will be ...