简体   繁体   中英

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 guide 在此处输入图片说明

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

请禁用对话框的标题并将其添加到内容视图中。用这种方式自定义对话框标题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM