摘要: touch .bash_profileexport JAVA_HOME=/Library/Java/Homeexport ANDROID_SDK_ROOT=/Applications/java/adt-bundle-mac-x86_64-20140321/sdkexport CATALINA_BAS... 阅读全文
posted @ 2014-05-13 02:10 bingoogolapple 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-04-17 17:39 bingoogolapple 阅读(496) 评论(0) 推荐(0) 编辑
摘要: sudo gedit /etc/profile.d/cocos2d-x.shexport COCOS_CONSOLE_ROOT=/home/bingo/install/cocos2d-x-3.0rc1/tools/cocos2d-consoleexport PATH=$COCOS_CONSOLE_ROOT/bin:$PATH 阅读全文
posted @ 2014-04-12 17:25 bingoogolapple 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 屏幕密度(每寸像素:ldpi-120/mdpi-160/hdpi-240/xhdpi-320)3:4:6:8DisplayMetrics dm = new DisplayMetrics();getWindowManager().getDefaultDisplay().getMetrics(dm);三... 阅读全文
posted @ 2014-04-09 14:31 bingoogolapple 阅读(298) 评论(0) 推荐(0) 编辑
摘要: AccelerateDecelerateInterpolator先加速再减速AccelerateInterpolator加速AnticipateInterpolator先回退一小步,然后再迅速前进AnticipateOvershootInterpolator先回退一小步,然后再迅速前进,在超过右边界一小步BounceInterpolator实现弹球效果CycleInterpolator周期运动DecelerateInterpolator 减速LinearInterpolator匀速OvershootInterpolator快速前进到右边界上,再往外突出一小步 阅读全文
posted @ 2014-04-09 13:28 bingoogolapple 阅读(186) 评论(0) 推荐(0) 编辑
摘要: android:inputType="none"--输入普通字符android:inputType="text"--输入普通字符android:inputType="textCapCharacters"--输入普通字符android:inputType="textCapWords"--单词首字母大小android:inputType="textCapSentences"--仅第一个字母大小android:inputType="textAutoCorrect"--前两个自动完成 阅读全文
posted @ 2014-04-08 10:04 bingoogolapple 阅读(145) 评论(0) 推荐(0) 编辑
摘要: public class DensityUtil { /** * 根据手机的分辨率从 dip 的单位 转成为 px(像素) */ public static int dip2px(Context context, float dpValue) { final float scale = context.getResources().getDisplayMetrics().density; return (int) (dpValue * scale + 0.5f); } /** * ... 阅读全文
posted @ 2014-04-07 13:02 bingoogolapple 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 在 Eclipse 上开发 Android 应用,在将代码提交到 SVN 时需要注意的是把 bin 和 gen 目录加到 svn:ignore ,因为这两个目录都是编译的输出目录,如果提交到SVN会导致跟别人的工作目录冲突。操作方法:Click onWindow -> PreferencesSelectTeam -> Ignored ResourcesClick onAdd Patternand enter "bin"Click onAdd Patternand enter "target"Click onAdd Patternand ent 阅读全文
posted @ 2014-04-03 15:45 bingoogolapple 阅读(493) 评论(0) 推荐(0) 编辑
摘要: PTRListView.javapublic class PTRListView extends ListView implements OnScrollListener { private static final int PULL_TO_REFRESH = 0; private static final int RELEASE_TO_REFRESH = 1; private static final int REFRESHING = 2; private static final int DONE = 3; // view组件 private View ... 阅读全文
posted @ 2014-04-01 17:24 bingoogolapple 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 1.apktool 下载a.将apk文件和apktool.jar放在同一目录b.在命令行跳转到a中所述目录,执行java -jar apktool.jar d xxx.apk到此,已经获取到清单文件和资源文件,但是并没获取到xxx.dex文件2.dex2jar 下载a.用压缩工具解压xxx.apk文件中的xxx.dex文件b.将xxx.dex文件拷贝到dex2jar目录下c.在命令行跳转到a中所述目录,执行dex2jar.bat xxx.dex(Windows) ./dex2jar.sh xxx.dex(Ubuntu)到此就得到了xxx.jar文件3.jd jui 下载运行jd-gui... 阅读全文
posted @ 2014-03-12 12:23 bingoogolapple 阅读(143) 评论(0) 推荐(0) 编辑