In ApiDemos, I can see how to define my custom elements to use in
layout resources. That is :

<declare-styleable name="LabelView">
        <attr name="text" format="string" />
        <attr name="textColor" format="color" />
        <attr name="textSize" format="dimension" />
</declare-styleable>

But that is just a simple demo. I can define like this:

<declare-styleable name="MyWidget">
<attr name="textX" format="integer" min="0"/>
</declare-styleable>

I use the "min" attribute, I want to know all the attibutes I can use
and how to use, where is the document?

Thanks.
--~--~---------~--~----~------------~-------~--~----~
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