If you have a text that is HTML, you can set the text to a RadioButton
like this.

RadioButton.setText(Html.from(htmlString));

Try this out, this should work.

-Kumar Bibek
http://techdroid.kbeanie.com

On Sep 17, 1:20 pm, Neilz <[email protected]> wrote:
> I'm sorry but I really don't understand what you mean by this. Put a
> WebView in what layout?
>
> Here's a basic radio:
>
>  <RadioButton android:id="@+id/radio_option"
>           android:layout_width="wrap_content"
>           android:layout_height="wrap_content"
>           android:text="I want this text to appear in a WebView" />
>
> So, I want the text to appear in a WebView alongside the small round
> button.
>
> Putting a WebView within the RadioButton layout just causes a
> ClassCastException...
>
> On Sep 16, 11:15 pm, Mark Murphy <[email protected]> wrote:
>
> > On Thu, Sep 16, 2010 at 5:22 PM, Neilz <[email protected]> wrote:
> > > As standard, you get a radio button, with what I assume is a TextView
> > > alongside it containing the text to be displayed. I want to somehow
> > > override this to be a WebView.
>
> > > Can this be done?
>
> > Step #1: android:text="" on the RadioButton
>
> > Step #2: Put a WebView in the layout
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
>

-- 
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

Reply via email to