Skip to main content

Questions tagged [material-components-android]

Material Components for Android (MDC-Android) help developers execute Material Design. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional Android apps.

material-components-android
0 votes
1 answer
29 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 ...
soiXam's user avatar
  • 33
0 votes
1 answer
24 views

How to show border on TextInputLayout in Android Kotlin without MaterialComponents support

How to show border on TextInputLayout in Android without MaterialComponents. I have an AppCompatActivity using AppTheme.DialogTheme to show the Activity as a Dialog, but this configuration does not ...
jetberrocal's user avatar
0 votes
0 answers
44 views

Why are Dynamic Colors not working on my android 14?

I want to use dynamic colors in my app with java and I use DynamicColors.applyToActivitiesIfAvailable(getApplication()); to apply them, but colors doesn't change as in my phone's other apps except ...
Yamen l'Her's user avatar
1 vote
0 answers
32 views

MaterialAlertDialog not showing singleChoiceItems nor multipleChoiceItems

I'm using Java to develop Android apps. In my current app, I want to create a custom alert dialog based on MaterialAlertDialogBuilder to reuse across the app and reduce repetitive code. The problem is ...
Guy David's user avatar
1 vote
1 answer
87 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 ...
ChungJungSoo's user avatar
0 votes
1 answer
35 views

MaterialAutoCompleteTextView automatically shows dropdown when changing theme

I'm using MaterialAutoCompleteTextView to display a dropdown list for selecting a theme. xml: <com.google.android.material.textfield.TextInputLayout android:id="@+id/...
djes's user avatar
  • 36
0 votes
0 answers
39 views

Transition from Activity to Fragment

How to create a transition from an Activity to a Fragment? I specificly tried to create a MaterialSharedAxis transition from an Activity to a Fragment which did not work for me. Sample Code: // ...
Matthäus Winkler's user avatar
-1 votes
1 answer
164 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
-1 votes
1 answer
38 views

Switching between list view and grid view in android efficiently with smooth transition

I am trying to achieve a view switch that enables user to switch between "List view" and "Grid view" in Android. However, I have achieved this but I am not satisfied with results ...
Devarshi Rawal's user avatar
1 vote
1 answer
139 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 ...
SoyFaii's user avatar
  • 67
1 vote
1 answer
113 views

Material Design scroll-away searchbar with recyclerview

I would like my Material Design Searchbar to scroll-away/collapse when scrolling down in my recyclerview. I followed the guidelines from here but I can't get it to work. My activity XML: <?xml ...
Dieter27's user avatar
  • 114
1 vote
1 answer
54 views

How do I set the checked icon of a Chip programmatically?

Is there any way to set a drawable xml asset in a chip programmatically? Just playing around with chips, not forced to use them actually. I can easily swap, but i was wondering if that's possible or ...
Hele's user avatar
  • 335
0 votes
3 answers
170 views

How to Enforce ColorAccent in Dialog Buttons Across Different App Themes?

I expected the dialog's button text to use colorAccent. However, in some app themes, the dialog's button text uses colorPrimary. Here are my findings: Theme.AppCompat.Light.DarkActionBar - Dialog's ...
Cheok Yan Cheng's user avatar
0 votes
0 answers
32 views

The default top app bar color changes after updating material version to 1.11.0

I designed my app to look like this: But after updating the material library version from com.google.android.material:material:1.10.0 to com.google.android.material:material:1.11.0 the top app bar ...
ganjaam's user avatar
  • 1,258
0 votes
0 answers
36 views

Rule of thumb for smoothing angle between two lines `shapePath.lineTo` in java/kotlin

I want to make smooth the angle between two mirrored lines shapePath.lineTo(x1,y1) and shapePath.lineTo(x2,y2) by adding an arc of given radius R between that two lines. But I don't know how to work ...
C.F.G's user avatar
  • 1,359

15 30 50 per page
1
2 3 4 5
91