2

I have a custom dialog that contains long text. In portrait mode dialog looks good. But in landscape mode I don't want it to take up whole screen width. Is there any way to define max width of a dialog in % of screen's width? Because wrap_content won’t work in this case. Any solution?

user
  • 86,916
  • 18
  • 197
  • 190
M-Wajeeh
  • 17,204
  • 10
  • 66
  • 103
  • You'll want to set a margin for the dialog. Check this older question: http://stackoverflow.com/questions/6153489/how-to-set-margins-to-a-custom-dialog – Lukas Knuth Apr 12 '12 at 09:57

1 Answers1

-3

You should give wrap_content for both Height and Width of Parent Layout..will try.It should be Resolve your problem

Arun Kumar
  • 100
  • 1
  • 2
  • 12