- 博客(6)
- 收藏
- 关注
原创 属性动画
移动 ObjectAnimator translationX = ObjectAnimator.ofFloat(imageView, "translationX", new float[]{10f,20f,30f,0f}); 旋转 ...
2018-11-17 11:28:54 115
原创 recyclerview的一些参数
recy.setLayoutManager(newLinearLayoutManager(this,LinearLayout.VERTICAL,false)); recy.setLayoutManager(newGridLayoutManager(this,2,GridLayoutManager.VERTICAL,false)); ...
2018-11-17 11:25:24 213
原创 第三方登录
第一步: 创建项目时,首先把包名改成com.umeng.soexample 第二步:进行导包,把umenglib包导入项目里 第三步:把导入的包绑定到App里 第四步:导入debug.keystore文件,切记一定要导在App目录下 第五步:app下build.gradle复制以下内容 buildTypes { release { // 是否进行混淆 minifyEnabled false // ...
2018-11-15 10:52:19 133
原创 okhttp的上传下载
上传 File file = new File(Environment.getExternalStorageDirectory()+"/Download", “a.jpg”); RequestBody body = RequestBody.create(MediaType.parse(“application/octet_stream”),file); MultipartBody multipar...
2018-11-14 08:28:04 104
原创 okhttp
依赖 implementation ‘com.squareup.okhttp3:okhttp:3.6.0’ 异步加载 OkHttpClient okHttpClient=new OkHttpClient(); Request.Builder builder = new Request.Builder(); Request.Builder url = builder.url(path); Reque...
2018-11-13 09:35:32 90
原创 自定义画板
package com.example.lianxi; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Matrix; import...
2018-11-04 18:52:58 129
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人