- 博客(44)
- 收藏
- 关注
转载 日期
public void onYearMonthDayPicker(View view) { final DatePicker picker = new DatePicker(this); picker.setCanceledOnTouchOutside(true); picker.setUseWeight(true); picker....
2018-09-25 08:05:45 220
原创 首页
// todo 轮播 private void pictureRotation(final PageHomePicBean pageHomePicBean) { List<PageHomePicBean.DataBean> data = pageHomePicBean.getData(); List<String> ima...
2018-09-24 21:24:08 253
转载 fu xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="60dp" android:gravity="center_vertical" android:...
2018-08-24 11:37:26 263
转载 zi xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="120dp" android:gravity="center_vertical" android...
2018-08-24 11:36:48 229
转载 +- xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="80dp" android:layout_height="30dp" android:layout_gravity="center_vertical" android:b...
2018-08-24 11:36:24 171
转载 search xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:...
2018-08-24 11:36:03 367
转载 main xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layo...
2018-08-24 11:35:19 343
转载 ok
public class OKhttpUtils { private static final String TAG = "OKhttpUtils--"; private static OKhttpUtils oKhttpUtils; private final OkHttpClient okHttpClient; private final Handler my...
2018-08-24 11:34:47 264
转载 model
public class ModelImpl implements IContract.IModel { public static final String URL = "http://www.zhaoapi.cn/product/getCarts?uid=71"; @Override public void requestData(final onCallBack...
2018-08-24 11:34:25 236
转载 activity
public class MainActivity extends AppCompatActivity implements View.OnClickListener,IContract.IView { private ExpandableListView elcShowMain; private CheckBox cbAllCheckMain; private Tex...
2018-08-24 11:33:56 233
转载 +-
public class MyAddSubView extends LinearLayout implements View.OnClickListener { private int number = 1; private TextView tv_sub_view; private TextView tv_number_view; private TextVie...
2018-08-24 11:33:10 172
转载 adapter
public class MyAdapter extends BaseExpandableListAdapter { List<CartInfo.DataBean> sellerData; public MyAdapter(List<CartInfo.DataBean> sellerData) { this.sellerData = s...
2018-08-24 11:32:44 160
原创 ViewPager滑动换色
一.ate void initView() { vp = (ViewPager) findViewById(R.id.vp); radio = (RadioGroup) findViewById(R.id.radio); radiobrn1 = (RadioButton) findViewById(R.id.radiobtn1);
2017-12-21 10:51:42 308
原创 删除购物车数据
case R.id.sc: boolean f = false; for (int i = 0; i child.size(); i++) { for (int j = 0; j child.get(i).size(); j++) { boolean flag = child.get(i).get(j).ischeck();
2017-12-16 12:01:29 696
原创 Rxbinding防抖动
RxView.clicks(btn) .throttleFirst(3, TimeUnit.SECONDS) .subscribe(new Action1() { @Override public void call(Void aVoid) { Log.i(TAG, "call: ");
2017-12-06 15:04:30 744
原创 使用Rxjava实现Eventbus
public class RxBus { private static volatile RxBus instance; //实现序列化 private SerializedSubject bus; private RxBus() { bus = new SerializedSubjectcreate()); } public s
2017-12-06 14:31:27 329
原创 XrecyclerView简单使用
//设置上拉下拉样式xrv.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);xrv.setLoadingMoreProgressStyle(ProgressStyle.BallClipRotate);xrv.setLoadingListener(new XRecyclerView.LoadingListener() {
2017-12-06 10:16:56 336
原创 android一级列表购物车
public class MyAdapter extends RecyclerView.Adapter{ private List list; private Context context; //创建自己的构造方法 public MyAdapter(List list, Context context) { this.list = list;
2017-11-22 15:06:21 551
原创 android属性动画
//透明度ObjectAnimator alpha = ObjectAnimator.ofFloat( img, "alpha", 0, 1);alpha.setDuration(3000);alpha.start();//旋转ObjectAnimator rotation = ObjectAnimator.ofFloat( img, "
2017-11-22 11:00:28 243
原创 购物车布局
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_w
2017-11-21 10:42:46 242
原创 android二级列表购物车
一.导入EventBus的依赖compile 'org.greenrobot:eventbus:3.1.1'eventBus必须注册 EventBus.getDefault().register(this);必销毁 //销毁方法 @Override protected void onDestroy() { super.onDestroy();
2017-11-21 10:36:03 1057 1
翻译 bannerde简单使用
一.添加依赖compile 'com.youth.banner:banner:1.4.10' //banner依赖compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' //imageLoader依赖二.初始化ImageLoaderpublic class BaseApplici
2017-11-17 14:00:55 277
原创 封装OkHttp
一.创建接口public interface CallBack { void Onsuccess(String tag, Object o); void Onfailed(String tag, Exception e);}二.创建gson工具包public class GsonUtils { private static Gson instance;
2017-11-10 12:33:54 270
原创 点击按钮自定义圆形变化
一.public class MyProgressView extends View { private int progress = 0; private ProgresssUpdateListener listener; interface ProgresssUpdateListener { void onProgressUpdated(int p
2017-11-05 20:19:23 558
原创 自定义view--阶梯式
一.创建一个类public class MyGroupView extends ViewGroup { public MyGroupView(Context context) { this(context, null); } public MyGroupView(Context context, AttributeSet attrs) {
2017-11-05 18:56:17 327
原创 组合View的点击事件
一,自定义class类public class AddJianView extends LinearLayout { private OnAddJianListenner listenner; private EditText num; //自定义一个接口 interface OnAddJianListenner { void onAddCl
2017-11-05 18:45:19 255
原创 angularJS订单管理
订单管理 * { font-size: 14px; margin: 0; padding: 0; } body { padding: 16px 32px; } .filter {
2017-10-25 19:36:19 340
原创 angularJs购物车
a{ text-decoration: none; } table{ border-collapse: collapse; } th,td{ padding: 10px; border: 1px solid #000000;
2017-10-24 18:42:53 286
原创 下拉菜单查询
用户管理 var example_data = [ { id: 1, name: "曹操", password: "123456", age: 45, sex: "男"
2017-10-22 20:11:09 267
原创 用户信息表
模拟考 table{ border-collapse: collapse; } th,td{ padding: 10px; border: 1px solid #000000; } var app=angul
2017-10-22 19:46:01 1929
原创 书店
书店 var BookShop=angular.module("BookShop",["ionic"]); //路由 BookShop.config(function($stateProvider,$urlRouterProvider){ // $sta
2017-10-20 19:42:02 371
原创 ionic简单路由
html>html ng-app="BookShop">head lang="en"> meta charset="UTF-8"> meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> title>书店tit
2017-10-20 08:14:22 227
原创 记账本
记账本 * { margin: 0; padding: 0; } li { list-style: none; } input { width: 320px; height:
2017-10-18 14:22:24 828
原创 angularJs中的service服务
var app=angular.module("myApp",[]); app.service("calcuator",function(){ this.add=function(num1,num2){ return num1+num2; }; this.subtract=fun
2017-10-17 14:03:28 492
原创 angularJs中的provider服务
var app=angular.module("myApp",[]); app.provider("calulator",function(){ this.$get=function(){ return{ add:function(num1,num2){
2017-10-17 14:01:25 627
原创 angularJs中的工厂服务
var app=angular.module("myApp",[]); app.factory("calculator",function(){ return{ add:function(num1,num2){ return num1+num2; },
2017-10-16 19:40:23 445
原创 css动画
html>html>head lang="en"> meta charset="UTF-8"> title>title> style> body{ background-image: url("bg.jpg"); } .d1{ margin-top: 100px;
2017-10-09 07:56:11 224
原创 自动登陆记住密码
package com.example.day09_sharedpreferences;import android.app.Activity;import android.content.Intent;import android.content.SharedPreferences;import android.content.SharedPreferences.Editor
2017-09-20 16:06:16 311
原创 HorizontalScrollView横向加载数据
1.activitypackage com.bwei.www.zhoukao3;import android.graphics.Color;import android.os.Bundle;import android.support.v4.app.Fragment;import android.support.v4.app.FragmentManager;import and
2017-09-19 19:30:20 586
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人