Hi All,

I have defined buttons like following:
<Button
android:id="@+id/button_1"
android:text="1"
android:textStyle="bold"
android:textSize="30dip"
android:textColor="@color/main_text_color"
android:padding="3dip" />
<Button
android:id="@+id/button_2"
android:text="2"
android:textStyle="bold"
android:textSize="@item/text_size" - doesn't work:(
android:textColor="@color/text_color"
android:padding="3dip" />

Is it possible to use some value from resources to set
android:textSize="@item/text_size"
like i'm using color attribute?

I have defined such some item in resources
<resources>
    <item type="string" name="text_size" value="30dip"></item>
    <color name="text_color">#0000FF</color>
</resources>


Thanks in advance,
Evgeny

--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to