Create activity with dialog like buttons

jensenpeach

New Member
How can I create an activity with the same layout/design as dialogs? Basically, I want to display a text and have two buttons at the bottom of the activity, similar to a dialog with the big difference, that it still should be an activity, thus rather fullscreen than a more smaller dialog.
x2oH3.png
As an alternative, I was thinking about this: With the following option:\[code\]<activity android:theme="@android:style/Theme.Dialog" ...\[/code\]I can present my activity as a dialog. But how do I now add these action buttons which look the same way as these from a dialog? If I just add a Button \[code\]<Button/>\[/code\] it looks like normal button added to an activity.
 
Top