自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 上传头像

xml文件:<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layou...

2018-08-24 12:52:36 200

原创 防京东的详情

xml<?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="m

2018-08-24 11:09:57 193

原创 防京东的分类联动

xml文件  //Main层<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" a...

2018-08-12 19:40:35 240

原创 数据库

1.在工程project的build.gradle    repositories://添加一个仓库                        mavenCentral()   dependencies里边    classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'2.在当前module的build.gradle文件里添...

2018-08-05 10:44:28 239

原创 购物车

xml: <?xml version="1.0" encoding="utf-8"?><LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" xm

2018-07-29 13:04:57 222

原创 商品

 xml:activity_main:<?xml version="1.0" encoding="utf-8"?><LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical&

2018-07-28 11:39:15 213

原创 轮播

activity:package com.example.caidanliandong;import android.annotation.SuppressLint;import android.os.Handler;import android.os.Message;import android.support.v4.view.ViewPager;import android....

2018-07-23 07:53:43 195

原创 跳转

xml:<?xml version="1.0" encoding="utf-8"?><LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" xmlns

2018-07-23 07:51:33 225

原创 okhttp封装

package com.example.mvp_okhttp_recy.utils;import java.io.IOException;import java.util.Map;import okhttp3.Call;import okhttp3.Callback;import okhttp3.FormBody;import okhttp3.MediaType;import o...

2018-07-18 20:10:40 938

原创 自定义view搜索

package com.baidu.weektesttwo06.view;import android.content.Context;import android.support.annotation.Nullable;import android.util.AttributeSet;import android.view.View;import android.widget.ImageView...

2018-07-15 21:14:09 203

原创 mvp模式实现列表

MainActivity:  package com.example.monizk2;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.support.v7.widget.LinearLayoutManager;import android.support.v7....

2018-07-15 21:07:20 612

原创 使用mvp接口回调实现最简单的登陆

LoginViewpackage com.example.huidiao;/** * Created by 小薇 on 2018/7/11. */public interface LogView { //progress 显示 void showProgress(); //progress 隐藏 void hideProgress(); //n...

2018-07-12 09:50:44 712

原创 二维码

package com.example.myerweima;import android.content.ContentResolver;import android.content.Intent;import android.graphics.Bitmap;import android.net.Uri;import android.provider.MediaStore;impor...

2018-07-10 20:04:21 186

原创 自定义view实现刮刮乐的效果

package com.example.fw.view;import android.content.Context;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.graphics.Canvas;import android.graphics.Color;impo...

2018-07-09 14:20:53 494

转载 自定义view的基本用法

一、基本用法1、概述我们先来看一下paint中基本设置的函数都有哪些:reset()重置画笔setColor(int color)给画笔设置颜色值setARGB(int a, int r, int g, int b)同样是设置颜色,但是利用ARGB分开设置setAlpha(int a)设置画笔透明度setStyle(Paint.Style style)设置画笔样式,取值有    Paint.Sty...

2018-07-09 09:54:58 383

原创 倒计时

package com.example.monizk.view;import android.annotation.SuppressLint;import android.content.Context;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.graphics...

2018-07-08 20:12:56 288

转载 Activity的生命周期

所谓的典型的生命周期就是在有用户参与的情况下,Activity经历从创建,运行,停止,销毁等正常的生命周期过程。我们这里先来介绍一下几个主要方法的调用时机,然后再通过代码层面来验证其调用流程。 onCreate : 该方法是在Activity被创建时回调,它是生命周期第一个调用的方法,我们在创建Activity时一般都需要重写该方法,然后在该方法中做一些初始化的操作,如通过setContentVi...

2018-07-06 09:54:02 227

空空如也

空空如也

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

TA关注的人

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