自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 105

原创 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

原创 activity的启动模式

2019-01-06 21:00:50 93

原创 Fresco的使用

依赖 implementation 'com.facebook.fresco:fresco:1.11.0'在布局中写 <com.facebook.drawee.view.SimpleDraweeView android:layout_width="150dp" android:layout_height="150dp&

2019-01-04 14:55:28 168

原创 MVP内存泄露

在presenter写 //防止内存泄露 public void onDeth(){ if (urlView!=null){ urlView=null; } if (urlModel!=null){ urlModel=null; } }在mainactivity调...

2019-01-03 20:07:26 152

原创 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 134

原创 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 1620

原创 没有布局 怎么解决呢?

直接进去就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 322

原创 高德

权限 <!--用于进行网络定位--> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission> <!--用于访问GPS定位--> &a

2018-12-20 18:59:02 129

原创 拦截器

依赖 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 89

原创 购物车

首先导入依赖 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 130

原创 登录

布局<?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 117

原创 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 205

原创 分类

依赖 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 136

原创 绘制圆

在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 198

原创 第三方登录加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 170

原创 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 465

原创 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=&quot

2018-11-15 11:25:32 118

原创 RecyclerView和OKhttp

RecyclerView 删除条目 添加 更新 多条目的使用首先导入依赖加权限<uses-permission android:name="android.permission.INTERNET"/> 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 246

原创 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

先在布局中写代码<com.luyao.dell.yuan.YurnTableView android:layout_width="match_parent" android:layout_height="match_parent" />然后在定义一个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 146

原创 ToolBar

第一步在xml<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关注的人

提示
确定要删除当前文章?
取消 删除