Thursday, November 5, 2009

[android-developers] How can I get button in dialogue generated by EditTextPreference

Hi, all

I have a class derive from EditTextPreference
and I want to change the dialog button's text size generated by it,

So I try to get the button, like this:

protected void onBindDialogView(View view)
{
.........
Button myButton1 = (Button)view.findViewById(R.id.button1);
Button myButton2 = (Button)view.findViewById(R.id.button2);
Button myButton3 = (Button)view.findViewById(R.id.button3);
.........
}


but I get nothing but null.

Can anyone kindly help me?

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment