- 博客(5)
- 收藏
- 关注
原创 retrofit图文上传
1.接口 /*图文上传*/ @Multipart @POST("user/updateUserImg") Observable>upDateHeadImg(@Part("userId")RequestBody body, @Part MultipartBody.Part file);2.访问 private void upDate() { final
2017-09-09 09:45:16 250 1
原创 简单封装retrofit2+rxjava2
1,添加依赖compile 'com.squareup.retrofit2:retrofit:2.1.0'compile 'com.squareup.okhttp3:okhttp:3.3.1'compile 'com.squareup.retrofit2:converter-gson:2.1.0'//适配器compile 'com.squareup.okhttp3:logging-
2017-08-15 09:47:30 353
转载 倒计时view
1.自定义viewpackage cc.feeing.www.loldianjing.selfview;import android.content.Context;import android.content.res.TypedArray;import android.graphics.Canvas;import android.graphics.Color;import and
2017-08-03 09:37:45 337
原创 退出多个activity
private static Stack activityStack;文_ 2017/7/29 14:45:18 /** * 添加Activity到堆栈 */ public void addActivity(Activity activity) { if (activityStack == null) { activityStack =
2017-08-02 09:00:19 216
原创 okhttp3传文件
private void sendMultipart(String s){ mOkHttpClient = new OkHttpClient(); File file = new File(s); MediaType MEDIATYPE = MediaType.parse(judgeType(s)); MultipartBody.Builder builder =
2017-07-31 14:38:34 555
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人