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

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
0 answers
40 views

Why could not inflate Behavior subclass com.google.android.material.bottomsheet.BottomSheetBehavior?

My intention is: when I press the buttom labeled "STANDARD BOTTOM SHEET", I want the Standard sheet dialog to be shown. I'm trying to use a bottom sheet modal dialog, but for some reason, ...
Thyerry Nunes's user avatar
-1 votes
0 answers
20 views

material3 TextInputLayout actual text overlaps with prefix when it's inside recycler view

I'm using TextInputLayout and TextInputEditText as item layout inside a recycler view. the recycler view has 9 items, the first 4 items that are shown have no problem, the problem is within items 5,6,...
Mahes's user avatar
  • 101
0 votes
1 answer
19 views

How can i implement a tab selector for BottomNavigationView?

Hellow there, i just wanna implement a tab selector for BottomNavigation view like this: At the moment i don't care about the item animations, i only want to put the bottom rectangle for the selected ...
Daniel Francos's user avatar
1 vote
0 answers
18 views

How to change rounding of the Android Material range sliders

I haven't found any information on how to change both the active and inactive tracks corner rounding for Android Material range sliders ; how do I do that or work around it? I have read: Android ...
xxfogs's user avatar
  • 79
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 ...
soiXam's user avatar
  • 33
0 votes
1 answer
27 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
57 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
33 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
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 ...
ChungJungSoo's user avatar
0 votes
1 answer
38 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
42 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
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
-1 votes
1 answer
40 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
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 ...
SoyFaii's user avatar
  • 77
1 vote
1 answer
118 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

15 30 50 per page
1
2 3 4 5
91