首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

小知识点累积

2012-09-12 
小知识点积累Drawable和 Bitmap 的区别:对比项BitmapDrawable显示清晰度相同相同占用内存大小支持缩放是是

小知识点积累
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>

标签 <eat-comment /> 的作用: 合并标签

Eclipse默认标签TODO,XXX,FIXME和自定义标签
1 TODO
表示需要实现,但目前还未实现的功能
2 XXX
勉强可以工作,但是需要改进的功能
3 FIXME
代码是错误的,不能工作,需要修复
4.自定义标签
window-->preferences-->java-->compiler-->tags
选择new,输入tag,选择priority,ok

上述所有注释都会被eclipse task视图所收集。在项目发布前,检查一下task视图是一个很好的习惯

android:excludeFromRecents="true" //从字面意思猜测应该就是从最近的任务列表中清除

热点排行