arenaluigi Well-Known Member Licensed User Longtime User Feb 14, 2013 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Feb 17, 2013 #2 XML styles can only be used when the layout is created with XML. I'm not sure whether someone has already created a library that creates layouts from XML. Basic4android uses a different approach for building the layout. Upvote 0
XML styles can only be used when the layout is created with XML. I'm not sure whether someone has already created a library that creates layouts from XML. Basic4android uses a different approach for building the layout.
arenaluigi Well-Known Member Licensed User Longtime User Feb 17, 2013 #3 Thank's Inviato dal mio GT-I9300 con Tapatalk 2 Upvote 0