Re: [android-developers] dynamic dialog
Window window = screenDialog.getWindow(); WindowManager.LayoutParams wlp = window.getAttributes(); wlp.gravity = Gravity.CENTER_HORIZONTAL; but it is not setting. At the risk of this being a silly question... you *are* calling setAttributes(wlp) afterwards, yes? {:v) *Allegedly* (https://groups.google.com/forum/?fromgroups#!topic/android-developers/8uZYE0C4uZY) setting the .x and .y members of wlp both to 0 centres the dialog as well. Worth trying to set .x to 0 if you only want horizontal centring. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dynamic dialog
I want to set dialog center of the screen I am using Window window = screenDialog.getWindow(); WindowManager.LayoutParams wlp = window.getAttributes(); wlp.gravity = Gravity.CENTER_HORIZONTAL; but it is not setting. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dynamic dialog
thank you -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dynamic dialog
I want to hide border of dialog. It appears that you have to use a custom theme for the dialog - for example: Dialog dialog = new Dialog(this, android.R.style.Theme_Translucent_NoTitleBar); (I don't know how to create themes, so you'll have to search for a tutorial.) The full StackOverflow article that gave this answer is here: http://stackoverflow.com/questions/1883425/android-borderless-dialog -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dynamic dialog
Thank you I want to hide border of dialog. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dynamic dialog
I have created dialog box dynamically I am setting backgroung image of that dialog but the image is not covering whole screen of dialog. Which part of the dialog is still showing? If it's the title, then use dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] dynamic dialog
I have created dialog box dynamically I am setting backgroung image of that dialog but the image is not covering whole screen of dialog. what is the property of dialog from which i can hide the the default dialog. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en