Hi Mark, Thanks for the reply. And there is such attribute and the use of that is to remove the default radio button image.
I also found the solution for the same newRadioButton.setButtonDrawable(android.R.id.empty); On Mon, Jan 23, 2012 at 7:56 PM, Mark Murphy <mmur...@commonsware.com>wrote: > There is no android:button attribute on RadioButton. Simply delete it. > > On Mon, Jan 23, 2012 at 9:23 AM, giles ian <gilesian....@gmail.com> wrote: > > Hello, > > > > I have below code in xml. > > > > <RadioButton > > android:layout_margin="5dip" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:background="@drawable/button_radio" > > android:gravity="center" > > android:button="@null"/> > > > > I need java code for highlighted text as I'm creating radio buttons > > programmatically. > > > > > > > > > > -- > > 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 > > > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android App Developer Books: http://commonsware.com/books > > -- > 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 -- 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