摘要: 1:配置kotlin开发环境 1:在Android Studio设置里找到插件 下载安装kotlin; 2:安装完成第一次new文件 会发现有kotlinClass及kotlinActivity.新建kotlin类 3:右上角会提示配置kotlin信息 点进去自动配置kotlin开发环境;等待几分钟 阅读全文
posted @ 2017-07-06 15:12 weiren123123 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1:依赖 compile 'commons-io:commons-io:2.5' 可使用FileUtils里的各种文件处理方法 2:文件处理类DirTraversal 阅读全文
posted @ 2017-06-26 10:58 weiren123123 阅读(251) 评论(0) 推荐(0) 编辑
摘要: <TextView android:id="@+id/tv_updata" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="15dp" android 阅读全文
posted @ 2017-06-20 14:34 weiren123123 阅读(1517) 评论(0) 推荐(0) 编辑
摘要: #控件之BadgeView(数字提醒) BadgeView badgeView = new BadgeView(this); //显示在控件上VIEW badgeView.setTargetView((View)view.getParent()); //显示数字 badgeView.setText( 阅读全文
posted @ 2017-03-27 12:21 weiren123123 阅读(1358) 评论(0) 推荐(0) 编辑
摘要: 最近研究沉浸式导航栏,上网看了好多,差不多实现都是一样的。。。。代码如下: 在你的Activity中(最好是setContentView()被调用之后)添加以下代码: 阅读全文
posted @ 2017-03-21 14:37 weiren123123 阅读(1234) 评论(0) 推荐(0) 编辑
摘要: 一:如何使用 1:gradle配置 在android中添加: dataBinding { enabled = true } 2:在xml布局文件中添加layout标签 <layout> // 原来的layout </layout> 3:在Activity中绑定布局,获取binding实例 通过Dat 阅读全文
posted @ 2017-03-04 13:57 weiren123123 阅读(298) 评论(0) 推荐(0) 编辑
摘要: ArrayList,LinkedList,Vestor这三个类是java.util.List接口的实现类 区别: 1.ArrayList是实现了基于动态数组的数据结构,LinkedList基于链表的数据结构。 2.对于随机访问get和set,ArrayList觉得优于LinkedList,因为Lin 阅读全文
posted @ 2017-03-02 12:28 weiren123123 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: List、Set继承与Collection接口;map没有显式的继承类; List接口有三个实现类:LinkedList,ArrayList,Vector LinkedList:底层基于链表实现,每一个元素存储本身内存地址的同时还存储下一个元素的地址。链表增删快,查找慢 ArrayList和Vect 阅读全文
posted @ 2017-03-02 12:14 weiren123123 阅读(285) 评论(0) 推荐(0) 编辑