- 博客(10)
- 收藏
- 关注
原创 一.ScrollView滑动卡顿
//禁用滑动事件 recyclerview.setNestedScrollingEnabled(false); android:scrollbars="none"
2018-05-19 11:34:47 4298
原创 一.android沉浸式
一.在values下的styles中添加 <!--添加状态栏(第一种方式)--> <!--<item name="android:fitsSystemWindows">true</item>--> <style name="contain
2018-05-18 21:08:38 195
原创 一.ImageView设置透明度边框
一.在drawable中写入 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <corners android:radius="1.0px"/> &l
2018-05-18 20:49:06 775
原创 .gitignore
*.iml .gradle /local.properties /.idea/workspace.xml /.idea/libraries .DS_Store /build /*/build /captures /.idea # Built application files *.apk *.ap_ # Files for the Dalvik VM *.dex # Java class f...
2018-05-18 16:14:00 125
原创 二.屏幕适配
/** 将此文件直接复制到项目中,不要忘记清单文件配置Application,另 布局中使用pt * (例如: android:layout_height="300pt" 用错可不适配哦!) * feisher @2017年8月11日14:52:27 二次整理,原稿 为新浪大牛 布隆 * 458079442@qq.com */ public class MyApplic...
2018-05-13 19:53:29 133
原创 一.studio插件
GsonFormat 快速将json字符串转换成一个Java Bean,免去我们根据json字符串手写对应Java Bean的过程。 Android ButterKnife Zelezny 配合ButterKnife实现注解,从此不用写findViewById,想着就爽啊。在Activity,Fragment,Adapter中选中布局xml的资源id自动生成butterknife注解。 L...
2018-05-10 17:22:42 136
原创 一.管理工具git/svn的使用
1.安装git,并使用命令配置个人信息 * git config命令的–global参数,用了这个参数,表示你这台机器上所有的Git仓库都会使用这个配置,当然也可以对某个仓库指定不同的用户名和Email地址 下载:https://git-scm.com/downloads 使用:https://www.cnblogs.com/ghylzwsb/archive/
2018-05-09 13:38:17 304
原创 一.BottomTabBar 底部导航栏
一.导入依赖 compile 'com.hjm:BottomTabBar:1.1.1'二.在XML中定义一下该控件<com.hjm.bottomtabbar.BottomTabBar android:id="@+id/bottom_tab_bar" android:layout_width="match_parent" android:layout_height="ma
2018-05-09 10:18:06 262
原创 一.smartrefresh 刷新控件
一.导入依赖// smartrefresh 上拉下拉 compile 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.1'二.xml设置整体布局改为<com.scwang.smartrefresh.layout.SmartRefreshLayout xmlns:android="http://schemas.android.com/apk
2018-05-06 19:24:08 931
原创 一.缩放图片 + 跳转传图片
// 缩放图片 compile 'com.bm.photoview:library:1.4.1' 一.适配器 // 加载图片 String[] split_img = list.get(position).getImg().split("\\|"); Glide.with(context).load(split_img[0]).into...
2018-05-05 17:33:12 146
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人