- 博客(8)
- 收藏
- 关注
原创 RecyclerView + mvp实现在Activity中
首先,导入依赖 implementation 'com.android.support:recyclerview-v7:28.0.0' 在布局中定义RecyclerView 需要几个定义几个 (我就定义了两个) <LinearLayout android:layout_width="match_parent" android:layout_heig...
2019-01-06 20:09:58
395
原创 OkHttp单例模式+拦截器
导入依赖 implementation 'com.hjm:BottomTabBar:1.1.1' implementation 'com.recker.flybanner:flybanner:1.3' implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.2' implementation 'c...
2019-01-06 19:48:24
460
原创 BottomTabBar+Fragment实现底部导航页
导入依赖 compile 'com.hjm:BottomTabBar:1.1.1' 在XML中定义控件 <com.hjm.bottomtabbar.BottomTabBar android:id="@+id/frag" android:layout_width="match_parent" android:layout_height=...
2019-01-06 19:33:55
193
1
原创 自定义view 标题栏
首先 创建 attr.xml 设置自己需要的 属性 和 类型 <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="TopBar"> <attr name="leftButttonBackgrount" fo
2019-01-06 19:28:27
178
2
原创 属性动画 + handle 延时跳转
首先,属性动画是不用依赖的 定义xml文件中的图片 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" ...
2019-01-06 19:19:31
193
原创 mvp解绑
这是Activity中的 @Override protected void onDestroy() { super.onDestroy(); if (Presenter!=null){ Presenter.destory(); } } 这是presenter的 public void destory(){ if (在presenter中的...
2019-01-06 18:54:18
105
原创 okhttp+登录注册
依赖 implementation 'com.squareup.okhttp3:okhttp:3.7.0' implementation 'com.squareup.okio:okio:1.12.0' implementation 'com.recker.flybanner:flybanner:1.3' implementation 'com.nostra13.uni...
2019-01-02 08:13:00
1338
原创 AsyncTask
动画 public class MainActivity extends AppCompatActivity { private int time; private TextView timeText; private Handler handler = new Handler() { @Override public void handleMessage(Message msg) { super...
2018-12-09 19:14:02
77
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人