摘要: Android 5.x2015Design Support Library的应用 08/08 【转】FloatingActionButton的使用06/29CardView & Palette06/23RecyclerView的简单使用 06/23Material Design主题与ToolBar讲... 阅读全文
posted @ 2015-06-18 11:33 道无涯 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 两指缩放上下滑动可以改变笑脸弧度@IBDesignable 使View可以在storyBoard中实时预览@IBInspectable 使属性可以在storyBoard中设置HappinessViewController.swiftimport UIKitpublic class Happiness... 阅读全文
posted @ 2015-07-24 10:49 道无涯 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2015/0708/3163.html在android开发过程中,经常会要求用户输入手机号,为了便于观看,我们都会已135 xxxx xxxx这种格式展示。下面就带领大家实现这种功能... 阅读全文
posted @ 2015-07-09 14:33 道无涯 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 链接一:http://stormzhang.com/android/2015/05/26/android-tools/ButterKnife ZeleznySelectorChapek 设计师给我们提供好了各种资源,每个按钮都要写一个selector是不是很麻烦?这么这个插件就为解决这个问题而生,... 阅读全文
posted @ 2015-07-09 11:56 道无涯 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 需要compile 'com.android.support:percent:22.2.0'示例代码:github 阅读全文
posted @ 2015-07-01 15:20 道无涯 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 参考:http://blog.csdn.net/lmj623565791/article/details/46678867添加依赖:compile 'com.android.support:design:22.2.0'布局:填充色以及按下的颜色如何自定义呢?按下的颜色是rippleColor,默认取... 阅读全文
posted @ 2015-06-29 17:33 道无涯 阅读(2836) 评论(0) 推荐(0) 编辑
摘要: 来源:http://my.oschina.net/u/724985/blog/289123layout-animation可由xml和代码两种方式配置:XML由于layout-animation是对于某一组控件的操作,就需要一个基本的动画来定义单个控件的动画。另外还可以定义动画的显示顺序和延迟:an... 阅读全文
posted @ 2015-06-29 11:37 道无涯 阅读(522) 评论(0) 推荐(0) 编辑
摘要: 需要添加jar包 android-support-v7-cardview.jar android-support-v7-palette.jarCardViewCardView继承自FrameLayout类,可以在一个卡片布局中一致性的显示内容,卡片可以包含圆角和阴影。CardView的属性:背景... 阅读全文
posted @ 2015-06-23 14:24 道无涯 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 在布局文件中声明在Activity中使用Adapter的创建添加单击事件Item动画更新数据1、在布局文件中声明2、在Activity中使用// 1,找到这个ViewmRecyclerView = (RecyclerView)findViewById(R.id.my_recycler_view);/... 阅读全文
posted @ 2015-06-23 12:08 道无涯 阅读(4327) 评论(0) 推荐(0) 编辑
摘要: 原文:You must restart adb and Eclipse多种情形分析与解决方案一:错误提示The connection to adb is down, and a severe error has occured.You must restart adb and Eclipse.Ple... 阅读全文
posted @ 2015-06-18 11:28 道无涯 阅读(338) 评论(0) 推荐(0) 编辑