12 2015 档案

摘要:AndroidStudio中自带SVN,下面主要总结share、commit的操作 1、share分享 添加svn地址 首次提交内容 提交时不需要版本控制的内容包括 .iml .idea 以下内容不用版本控制 .idea 文件夹,此文件夹是用来保存开发工具的设置信息。 .gradle 文件夹,此文件 阅读全文
posted @ 2015-12-27 22:20 轻云沉峰 阅读(183) 评论(0) 推荐(0)
摘要:gradle构建工具1、仓库:管理jar包等 maven ivy jcenter 2、gradle配置 配置GRADLE_HOME `C:\Program Files\Android\Android Studio\gradle\gradle-2.5` 配置GRADLE_US... 阅读全文
posted @ 2015-12-25 22:37 轻云沉峰 阅读(285) 评论(0) 推荐(0)
摘要:1、第一次安装完AndroidStudio时会网上拉取SDK更新 如果网络不畅,会卡在此处。那么可以配置使其不联网检测AndroidStudio安装目录->bin->idea.properties 文件末尾添加如下代码# # 设置打开android studio后不联网检测# disable.and 阅读全文
posted @ 2015-12-22 19:32 轻云沉峰 阅读(366) 评论(0) 推荐(0)
摘要:一、线程中使用Handler执行轮询任务1、添加任务LinkedList mTaskQueue = new LinkedList();private synchronized void addTask(Runnable runnable) { mTaskQueue.add(runnable);... 阅读全文
posted @ 2015-12-16 16:30 轻云沉峰 阅读(3455) 评论(0) 推荐(0)
摘要:一、ScrollerScroller的实现原理与scrollTo和scrollBy类似,通过ACTION_MOVE事件不断截获移动偏移量,每个偏移量通过scrollBy瞬间移动,但整体上可以获得一个平滑移动效果1.1 利用Scroller实现平滑移动 初始化Scroller mS... 阅读全文
posted @ 2015-12-08 16:38 轻云沉峰 阅读(282) 评论(0) 推荐(0)
摘要:一、弹出菜单1.1 菜单关闭与打开的组合动画 AnimatorSet set = new AnimatorSet(); set.setDuration(500); set.setInterpolator(new BounceInterpolator()); s... 阅读全文
posted @ 2015-12-07 16:25 轻云沉峰 阅读(146) 评论(0) 推荐(0)
摘要:一、自定义动画步骤 继承Animation,通常会重写public void initialize(int width, int height, int parentWidth, int parentHeight)方法,来设置动画的基本属性 重写protected void applyTrans... 阅读全文
posted @ 2015-12-05 15:03 轻云沉峰 阅读(154) 评论(0) 推荐(0)
摘要:1、XML中使用属性动画 1.1、在res下建立animator文件夹,其他无效 1.2、程序中加载动画,并设置Tag,不设置无效Animator animator = AnimatorInflater.loadAnimator(this, R.animator.object);animat... 阅读全文
posted @ 2015-12-04 16:36 轻云沉峰 阅读(111) 评论(0) 推荐(0)
摘要:Android动画分为视图动画和属性动画Android框架定义了透明度、旋转、缩放、位移几种常见动画一、视图动画1.1 实现原理 1、ViewGroup通过drawChild获取View的Animation(动画[ˌænɪˈmeɪʃn])的Transformation(变化、转换[ˌtrænsfə... 阅读全文
posted @ 2015-12-03 16:53 轻云沉峰 阅读(209) 评论(0) 推荐(0)