views:

595

answers:

2

I created an non-maximized activity using android:theme="@android:style/Theme.Dialog" to make it looks like a dialog. I need to change the position of the activity on screen but I didn't find how to do this...

A: 

Hi

I am also looking for a solution for this. Anyone had any idea?

Thanks!

xwz7611
HI JRLAre you saying change the positions of the items in the dialog or the position of the dialog itself?thanks!
xwz7611
+1  A: 

Create a custom theme with Theme.Dialog as its parent:

  <style name="CustomDialogTheme" parent="@android:style/Theme.Dialog">

So, for each item in the Dialog theme that you want to change, use CustomDialogTheme instead of Theme.Dialog inside the Android Manifest. See the android developper docs for details.

JRL