All Questions
Tagged with material-components-android kotlin
145
questions
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, ...
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 ...
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 ...
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/...
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:
// ...
1
vote
1
answer
63
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 ...
0
votes
3
answers
173
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 ...
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
276
views
Have a Button on top of a BottomSheet
I'd like to constrain a Button to the top of a BottomSheet so that when i drag the BottomSheet the button's height follows the BottomSheet's
Like that:
<androidx.coordinatorlayout.widget....
2
votes
1
answer
145
views
BottomNavigationView height issue when changing status bar transparency in Android app material 3
I'm working on an Android app where I want to change the status bar transparency in a DetailFragment. I've implemented a function transparentStatusBar to achieve this. When I call transparentStatusBar(...
0
votes
0
answers
22
views
Set the same elevation for all cards in recyclerview kotlin
I'm using this card xml in my item for recyclerview and it looks like the shadow increases when the position comes more down, but I want to make it one for all of them
<com.google.android.material....
0
votes
0
answers
31
views
Start Icon in Materal Design 3's Input Text seems to be ignoring MinSize property
I've been trying to utilize leading icons in my input texts while developing a mobile app, however, I cant seem to resize the icon to match the size of the input text.
code 1:
result 1:
Also tried ...
0
votes
1
answer
279
views
How to create a custom text input layout like material 3 in android, Because for me existing material 3 and material 2 not satisfying the requirement
I got requirement from designer for custom edit text or input text layout, so for that i tried to look in to MD2 and MD3 documentation, But i didn't found anything useful.
This is the requirement, ...
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 ...