Style of view

arenaluigi

Well-Known Member
Licensed User
Longtime User
Hi Erel,
there is a way to implement in B4A the property style for the view ?
Example:

B4X:
<TextView
    style="@style/CodeFont"
    android:text="@string/hello" />

and this is the style:

HTML:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="CodeFont" parent="@android:style/TextAppearance.Medium">
        <item name="android:layout_width">fill_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textColor">#00FF00</item>
        <item name="android:typeface">monospace</item>
    </style>
</resources>

it's very useful
Thank's
 
Top