- 博客(6)
- 收藏
- 关注
原创 Retrofit简易封装工具类
public class RetroftManger { private final Retrofit retrofit; public static RetroftManger Buid(){ return new RetroftManger(); } public RetroftManger() { HttpLoggingInt...
2018-12-20 20:00:31
246
原创 简单实现使用fresco头像上传及相机裁剪+动态权限
先设置权限 <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.CAMERA"/> <uses-permission android:name="android.permissio...
2018-12-20 14:45:57
336
原创 EventBus+FragMent创建页面
在MainActivity中写入以下方法并调用 可以实现fragment的创建 注册和销毁 @Override protected void onDestroy() { super.onDestroy(); EventBus.getDefault().unregister(this); } @Override protected void onCreate(Bundle save...
2018-12-18 13:48:34
213
原创 方便初学者的购物车RecyclerView的布局(美观)
外包装 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_p
2018-11-22 15:09:25
393
原创 针对于RecyclerView嵌套RecyclerView的购物车功能实现(加减自定义视图,选中改变思想)
自定义加减视图 public class AddDelView extends LinearLayout { private OnNumChangedListener onNumChangedListener; private View rootView; private ImageView iv_add; private ImageView iv_del; ...
2018-11-22 14:47:00
671
原创 RecyclerView的实现(小白进阶路 “单条目,单视图”)
Impl (build.gradle文件) implementation 'com.android.support:recyclerview-v7:28.0.0' 布局基础(显示视图.xml) <android.support.v7.widget.RecyclerView android:layout_width="match_parent" an...
2018-11-13 15:15:47
192
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人