2

im using this advice: How to make an alert dialog fill 90% of screen size?

but i dont want it to set the height, just the width. i tried removing the fill parent to height, but it made it full parent anyway.

so how do i set the width only?

Community
  • 1
  • 1
texasman1979
  • 473
  • 1
  • 6
  • 17

1 Answers1

2
getWindow().setLayout(LayoutParams.WRAP_CONTENT,'yourHeightHere');
Raz
  • 8,918
  • 3
  • 27
  • 40