- 博客(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 214
原创 防京东的详情
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 225
原创 防京东的分类联动
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 252
原创 数据库
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 254
原创 购物车
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 241
原创 商品
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 231
原创 轮播
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 211
原创 跳转
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 267
原创 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 952
原创 自定义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 216
原创 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 625
原创 使用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 726
原创 二维码
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 202
原创 自定义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 509
转载 自定义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 398
原创 倒计时
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 302
转载 Activity的生命周期
所谓的典型的生命周期就是在有用户参与的情况下,Activity经历从创建,运行,停止,销毁等正常的生命周期过程。我们这里先来介绍一下几个主要方法的调用时机,然后再通过代码层面来验证其调用流程。 onCreate : 该方法是在Activity被创建时回调,它是生命周期第一个调用的方法,我们在创建Activity时一般都需要重写该方法,然后在该方法中做一些初始化的操作,如通过setContentVi...
2018-07-06 09:54:02 236
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人