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

All Questions

-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
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
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
0 votes
0 answers
37 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,389
0 votes
0 answers
62 views

The implementation 'com.github.prolificinteractive:material-calendarview:versions has problems on layout

I want to use material-calendarview library on github(https://github.com/prolificinteractive/material-calendarview) but I think I have some problems about implementation/version. Documentation says ...
on_Destroy's user avatar
0 votes
1 answer
500 views

android studio - fail to build project after Material dependency upgrade

The requirement is to upgrade all gradle dependencies of an old android app. Managed to upgrade all to latest and is able to build and run the app. When I upgraded the Material dependency from com....
Sam's user avatar
  • 422
0 votes
0 answers
66 views

Material catalog draggable layout stops working when view is added

I'm using the DraggableCoordinatorLayout from the Material Components Catalog to create a set of draggable views (material CardView) that can be dragged around like stickers, it works properly when ...
Quollveth's user avatar
0 votes
0 answers
61 views

How to add textwatcher to material datepicker dialog's text field input in android?

I am trying to add a slash(/) when user type date in this format DD/MM/YYYY, I need to add slash automatically once user type DD and MM, I am thing of using text watcher here but how can I access ...
General Tony's user avatar
0 votes
2 answers
62 views

What are these bunch of non-existence methods in material button google reference?

I tried to change material button icon programmatically and for this, Stackoverflow posts suggest that there is a frangible method called setCompoundDrawablesWithIntrinsicBounds. I tried to find more ...
user21193451's user avatar
0 votes
0 answers
172 views

Android Layout XML file not rendering and app craches after using material 3 Search view

I'm fairly new to android and to material design in general I tried copying the code from material 3 search component but its doesn't render for some reason I double checked the dependencies but ...
pedro's user avatar
  • 1
0 votes
0 answers
311 views

Error when clicking on a material textfield dropdown list in Android

I have the following material textfield in my create_pool_details_layout xml view: <com.google.android.material.textfield.TextInputLayout android:id="@+id/numPlayersDropdown" ...
Learn2Code's user avatar
  • 2,210
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
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
8