Android动画
Android 3.0之后的动画框架
Android 3.0之后的动画框架
无需任何其他不相关的工具,便可无线调试程序
提供了一个水平滚动的Indicator
实现单选必须要设置ListView为CHOICE_MODE_SINGLE(listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE)或android:choiceMode=”singleChoice”)
1 | private int cur_pos = 0;// 当前显示的一行 |
1 | public class Mydapter extends BaseAdapter { |
1 | --- system # 系统级别 |
1 | # 将工作区的修改提交到暂存区 |
1 | git diff |
1 | git branch -r # 查看远程分支 |
1 | git remote -v # 查看远程服务器地址和仓库名称 |
1 | git fetch # 拉取 |
1 | git stash # 将工作区做的修改暂存到一个git栈中 |
1 | git clone --bare git_url_path # clone的时候,将其创建成远程仓库 |
在基类BaseActivity中加入如下函数
1 | public final <E extends View> E getView (int id) { |
使用ViewFinder类,封装了常用的方法。可以在Activity或View中调用。
1 | public class ViewFinder { |
General -> Editors -> Text Editors -> Show line numbers
General -> Keys -> Command 在其中找到New(Android Application Project) 设置为 Ctrl+Alt+A
General -> Workspace -> Text file encoding
Android –> Editors –> Always remove empty lines between elements:不要勾选,以确保个元素之间都有一个空行;Format on Save:勾选。
Java –> Editor –> Save Actions –> Perform the selected actions on save
–> 勾选 Format source code(如果是一个人写代码,可以勾选Format all lines;如果需要通过SVN/Git等与他人合作,一定不能勾选Format all lines而是勾选Format edited lines)
Java –> Editor –> Typing –> Automatically insert at correct position 勾选Semicolons(分号),Braces(花括号)
Help→Install New Software -> Add 添加 http://eclipse-color-theme.github.com/update 然后下一步下一步就好
安装完成 Window→Preferences→General→Appereance→Color Theme 选择自己喜欢的theme换上即可
scaletype决定了图片在View上显示的方式,可以通过xml中定义android:scale=或者代码中调用imageView.setScaleType()
示例的原图
128*128

640*428










