自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 圆角搜索框

一:shape布局<shape xmlns:android="http://schemas.android.com/apk/res/android">//背景颜色 <solid android:color="#d9d1d1"></solid>//圆角宽度 <corners android:radius="25dp"&

2018-10-25 19:12:08 1058

原创 解决内存泄漏

一:写p层的方法//解耦public void datach(){ if (shopView != null){ shopView = null; }}二:主页面的方法@Overridepublic void onDestroy() { super.onDestroy(); if (shopPresenter != null){...

2018-10-25 18:56:44 168

原创 画球属性动画平移跳转页面

一:首先自定义类:public class ClerView extends View { private Paint paint; public ClerView(Context context) { super(context); init(); } public ClerView(Context context, @...

2018-10-25 15:01:11 100

原创 自定义流式布局

一:写布局2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:tools="http://schemas.an...

2018-10-25 14:22:47 83

原创 截取字符串

一:创建类:public class StringUtils { public static String httputil(String url){ return url.replace("https","http"); }}接着把文档中也改成后者即可

2018-10-23 16:04:29 86

原创 MVP轮播

一:首先导入相应的依赖和权限implementation 'com.squareup.okhttp3:okhttp:3.6.0'implementation 'com.squareup.okio:okio:1.11.0'implementation 'com.github.bumptech.glide:glide:3.7.0'implementation 'com.google.co...

2018-10-21 20:45:47 105

原创 使用2

一:adapterpublic class BannerAdapter extends PagerAdapter{    private Context context;    private List<BannerBean.DataBean> data;    public BannerAdapter(Context context, List<BannerBe...

2018-10-15 07:45:09 286

原创 登录的简单使用

一:主页面布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="vertical"...

2018-10-15 07:33:44 123

原创 自定义View图片浮动

一:首先自定义View:创建类public class WaveView extends View { private static final String TAG = "WaveView"; private float fai = 0; private Paint paint1; private Paint paint2; private Path...

2018-10-07 19:42:56 652

空空如也

空空如也

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

TA关注的人

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