自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 简单的沉浸式实现方式

修改一下继承styles布局页面加上 android:fitsSystemWindows="true" android:clipToPadding="true"页面增加一个判断,因为4.4版本之前没有沉浸式可言if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { //透明状态栏 ...

2018-12-28 13:34:46 449

原创 自定义拦截器

自定义拦截器package com.example.netlibrary.okhttp;import android.graphics.Interpolator;import java.io.IOException;import okhttp3.HttpUrl;import okhttp3.Interceptor;import okhttp3.Request;import o...

2018-12-21 13:33:12 125

原创 购物车简单MVP构建及okhttp

**使用接口:**http://120.27.23.105/product/getCarts?uid=100导入依赖://okHttp依赖 implementation 'com.squareup.okhttp3:okhttp:3.11.0' implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0' ...

2018-12-18 11:20:17 154

原创 第三方登录登录及分享相关依赖及数据展示简单MVP构建

源代码:https://github.com/ShaoPengLai1/MyApplicationFive/tree/master/text_1205依赖dependencies { implementation 'com.umeng.sdk:common:latest.integration' implementation 'com.umeng.sdk:analytics...

2018-12-07 17:01:30 172

转载 瀑布流搜索存数据库+历史记录

使用依赖: dependencies { implementation 'com.android.support:recyclerview-v7:28.0.0' }MainActivitypackage com.example.searchetdemo_master;import android.support.v7.app.AppCompatActivity;import ...

2018-11-30 16:05:48 633 1

转载 随机数

效果图:CatfaceTextViewpackage com.example.text_1129.view;import android.annotation.SuppressLint;import android.content.Context;import android.content.res.TypedArray;import android.graphics.Canva...

2018-11-29 21:00:37 109

转载 点击随机数变换

效果图为CustomRandomTextView继承至TextViewpackage com.example.customrandom.view;import android.annotation.SuppressLint;import android.content.Context;import android.graphics.Color;import android.suppo...

2018-11-29 20:55:47 210

原创 简单饼图

效果图:CustomPiechartView继承Viewpackage com.example.piechart.view;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import ...

2018-11-29 20:53:32 154

转载 轮盘抽奖制作

布局<?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/andro

2018-11-29 16:38:59 634

原创 简单的GridView

ChannelActivitypackage com.example.demo_1121;import android.content.Intent;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import android.view.View;import android.widg...

2018-11-22 20:26:23 144

原创 侧拉,频道管理

第三方maven {url "https://jitpack.io"}使用依赖implementation 'com.android.support:design:28.0.0'implementation 'com.github.andyoom:draggrid:v1.1.4'implementation 'com.google.code.gson:gson:2.8.5'imple...

2018-11-22 17:59:25 161 1

原创 banner轮播、

导入依赖 dependencies{ implementation ‘com.youth.banner:banner:1.4.10’}main_activity<?xml version="1.0" encoding="utf-8"?><android.support.constraint.Con

2018-11-22 11:34:55 192

原创 频道

导入依赖:implementation ‘com.android.support:recyclerview-v7:28.0.0’main_activity<?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android="http://schem...

2018-11-20 20:30:29 127

空空如也

空空如也

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

TA关注的人

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