When one creates custom dialogs in Android there is a problem with setting the width of the dialog to fill the entire available space. I described custom dialog creation here. This sample shows how to set the width of the custom dialogs in Android:
loginDialog.getWindow().getAttributes().width = LayoutParams.FILL_PARENT;
OR
loginDialog.getWindow().setLayout(600, 400);
This is one of the good quality post.I am so happy by read your blog details.This is one of the enjoyable post.
ReplyDeleteAndroid app developers
I got a good entertainment to visit your blog, becasue its having the lots of interesting information and to providing the good timing.
ReplyDeleteperfect! thanks for the tip!
ReplyDeletei have searched many sites but i have not found it ,thanks for posting this...
ReplyDeletedoesn't work
ReplyDeleteits not working in fragments.
ReplyDeletenot working man
ReplyDeleteWow!!grt bolg yar!!
ReplyDeletewhen using fragments, write this code inside the onCreate() method.
ReplyDelete