自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 396

原创 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 464

原创 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 194 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 180 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 195

原创 mvp解绑

这是Activity中的@Overrideprotected void onDestroy() { super.onDestroy(); if (Presenter!=null){ Presenter.destory(); }}这是presenter的public void destory(){ if (在presenter中的...

2019-01-06 18:54:18 108

原创 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 1340

原创 AsyncTask

动画public class MainActivity extends AppCompatActivity {private int time;private TextView timeText;private Handler handler = new Handler() {@Overridepublic void handleMessage(Message msg) {super...

2018-12-09 19:14:02 80

空空如也

空空如也

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

TA关注的人

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