The radio button drawable is the background drawable. You need to use a 9patch and have a stretch region in which the text will go.
On Wed, May 19, 2010 at 9:59 PM, Divkis <[email protected]> wrote: > Hi, > > On May 18, 11:10 pm, TreKing <[email protected]> wrote: >> On Tue, May 18, 2010 at 12:53 PM, Divkis <[email protected]> wrote: >> > Any other ideas? >> >> Nope, sorry. I haven't used it myself, but I assumed the setDrawable >> functions in that class would be what you were looking for. > > Nopes there is no such function in either CompoundButton or > RadioButton class. > > I tried setting the button drawable with: > > RadioButton photoButton = > (RadioButton)activity.findViewById(R.id.photobutton); > photoButton.setButtonDrawable(R.id.photobutton); > > but the background image set in xml is now completely gone and the > button is enlarged out of proportion and interfering with the layouts. > > It isn't quite clear from documentation what is the difference between > setButtonDrawable and setBackgroundDrawable. > > > I would really appreciate if someone could point me in the right > direction, > Thanks in advance, > DivKis > > -- > 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 > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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

