android
CaptainHai
这个作者很懒,什么都没留下…
展开
-
getSreenWH()
private void getSreenWH(){ // 获取屏幕宽高(方法1) int screenWidth = getWindowManager().getDefaultDisplay().getWidth(); // 屏幕宽(像素,如:480px) int screenHeight = getWindowManager().getDefaultDisplay().getHe原创 2015-05-08 15:25:43 · 376 阅读 · 0 评论 -
android mimetype
public static String getMimeTypeFormPath(String url){ String type = null; String extension = MimeTypeMap.getFileExtensionFromUrl(url); if (extension != null) { t原创 2015-05-08 13:48:35 · 395 阅读 · 0 评论 -
Android Animation
一.Android 动画总结 1.动画分类 View Animation,Drawable Animation,Property Animation。1.1 View Animation (用于视图对象) translate位移动画 , rotate 旋转动画, alpha透明度动画, scale缩放动画,AnimationSet 组合动画。启动动画view.startAnimation原创 2015-06-26 16:57:55 · 337 阅读 · 0 评论 -
android ndk/jni
1.命令行编译 cd <project> $ <ndk>/ndk-buildant编译Call ndk-build from your -pre-build target, like this:<target name="-pre-build"> <exec executable="${ndk.dir}/ndk-build" failonerror="true"/></targe原创 2015-06-29 16:32:59 · 539 阅读 · 0 评论