1

I've seen this dialog, it's very beautiful. How can I make a dialog like this ? I've made some dialogs but with the default android theme, what theme I should use or where I can find other themes for dialogs?

enter image description here

mmBs
  • 7,728
  • 6
  • 37
  • 43
user3579994
  • 131
  • 1
  • 4
  • 12

4 Answers4

4

The picture you pasted in your question is actually a screenshot from a tutorial on how to create such a dialog. Simply follow the steps provided here: http://www.javasrilankansupport.com/2012/10/android-dialog-android-custom-dialog-for-user-login.html

FD_
  • 12,712
  • 4
  • 32
  • 62
  • I download it from the site you mentioned , it's not the same dialog ,I think different version of api will show a different thing , – user3579994 May 15 '14 at 11:38
2

Best way will be creating you own layout for dialog
Custiom Dialog

Google Ref

And you will have more control of your dialog behiaviour, good practice is to use Dialog Fragment.

Community
  • 1
  • 1
user3455363
  • 378
  • 3
  • 13
1

To create a beautiful dialog in Android,

A fragment that displays a dialog window, floating on top of its activity's window. Override onCreateDialog(Bundle) to create an entirely custom dialog,such as an AlertDialog, with its own content...

Android documentation will give you a clear picture about Dialog creation,design and tips.

Community
  • 1
  • 1
blizzard
  • 4,977
  • 2
  • 31
  • 47
0

If possible its better to do by using Custom Dialog or Use activity with theme dialog.

<activity android:name=".MyDialog" 
    android:theme="@android:style/Theme.Dialog">
</activity>
Adarsh Gowda
  • 204
  • 1
  • 13