class TextEx extends Ui.Text
{
...
}
<layout ...>
<label class="TextEx" id="1" ... />
<label class="TextEx" id="2" ... />
</layout>
I must say that I do not like the solution in the style:
class ExtraSuper1 extends TextEx
{
function initialize ()
{
// All setting I will normally set in resources
...
}
}
class ExtraSuper2 extends TextEx
{
function initialize ()
{
// All setting I will normally set in resources
...
}
}
<layout ...>
<drawable class="ExtraSuper1" />
<drawable class="ExtraSuper2" />
</layout>
It looks like (undocumented in drawable) 'class' attribute has been omitted in 'label' element, which after all is drawable too.
Peter