I had to look into aapt.exe to find that you can specify these strings as format attribute value:
- reference
- string
- integer
- boolean
- color
- float
- dimension
- fraction
I will continue investigating this...
UPD: You can specify multiple format values!
Behold: <attr name="test" format="reference|color|fraction"/>
UPD2:You can specify two more attributes: l10n (localization) and type. Their values are ignored though (for now?).
UPD3: You can exclusively specify:
- min & max attributes
- enum child tags
- flags child tags
UPD4: Min:max values are not checked when specifying attribute value. Also, min can be larger than max. Not implemented, I guess.
Комментариев нет:
Отправить комментарий