In res/value, create a new file called styles.xml and add the
following:

<resources>
    <style name="TextAppearanceLargeBold" parent="@android:style/
TextAppearance.Large>
         <item name="android:textStyle">bold</item>
    </style>
</resources>

and then new TextAppearanceSpan(mContext,
R.style.TextAppearanceLargeBold).

You might need to tweak it to the appropriate parent style you want to
override.

On Feb 10, 6:50 pm, silverburgh <[email protected]> wrote:
> Hi,
>
> Can you please tell me how can I create TextAppearanceSpan which just
> 'bold' the text without changing the Style?
>
> new TextAppearanceSpan(mContext, android.R.style.TextAppearance_Large)
>
> I have looked at all the TextAppearance attributes, None of them just
> bold the text:
>
> TextAppearance_Large : int
> TextAppearance_Large_Inverse : int
> TextAppearance_Medium : int
> TextAppearance_Medium_Inverse : int
> TextAppearance_Small : int
> TextAppearance_Small_Inverse : int
> TextAppearance_Theme : int
>
> Thank you.

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