- 博客(54)
- 收藏
- 关注
原创 XBanner画廊
final HomeBannerBean bannerBean = (HomeBannerBean) data; banner.setData(bannerBean.getResult(), null); banner.loadImage(new XBanner.XBannerAdapter() { @Override ...
2019-01-20 12:01:19 392 1
原创 打开相册相机截取图片
//点击上传图片*/ private void initPullImage() { View view = View.inflate(this,R.layout.pull_image_recycleriew,null); camera = view.findViewById(R.id.camera); pick = view.findVi...
2019-01-19 19:30:47 199
原创 IjkVideoView播放视频
`视频播放 //播放视频 //加载native底层库 video = view.findViewById(R.id.video); IjkMediaPlayer.loadLibrariesOnce(null); IjkMediaPlayer.native_profileBegin("libijkplayer.so"); A...
2019-01-19 19:04:42 1018
原创 Retrofit+RxJava网络请求
BaseApispackage com.zjh.administrat.torchbearer_power.bag.utilsbag;import java.util.Map;import okhttp3.RequestBody;import okhttp3.ResponseBody;import retrofit2.http.GET;import retrofit2.http.H...
2019-01-02 08:14:00 187
原创 Banner截取图片轮播/XBanner
//获取数据 @Override public void viewDatas(Object data) { HomeBean homeBean = (HomeBean) data; mAdapter.setDatas(homeBean.getData().getTuijian().getList()); //轮播图 ...
2018-12-28 14:08:11 190
原创 GreenDao
MainActivitypackage com.zjh.administrat.greendaodemo;import android.database.sqlite.SQLiteDatabase;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.view.Vi...
2018-12-27 11:20:19 107
原创 购物车(二级列表ExPandableListView)
MainActivitypackage com.zjh.administrat.shoppcarexpandablelistview.view;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.view.View;import android.widget.Bu...
2018-12-20 17:02:07 208
原创 购物车模拟分类表(左recycleView,右2recycleView嵌套)
MainActivitypackage com.zjh.administrat.classify_recycleview.view;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.support.v7.widget.DividerItemDecoration;...
2018-12-19 18:58:50 256
原创 购物车简单实现(二级列表ExpandableListView)
MVP请求数据自行解决MainActivitypackage com.zjh.administrat.shopping_cartdemo.view;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.view.View;import android.widget...
2018-12-18 16:01:49 416
原创 极光推送消息
MyReceiver跳转package com.zjh.administrat.recycleweek3_1215.Jpush;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;import com.zjh.administrat....
2018-12-16 20:45:31 111
原创 截取分割图片
//截取图片集 String str = ""; int length = mData.get(i).getImages().length(); for (int j = 0; j < length; j++) { if (mData.get(i).getImages().substring(j, j + 1).equ...
2018-12-15 10:08:41 155
原创 主流mwp框架+OKHttp网络请求xRecycleView展示
MainActivitypackage com.zjh.administrat.recyclerviewdemo3.view;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.support.v7.widget.LinearLayoutManager;impor...
2018-12-13 14:09:02 383
原创 动画模拟一个手机充电
MainActivitypackage com.zjh.administrat.zhaojunhui1213;import android.animation.Animator;import android.animation.ArgbEvaluator;import android.animation.ValueAnimator;import android.graphics.Col...
2018-12-13 13:52:07 367 1
原创 OkHttp网络请求数据
OkHttpUtilspackage com.bawei.mymvp.okHttp;import android.os.Handler;import android.os.Looper;import com.bawei.mymvp.Constants;import com.google.gson.Gson;import java.io.File;import java.io.I...
2018-12-12 16:50:27 175
原创 常用依赖
json依赖 implementation 'com.google.code.gson:gson:2.2.4'-------------------------------------------------------------------把网络请求数据转成String类型charStreams implementation 'com.google.guava:gua...
2018-12-11 21:08:27 173
原创 属性动画
AnimationActivitypackage com.bawei.mymvp.animation;import android.animation.Animator;import android.animation.AnimatorInflater;import android.animation.AnimatorListenerAdapter;import android.ani...
2018-12-11 21:00:30 113
原创 RecycledView三种Linear,Grid,Staggered
GridActivity(其他类似)package com.zjh.administrat.recycleviewdemo.grid;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.support.v7.widget.DefaultItemAnimator;i...
2018-12-11 20:36:00 317
原创 简单文字跑马灯/Dialog
自定义一个View继承TextViewpublic class MarqueeTextView extends TextView{ public MarqueeTextView(Context context) { super(context); } public MarqueeTextView(Context context, @Nullable A...
2018-12-07 20:18:59 244
原创 登录输入框限制长度改变按钮颜色
MainActivity//登录验证 private void init() { EditText pass_phone = findViewById(R.id.pass); //手机号 final Button commit = findViewById(R.id.commit); pass_phone.addTextChangedL...
2018-12-07 20:09:26 389
原创 umeng第三方QQ登录实现
MainActivitypackage com.umeng.soexample;import android.Manifest;import android.content.Intent;import android.os.Build;import android.support.v4.app.ActivityCompat;import android.support.v7.app....
2018-12-07 20:03:51 198
原创 MVP登录,展示数据,个人名片
## MainActivityMainActivitypackage com.example.zhaojunhui1205.view;import android.content.Intent;import android.content.SharedPreferences;import android.support.v7.app.AppCompatActivity;import ...
2018-12-06 19:21:35 217
原创 MVP模拟登陆操作(简版MVP)
MainActivitypackage com.bawei.mymvp.mvp2.view;import android.app.Activity;import android.os.Bundle;import android.support.annotation.Nullable;import android.view.View;import android.widget.Edit...
2018-12-04 19:40:25 174
原创 QRcode生成二维码,扫一扫
MainActivitypackage com.example.qrcode_demo06;import android.Manifest;import android.content.Context;import android.content.Intent;import android.content.pm.PackageManager;import android.graph...
2018-12-03 21:06:27 1310 3
原创 FallsList标题仿内容
MainActivitypackage com.example.fallslist_demo;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.widget.TextView;public class MainActivity extends AppCompa...
2018-12-02 21:08:32 146
原创 模拟瀑布流+SQLite数据库,长按删除,清空。
MainActivitypackage com.example.fallsview_listview;import android.content.Intent;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.view.View;import android...
2018-11-30 20:42:19 192
原创 模拟大转盘自定义View
MainActivitypackage com.example.circle_draw_demo03;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.view.View;import android.view.animation.RotateAnimation...
2018-11-29 21:05:59 2269
原创 侧滑+多条目+刷新加载+fragment嵌套+Banner
MainActivitypackage com.bwie.mouthxx1;import android.support.design.widget.TabLayout;import android.support.v4.view.ViewPager;import android.support.v4.widget.DrawerLayout;import android.support...
2018-11-22 21:29:21 256
原创 倒计时
MainActivitypackage com.example.administrat.zhaojunhui1119;import android.annotation.SuppressLint;import android.content.Intent;import android.os.Handler;import android.os.Message;import and...
2018-11-22 21:15:16 84
原创 频道管理联动TabLayout
AFragment首页的页面package com.example.a24476.touchchannelmanagement;import android.content.Intent;import android.os.Bundle;import android.support.annotation.NonNull;import android.support.annotation...
2018-11-22 14:39:23 159
原创 Tab_Banner_PullToRefresh请求+数据库
MainActivitypackage com.bwie.zhaojunhui20181119;import android.support.design.widget.TabLayout;import android.support.v4.view.ViewPager;import android.support.v7.app.AppCompatActivity;import and...
2018-11-20 20:03:16 145
原创 RecyclerView互换位置
MainActivitypackage com.example.recycleview;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.support.v7.widget.GridLayoutManager;import android.support.v7....
2018-11-20 19:54:41 2055
原创 Fragment内Banner轮播图+News新闻列表
Fragmentpackage com.example.pulltorefresh;import android.os.Bundle;import android.support.annotation.NonNull;import android.support.annotation.Nullable;import android.support.v4.app.Fragment;im...
2018-11-18 19:16:02 961
原创 TabLayout与Fragment嵌套+侧滑
MainActivitypackage com.example.pulltorefresh;import android.support.design.widget.TabLayout;import android.support.v4.view.ViewPager;import android.support.v4.widget.DrawerLayout;import android...
2018-11-16 18:58:19 266
原创 轮播图
MainActivitypackage com.example.a24476.week3day3;import android.annotation.SuppressLint;import android.os.Handler;import android.os.Message;import android.support.v4.view.ViewPager;import andro...
2018-11-15 14:36:33 124
原创 图片二次采样
MainActivitypackage com.example.image;import android.content.Intent;import android.database.Cursor;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.net.Uri;i...
2018-11-14 20:59:20 143
原创 XListView奇偶行判断/单接口
MainActivitypackage com.bwie.myweek2;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import com.example.xlistview.me.maxwin.view.XListView;public class MainActivity ex...
2018-11-13 16:07:23 180
原创 TabLayout使用
AFragmentpackage com.bwie.zhaojunhui20181113;import android.os.Bundle;import android.support.annotation.NonNull;import android.support.annotation.Nullable;import android.support.design.widget.Ta...
2018-11-13 14:01:10 111
原创 轮播图+XListView多条目展示
MainActivitypackage com.example.demo.ui.activity;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import com.example.demo.R;import com.example.demo.model.BannerResponse;...
2018-11-09 14:57:49 174
原创 XListView加载-刷新
MainActivitypackage com.example.xlistviewweek2;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import com.example.xlistview.me.maxwin.view.XListView;public class MainA...
2018-11-09 14:13:44 133
原创 轮播图+ListView多条目展示(轮播图暂无)
MainActivity_UIpackage com.example.demo.ui.activity;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import com.example.demo.R;import com.example.demo.model.BannerRespon...
2018-11-08 19:14:43 264
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人