Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

-1 votes
1 answer
199 views

Fatal Exception: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 5: TypedValue{t=0x2/d=0x7f040109 a=23}

I am facing an error message which triggers whenever I click in a MaterialDatePicker. I think it is related with the ThemeOverlay but I have no idea how can I get rid of it. This is the error message: ...
Sergio Rey's user avatar
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 ...
Curious Head's user avatar
0 votes
1 answer
34 views

Textfield hint in Android Studio is not positioned properly

When I type in the Material UI Textfield, the hint is not positioning itself properly. As you can see in this image, the hint is not properly positioned as it goes more left. I am just trying to do ...
Thirumalai K.G's user avatar
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 ...
Collaxd's user avatar
  • 517
0 votes
0 answers
241 views

How to add material3 components to the XML design palette?

So I followed this guide here on how to add material3 to the gradle and I was able to get the colors XML.However, when I go to the layout XML, the palette does not have any of material3's components (...
CoffeeBean's user avatar
1 vote
0 answers
372 views

Android Studio design view invisible when using certain Material 3 components

Recently I started using Material 3 Design components in my app. For some reason though, the design view goes invisible when using certain Material 3 components in my xml code. As soon as I delete ...
Blaupunkt's user avatar
  • 129
0 votes
1 answer
126 views

AppBarLayout and SearchBar exception in Android Studio Design (MDC 1.8.0-rc01)

I added a AppBarLayout and this exception occurred in the Design tab of the IDE. java.lang.IllegalArgumentException: Motion easing theme attribute must be an @interpolator resource for ?attr/...
mik3.rizzo's user avatar
1 vote
0 answers
271 views

How to use material3 design in andorid studio (xml & java)?

Does anybody have a guide? and I saw their github for getting started, wasnt very helpfull I've added the implementation and I've changed the theme to "Theme.Material3.Light.NoActionBar". ...
MosheDaz123's user avatar
1 vote
1 answer
117 views

Build Failed: No resource identifier found for attribute 'layout_behavior'

I'm using Android Studio 2.3.3 I did all the steps below but nothing worked. 1) Sync Project with gradle files 2) Build -> Clean Project 3) Build -> Rebuild Project 4) File -> Invalidate ...
piterson's user avatar
0 votes
1 answer
43 views

Studio's demo project fails when extending a Material3 style

I've created a dead simple Android Studio's starter project (Basic Activity) and I'm getting linkage errors after adding a simple style file in res/values/app_styles.xml: <resources> <...
andbi's user avatar
  • 4,434
1 vote
3 answers
1k views

@style/Widget.Material3.Button causing render problem

When I'm applying style to my button @style/Widget.Material3.Button then it is making the whole layout design disappear and the layout is not visible anymore. Here is my XML Code. <Button style=...
Cypher's user avatar
  • 337
0 votes
1 answer
481 views

Android: Buttons in MaterialButtonToggleGroup not showing on screen

I am trying to add two buttons to my layouts using the MaterialButtonGroup tag however they do not show up in my app or in the design view of Android Studio. This is in my build.gradle. I've tried a ...
chubbersbubbers's user avatar
0 votes
0 answers
143 views

Android Studio material library causes cannot convert String to Boolean crash

I've just bumped the material library in one of my apps to the latest (1.6.1) from 1.4.0. implementation 'com.google.android.material:material:1.6.1' With 1.4.0 everything worked fine, but now my app ...
Fat Monk's user avatar
  • 2,225
0 votes
3 answers
1k views

How do you apply a button style to all buttons in an Android app? [duplicate]

I've created a brand new app using the basic activity. I want to change the colour of all buttons (from the default primary colour of purple to a custom non-primary colour of green). Here's my themes....
roflcopter1101's user avatar
2 votes
3 answers
2k views

Android Material TextInputLayout endIcon cuts off text in MaterialAutoCompleteTextView

I have some very short text input (like only 2 numeric characters) yet using the endIcon will hog half of my textview and will cut off and display ellipses. I cannot make the TextInputLayout wider so ...
Ranknoodle's user avatar

15 30 50 per page
1
2 3 4 5