0

in my Android application (for tablets), I have a two pane layout. On the left is a fragment containing a navigation menu of sorts, and on the right is a fragment loaded with buttons.

Pressing one of these buttons should result in a AlertDialog popping up. It does, however it pops up over the entire application, instead of just that one fragment. Everything else works perfectly.

I'd be eternally grateful if we could find a solution for this particular issue :)

Thank you!

Mark Adler
  • 101,978
  • 13
  • 118
  • 158
  • One little update: it occured to me that I could transfer each and every one of my alertdialog xmls inside my fragment, but I'd like to see a solution done programmatically. – theingenieur Mar 08 '15 at 16:18

2 Answers2

0

This question should be what you need. To change the size of your dialog, see this.

Alternatively, you could change the layout of your fragment when the button is clicked, which might be better or look nicer.

Community
  • 1
  • 1
Jonas Czech
  • 12,018
  • 6
  • 44
  • 65
0

I think you can override a dialog to solute this problem

adsion
  • 187
  • 3
  • 13