- 博客(27)
- 收藏
- 关注
原创 简单使用二维码
依赖 implementation project(':zxinglibrary') implementation 'fm.jiecao:jiecaovideoplayer:4.8.3' implementation 'com.jakewharton:butterknife:8.5.1' annotationProcessor 'com.jakewharton:butt...
2019-01-20 10:06:31 184
原创 相机相册简单调用
布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:la...
2019-01-19 20:04:10 107
原创 recyclerview的悬浮效果
依赖 implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:recyclerview-v7:28.0.0' testCompile 'junit:junit:4.12'main布局<?xml version="1.0" encoding=...
2019-01-13 20:08:35 187
原创 Fresco的使用
依赖 implementation 'com.facebook.fresco:fresco:1.11.0'在布局中写 &amp;amp;lt;com.facebook.drawee.view.SimpleDraweeView android:layout_width=&amp;quot;150dp&amp;quot; android:layout_height=&amp;quot;150dp&
2019-01-04 14:55:28 169
原创 MVP内存泄露
在presenter写 //防止内存泄露 public void onDeth(){ if (urlView!=null){ urlView=null; } if (urlModel!=null){ urlModel=null; } }在mainactivity调...
2019-01-03 20:07:26 153
原创 GreenDao的简单使用
在项目APP里加入一行代码 classpath 'org.greenrobot:greendao-gradle-plugin:3.2.0'在app最上面加入代码apply plugin: 'org.greenrobot.greendao'在app的Android{}里加入代码 greendao{schemaVersion 1 //指定数据库schema版本号,迁移等操作会用到...
2018-12-27 09:00:20 135
原创 JCVideoPlayerStandard视频播放器
依赖 implementation 'fm.jiecao:jiecaovideoplayer:4.8.3' implementation 'com.jakewharton:butterknife:8.5.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1' implementation 'c...
2018-12-24 20:43:12 1628
原创 没有布局 怎么解决呢?
直接进去就okhttps://blog.csdn.net/qq_35953420/article/details/84181669
2018-12-20 20:02:06 179
原创 Tablayout和Viewpager切换
依赖 implementation 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar' implementation 'com.jakewharton:butterknife:8.8.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'布...
2018-12-20 19:39:30 328
原创 高德
权限 &lt;!--用于进行网络定位--&gt; &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"&gt;&lt;/uses-permission&gt; &lt;!--用于访问GPS定位--&gt; &a
2018-12-20 18:59:02 130
原创 拦截器
依赖 implementation 'com.orhanobut:logger:2.2.0' implementation 'com.squareup.okhttp3:okhttp:3.12.0'日志import android.text.TextUtils;import com.orhanobut.logger.AndroidLogAdapter;import com.o...
2018-12-12 14:04:51 90
原创 购物车
首先导入依赖 implementation 'com.squareup.picasso:picasso:2.3.2' implementation 'com.google.code.gson:gson:2.2.4' implementation 'com.android.support:recyclerview-v7:27.1.1' implementation 'com...
2018-12-12 14:00:16 131
原创 登录
布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="h
2018-11-22 16:41:07 120
原创 fragment切换
布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="ht
2018-11-21 14:14:13 117
原创 动画翻转
布局<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="
2018-11-21 14:13:04 206
原创 分类
依赖 implementation 'com.android.support:recyclerview-v7:27.1.1' implementation 'com.squareup.okhttp3:okhttp:3.11.0' implementation 'com.google.code.gson:gson:2.2.4' implementation 'com....
2018-11-21 13:49:58 138
原创 绘制圆
在drawable绘制shape<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android:width="1dp" android:c
2018-11-19 07:56:34 199
原创 第三方登录加RecyclerView加动画
包名一定改成com.umeng.soexample首先在清单文件注册 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />...
2018-11-18 19:07:00 171
原创 BGABanner
首先添加依赖和权限<uses-permission android:name="android.permission.INTERNET"/> implementation 'cn.bingoogolapple:bga-banner:2.1.7' implementation 'com.squareup.picasso:picasso:2.3.2'布局 <...
2018-11-15 15:00:31 469
原创 MVP登录
布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="
2018-11-15 11:25:32 122
原创 RecyclerView和OKhttp
RecyclerView 删除条目 添加 更新 多条目的使用首先导入依赖加权限&lt;uses-permission android:name="android.permission.INTERNET"/&gt; implementation 'com.android.support:recyclerview-v7:27.1.1' implementation 'com.squ...
2018-11-14 16:39:03 467
原创 跑马灯加搜索框
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:ellipsize="marquee" android:focusable="true" android:focusableInTo...
2018-11-11 19:46:06 250
原创 MVP加登录注册
mvp分层这里是引用先写启动页面 LoadingActivity在这里插入代码片public class LoadingActivity extends AppCompatActivity{ private TextView tvTime; @Override protected void onCreate(@Nullable Bundle savedIns...
2018-11-11 19:24:54 131
原创 自定义控件View
先在布局中写代码&amp;lt;com.luyao.dell.yuan.YurnTableView android:layout_width=&quot;match_parent&quot; android:layout_height=&quot;match_parent&quot; /&amp;gt;然后在定义一个classpublic class YurnTableView
2018-11-03 09:04:12 129
原创 ToolBar2
在menu里面写<?xml version="1.0" encoding="utf-8"?>menu xmlns:toolBar=“http://schemas.android.com/apk/res-auto”xmlns:android=“http://schemas.android.com/apk/res/android”itemandroid:id="@+id/fris...
2018-11-02 20:15:26 150
原创 ToolBar
第一步在xml&lt;android.support.constraint.ConstraintLayout xmlns:android=“http://schemas.android.com/apk/res/android”xmlns:toolBar=“http://schemas.android.com/apk/res-auto”xmlns:tools=“http://schemas....
2018-11-02 20:08:55 68
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人