小知识点积累
Drawable和 Bitmap 的区别:
对比项 Bitmap Drawable
显示清晰度 相同 相同
占用内存 大 小
支持缩放 是 是
支持色相色差调整 是 否
支持旋转 是 是
支持透明色 是 是
绘制速度 慢 快
支持像素操作 是 否
<?xml version="1.0" encoding="UTF-8"?><resources><!-- AddressPadMini --> <declare-styleable name="AddressPadMini"> <!-- Separator, Default is ',' --> <attr name="separator" format="string"/> <!-- Competion threshold, Default is 2 --> <attr name="threshold" format="integer|reference"/> <!-- Address button backgroud --> <attr name="addressBg" format="reference|color"/> <!-- Address button click backgroud --> <attr name="selectedAddressBg" format="reference|color"/> <!-- Address text color --> <attr name="addressTextColor" format="reference|color"/> <!-- Selected address text color --> <attr name="selectedAddressTextColor" format="reference|color"/> <!-- Cache size of duplication checking --> <attr name="cacheSize" format="integer|reference"/> <!-- Expand when addresses more than specify count --> <attr name="expandAt" format="integer|reference"/> <!-- Expand specify number of addresses on each click --> <attr name="expandStep" format="integer|reference"/> <!-- Inner decorator type --> <attr name="decoratorType"> <enum name="mail" value="0"/> <enum name="phone_mail" value="1"/> </attr> <!-- Read only mode --> <attr name="readOnly" format="boolean"/> <!-- Single line hint style --> <attr name="singleLineHintStyle"> <enum name="text" value="0"/> <enum name="button" value="1"/> </attr> <!-- =============================== --> <!-- App package class attributes --> <!-- =============================== --> <eat-comment /> </declare-styleable></resources>