All Questions
Tagged with material-components-android android-alertdialog
49
questions
1
vote
1
answer
704
views
Remove external dark background on Material Dialog
I need to remove the grey background outside the dialog, exactly as shown here: How to remove transparent dark background outside of dialog box
Sadly, I'm working with Material Dialog, and it seems I ...
2
votes
2
answers
749
views
Android fullscreen AlertDialog
I'm trying to make a full screen dialog in my Android application, but I'm not able to expand it to the status bar. You can see the gray status bar in the image below.
EDIT 1:
It seems to be a problem ...
4
votes
2
answers
904
views
Full width alert dialog buttons
I'm trying to get my AlertDialogs to look like this, with the full width button:
I'm following the Google's documentation and it says to use this style:
R.style....
1
vote
1
answer
373
views
Set MaterialAlertDialog horizontal margins
I wrote a custom theme for all my (Material)AlertDialogs and applied it to APP's theme.
<style name="MyTheme" parent="Theme.AppCompat.NoActionBar">
<item name="...
3
votes
0
answers
281
views
How add divider to material alert dialog?
i have the following code
val builder = MaterialAlertDialogBuilder(requireContext())
with(builder) {
setSingleChoiceItems(cities, checkedItemId) { dialog, cityId ->
...
i ...
1
vote
2
answers
777
views
How can I change the corner radius of Material Components Dialog (M3) in Android
See the pic at here
I'm using MDC(3) for my project as first time and everything is going well until I see the dialog. What is wrong with that?
According per docs the size of corner radius is 28dp
How ...
1
vote
1
answer
137
views
What is the font used in following Android Material dialog?
I want to know what is this font used for CANCEL, DECLINE and ACCEPT in the following material dialog.
1
vote
0
answers
339
views
How to scale materialalertdialog with screen size?
Currently, I am trying to create a materialalertdialog that should scale with the screen size. For example, the text size and the buttons should get bigger on tablets than they are on normal phone ...
4
votes
1
answer
995
views
Why is MaterialAlertDialog so slow when measuring a custom view/layout?
I'm working on a hobby project where I'm building a custom Bluetooth remote that can be configured using a companion native Android app. Everything is working just fine but I'm running into this weird ...
2
votes
1
answer
2k
views
'Material' vs 'MaterialComponents'
What is the difference between Theme.Material... and Theme.MaterialComponents...?
I am creating an alert dialogue and when I create it using:
new AlertDialog.Builder(context, android.R.style....
0
votes
2
answers
1k
views
Unable to display material alert dialog in NoBar.FullScreen activity
Here in my full screen activity when i try to show MaterialAlertDialog i get the following error.
Error
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.jlplayer/Activity....
1
vote
1
answer
508
views
How to change EditText style in AlertDialog?
I added Cyanea (a theme engine) into my app and the EditText style changed (see images, color doesn't matter. The first picture is how it looks now, and the second one is what I want the dialog to ...
5
votes
1
answer
1k
views
Is there any way to theme a preference dialog?
I am using a custom theme for dialogs in my app.
The custom theme applies to the alert dialogs just fine.
But the theme does not apply on the preference dialogs like ListPreference, CheckboxPreference ...
3
votes
1
answer
2k
views
Why is my default alert dialog button text white?
I have set up my app as follows:
build.gradle
implementation 'com.google.android.material:material:1.1.0'
styles.xml
<style name="AlertDialogTheme" parent="ThemeOverlay....
9
votes
1
answer
6k
views
Alert Dialog doesn't adapt to Dark Mode and non-dark mode
Why doesn't my Alert Dialog adapt to my phone's Dark Mode? When Dark Mode is activated in my phone, the two buttons' text is barely visible, while the title and message colors are inverted. why aren't ...