Try this link: This is for DialogPreference
http://stackoverflow.com/questions/5722531/how-to-access-widgets-in-a-custom-dialogpreference-with-a-inflated-layout And also you set background for layout Which you set the layout for DialogPreference I hope this will help to you Regards Android developer Trinay Technology Solutions www.trinaytech.com 5705750475 On Tuesday, February 19, 2013 4:59:43 PM UTC+5:30, Filipe Batista wrote: > > Hi, > > I have a custom DialogPreference where i have set my layout (* > setDialogLayoutResource*), but the Dialog shows the "default" black > background around the layout. > How can i remove that black background? > > I have already tried in the *showDialog(Bundle state) *method something > like this: > >> >> getDialog().getWindow().setBackgroundDrawableResource(android.R.color.transparent); > > > But it didn't work... > > Thanks. > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

