0

I've got an AlertDialog and I would like to change the height of the underlaying background, not the dialog itself. Haven't been able to find any source online showing if this is possible or which attributes in the alert dialog theme to manipulate. The only attribute that seems to change anything with the underlaying background is dimAmount. Here is what I have: enter image description here

Here's what I would like to have: enter image description here

As you can see the action bar and bottom navigation buttons are no longer being covered by the AlertDialog underlay.

M. Smith
  • 379
  • 1
  • 20
  • 1
    whats that blue floating icon :0 new feature android xoxo check this my old answer helps http://stackoverflow.com/a/41373144/5188159 – Charuක Feb 14 '17 at 17:29
  • Do you want to place alertDialog center vertically ? – tahsinRupam Feb 14 '17 at 17:32
  • @tahsinRupam no I want decrease the height/ give the dimmed underlay top and bottom margins so you can see the top actionbar and navigation buttons on the bottom – M. Smith Feb 14 '17 at 17:35
  • @M. Smith well then my answer does not help you. what about having a custom view which display as an alert but just a view – Charuක Feb 14 '17 at 17:39
  • Im already using a custom view with a custom class extending AlertDialog, guess I could try to replicate the dimmed background in my custom view. I was hoping there was some seldom use attribute out there in the vast R.style world lol – M. Smith Feb 14 '17 at 17:44

0 Answers0