![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
qq_32666413
android开发
展开
-
getCacheDir()、getFilesDir()、getExternalFilesDir()、getExternalCacheDir()区别
getCacheDir()方法用于获取/data/data//cache目录 getFilesDir()方法用于获取/data/data//files目录通过Context.getExternalFilesDir()方法可以获取到 SDCard/Android/data/你的应用的包名/files/ 目录,一般放一些长时间保存的数据通过Context.getExternalCa原创 2017-09-06 17:26:24 · 248 阅读 · 0 评论 -
eclipse异常报错:Unable to build: the file dx.jar was not loaded from the SDK folder
由于最近通过SDK-Manager更新了build-tools,当要用到dx.jar这个包时,自动调用最新build-tools中dx.jar,但是运行android项目时Console却提示:Failed to load C:\Program Files (x86)\Android\android-sdk\build-tools\26.0.0-preview\lib\dx.jarUnab原创 2017-09-07 08:48:40 · 506 阅读 · 0 评论 -
android 中四种补间动画(透明,平移,缩放,旋转)
android中提供了4中动画: AlphaAnimation 透明度动画效果 ScaleAnimation 缩放动画效果 TranslateAnimation 位移动画效果 RotateAnimation 旋转动画效果 本节讲解ScaleAnimation 动画, ScaleAnimation(float fromX, float toX, float fromY,原创 2017-09-07 09:17:10 · 579 阅读 · 0 评论 -
Failure [INSTALL_FAILED_OLDER_SDK]
安装apk失败:$ adb install ./app/build/outputs/apk/app.apkFailure [INSTALL_FAILED_OLDER_SDK]原因就是您设备的Android版本过低,app不支持。 改正的办法就是在程序的Manifest文件(或build.gradle)中将最低版本号调高。Manifest中:uses-sdk原创 2017-09-07 11:18:22 · 289 阅读 · 0 评论 -
最全android Demo
1、BeautifulRefreshLayout-漂亮的美食下拉刷新https://github.com/android-cjj/BeautifulRefreshLayout/tree/BeautifulRefreshForFood2、Material Design-动画风格的选项卡tab切换功能https://github.com/neokree/MaterialTabs3、TwinklingR...原创 2018-06-01 10:34:34 · 54764 阅读 · 2 评论 -
Android Lottie动画的简单使用
简介在Android中做动画效果无非是以下几种方法:普通动画帧动画属性动画通过改变LayoutParams布局参数来实现动画现如今在Github上有一个比较火的动画库Lottie,Github上关于Lottie库介绍大概是这样的: Lottie是一个为Android和iOS设备提供的一个开源框架,它能够解析通过Adobe After Effects 软件做出来的动画,动画文件通过Bodymovin...原创 2018-06-01 14:44:32 · 648 阅读 · 0 评论 -
Lottie 复杂动画实现
Lottie支持复杂动画(json)使用笔记基础信息Lottie Git开源地址(都给出只是方便大家找,其实我本人只用到Android) Android:地址iOS:地址React Native:地址JSON文件需要Bodymovin导出的json文件 Bodymovin:地址官方说明:地址官方Demo(Google市场):地址Lottie相关信息官方案例丢在Google应用市场了,国内不好下载。...原创 2018-06-01 15:08:27 · 728 阅读 · 0 评论 -
SwipeRefreshLayout的基本使用
这里我再大概解释一下:在竖直滑动时想要刷新页面可以用SwipeRefreshLayout来实现。它通过设置OnRefreshListener来监听界面的滑动从而实现刷新。也可以通过一些方法来设置SwipeRefreshLayout是否可以刷新。如:setRefreshing(true),展开刷新动画。setRefreshing(false),取消刷新动画。setEnable(true)下拉刷新将不...原创 2018-06-01 15:20:33 · 500 阅读 · 0 评论