Sandroid
Sandroid

Reputation: 328

how to customize the Dialog Box

In my app I am using a dialog as shown in figure. in this dialog I have a listview in a linerLayout now I want to customize this box. I mean I want to change font size of the the title "Profile Options", and make a divider between tow elements.how can I do this please guideenter image description here

Upvotes: 1

Views: 337

Answers (2)

Kiran Babu
Kiran Babu

Reputation: 1893

Please disable the title of dialog and add the title to you content view.These way you customize the dialog title

Upvotes: 0

Samir Mangroliya
Samir Mangroliya

Reputation: 40426

create your own layout and set it as

dialog.setContentView(R.layout.maindialog);

http://www.helloandroid.com/tutorials/how-display-custom-dialog-your-android-application

Upvotes: 1

Related Questions