自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 sp存值取值

@Overridepublic void success(LoginBean loginBean) { Toast.makeText(this, "登录成功", Toast.LENGTH_LONG).show(); SharedPreferences sp = getSharedPreferences("config", MODE_PRIVATE); sp.edit()...

2018-11-23 08:14:20 934

原创 sp传值取值

@Overridepublic void success(LoginBean loginBean) { Toast.makeText(this, "登录成功", Toast.LENGTH_LONG).show(); SharedPreferences sp = getSharedPreferences("config", MODE_PRIVATE); sp.edit(...

2018-11-22 22:32:15 550

原创 上传头像

touxiangApipackage com.example.windows.ijingdong.api;import com.example.windows.ijingdong.bean.TouXiangBean;import io.reactivex.Observable;import okhttp3.MultipartBody;import retrofit2.http.M...

2018-11-22 22:30:36 162

原创 分类+retrofit+Rxjava

MainActivitypackage com.example.windows.ijingdong.fragment;import android.content.Intent;import android.os.Bundle;import android.support.annotation.Nullable;import android.support.v4.app.Fragm...

2018-11-22 22:22:15 163

原创 购物车+rxjava

apipublic interface ICartAPI { @GET("product/getCarts") Observable<CartBean> getCart(@Query("uid") int uid);}viewpackage com.example.windows.zhoukao3_lianxi.view;import com.ex...

2018-11-18 20:58:37 184

原创 retrofit+mvp

utilspublic class RetrofitManager { private static final String URL = "http://www.zhaoapi.cn/"; private final Retrofit mRetrofit; private static final class Instance{ private s...

2018-11-04 20:51:49 336

原创 属性动画

public class HomeActivity extends AppCompatActivity { private TextView txtCircle; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceStat...

2018-10-25 21:06:01 184

原创 购物车

ICallBackpublic interface ICallBack { void success(Object o); void failed(Exception e);}viewpublic interface IView { void success(MessageBean<List<shopper<List<produ...

2018-10-25 21:03:02 270

原创 OkHttpUitls以及replaceHttps

okhttppublic class HttpUtils { private static volatile HttpUtils instance; private final OkHttpClient client; private Handler handler = new Handler(); private HttpUtils(){ c...

2018-10-25 20:51:28 210

原创 分类

ICallBackpublic interface ICallBack { void success(Object obj); void failed(Exception e);}viewpublic interface IView { void failed(Exception e); void getZuo(List<ZuoBea...

2018-10-25 20:49:51 155

原创 流失布局

自定义viewpublic class flowLayout extends ViewGroup{ public flowLayout(Context context) { this(context,null); } public flowLayout(Context context, AttributeSet attrs) { t...

2018-10-25 20:39:49 142

原创 RecyclView

callBackpublic interface ICallBack { void success(Object obj); void failed(Exception e);}viewpublic interface IView { void failed(Exception e); void getZuo(List<ZuoBean...

2018-10-22 08:10:51 286

原创 圆角搜索框

<shape xmlns:android="http://schemas.android.com/apk/res/android"> <corners android:radius="20dp" /> <stroke android:width="1dp" android:color=...

2018-10-14 20:25:28 320

原创 MVP登录

 Applicationpublic class ErWeiMaApplication extends Application{ @Override public void onCreate() { super.onCreate(); ZXingLibrary.initDisplayOpinion(this); }} fi...

2018-10-14 20:21:26 167

原创 线性水波纹

 WaveViewpackage com.example.windows.waveview;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.DrawFilter;import android.g...

2018-10-07 19:58:18 188

原创 Cache

 public class BaseApplication extends Application{ @Override public void onCreate() { super.onCreate(); File file = null; if (Environment.getExternalStorageState().e...

2018-09-20 13:32:09 166

原创 tablayout 联动Xlistview

 <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <ImageView android:id="@+id/btn_pindao" android:layout_width="wrap_co...

2018-09-20 11:30:58 216

原创 网络请求 +解析+上下拉刷新

//bundle传值 @Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle bundle = getArguments(); urls = bundle.ge...

2018-09-20 11:29:02 191

原创 Http请求

 public class HttpUtils { public static String getStringFromHttp(String urlString){ String result = ""; try { URL url = new URL(urlString); HttpURLConne...

2018-09-20 11:27:16 176

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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