- 博客(44)
- 收藏
- 关注
原创 R包报错需要配置
放到grade中configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def requested = details.requested if (requested.group == 'com.android.suppo...
2018-11-08 19:21:54 222
原创 Viewpage实现3D画廊+高斯模糊
@Overridepublic void data(HotNews hotNews) { if (flag == false) { List<HotNews.ResultBean> result = hotNews.getResult(); hotviewPage.setVisibility(View.VISIBLE); ho...
2018-11-02 15:04:06 340
原创 login主页面+接口+依赖
package com.example.jd1012.mvp.ui.activity;import android.Manifest;import android.content.Context;import android.content.Intent;import android.content.SharedPreferences;import android.os.Build;...
2018-10-25 19:33:24 3697
原创 完整购物车
ShopActivitypackage com.example.jd1012.mvp.ui.fragment;import android.content.Context;import android.content.Intent;import android.content.SharedPreferences;import android.os.Bundle;import andr...
2018-10-25 19:32:27 288
原创 加入购物车
首先,登陆页面的data方法,接收用户名,密码。把用户的uid,token,存放进SharedPreferences里 @Override public void data(Login login) { String code = login.getCode(); String msg = login.getMsg(); if (cod...
2018-10-25 19:27:30 182
原创 上传头像
点击进入个人中心点击头像弹框 选择相机或本地上传头像点击日期能切换public class ShezhiActivity extends AppCompatActivity { @BindView(R.id.simp_tou) SimpleDraweeView simpTou; @BindView(R.id.text_data) TextView textD...
2018-10-22 15:48:30 227
原创 登录注册
点击登录/注册 跳进登陆页面@OnClick(R.id.text_login)public void onViewClicked(View view) { switch (view.getId()) { case R.id.text_login: Intent intent = new Intent(getActivity(), loginAct...
2018-10-20 18:18:53 207
原创 仿京东分类
右侧接口传入一个id用来绑定左侧 //分类左侧 @GET("product/getCatagory") Observable<Zuo> getZuob(); //右侧子分类 @GET("product/getProductCatagory") O
2018-10-20 18:12:49 195
原创 跳转详情页面
详情页面。直接获取接口下的id。//推荐@Overridepublic void shoutui(News3 news3) {List<News3.DataBean.TuijianBean.ListBeanX> list = news3.getData().getTuijian().getList();//Toast.makeText(getActivity(), “lis...
2018-10-20 18:07:46 1941
原创 fang京东快报
首先自定义一个类package com.example.jddemo;import android.content.Context;import android.graphics.Color;import android.text.TextUtils;import android.util.AttributeSet;import android.util.TypedValue;i...
2018-10-19 19:25:13 166
原创 UMeng
首先进入友盟开发平台,开发应用 获取key值登录成功之后获取用户名和头像 Toast.makeText(loginActivityActivity.this, "成功了", Toast.LENGTH_LONG).show(); name = data.get("name"); iconurl = data.get("iconurl"); ...
2018-10-19 19:00:58 146
原创 单次点击
@OnClick(R.id.text_login)public void onViewClicked(View view) {switch (view.getId()) {case R.id.text_login:Intent intent = new Intent(getActivity(), loginActivityActivity.class);startActivityForR...
2018-10-19 08:31:54 203
原创 动态搜索
Observable zhanshi(@Query(“keywords”)String keywords);在传一个key值public interface MyService {@GET(“product/searchProducts?”)Observable zhanshi(@Query(“keywords”)String keywords);@GET(“product/getPro...
2018-10-15 15:55:39 259
原创 greendao
https://github.com/greenrobot/greenDAO最新依赖最参照以上博客依赖库// In your root build.gradle file:buildscript {repositories {jcenter()mavenCentral() // add repository}dependencies {classpath ‘com.androi...
2018-10-14 19:38:19 94
原创 点击切换Fragment
ArrayList<Fragment> list = new ArrayList<>(); Frag1Fragment frag1 = new Frag1Fragment(); Frag2Fragment frag2 = new Frag2Fragment(); list.add(frag1); list.ad...
2018-10-14 10:55:59 361
原创 Arms之MVP
===MainContract=public interface MainContract { //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息 interface View extends IView { **void showData(News news);** } //Model层定义接口,外部只需...
2018-10-13 10:06:21 183
原创 show
public class MyApp extends Application{ private static MyApp app; private DaoSession daoSession; @Override public void onCreate() { super.onCr...
2018-10-07 20:25:09 201
原创 实现二维码扫描
首先app页面public class MyApp extends Application{ @Override public void onCreate() { super.onCreate(); ZXingLibrary.initDisplayOpinion(this); }}点击开始扫描 img3.setOnClickList...
2018-09-24 20:25:33 1398
原创 适配器!
package com.example.dell.practice0924.ui;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.support.v7.widget.LinearLayoutManager;import android.support.v7.wid...
2018-09-24 19:19:03 196
原创 bean类的修改
public boolean isOutchecked(){ return outchecked; } public void setOutchecked(boolean outchecked){ this.outchecked=outchecked; } private boole...
2018-09-24 18:25:59 273
原创 流式布局
首先写编辑框与搜索框清除事件的触发:text_clear.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {myview.removeAllViews();}});点击搜索的触发: btn_sou.setOnClickListener(new View.OnCl...
2018-09-24 18:19:03 110
原创 全选
-------------------------------------------- cb_01的点击事件-------------------------------------------------------cb_01.setOnClickListener(new View.OnClickListener() { @Override ...
2018-09-24 16:53:56 149
原创 加减号实现
------------------------------------------widgh-----togglebbutton----------------------------------------------------public class togglebutton extends LinearLayout implements View.OnClickListener {p...
2018-09-24 16:09:46 1428
原创 MVP主要框架
--------------------------------------------------------HttpUtils------------------------------------------------------public class HttpUtils {private static HttpUtils httpUtils;private final OkHtt...
2018-09-24 15:54:52 239
原创 mvp
==========================================icontract==================import java.util.List;import com.example.dell.myapplicationcl.di.bean.Bean;public interface icontract { interface iview{...
2018-09-16 20:56:20 108
原创 展示
=====================MAinacivity--------------------------------------- protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layo...
2018-09-16 20:54:38 90
原创 第三方登录,地图,
implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support.constraint:constraint-layout:1.1.3' ...
2018-09-16 20:51:07 220
原创 登录注册
依赖**重点内容**implementation 'com.squareup.okhttp3:okhttp:3.11.0' implementation 'org.xutils:xutils:3.5.0'**APP**public class App extends Application { @Override public void onCreate() {...
2018-09-10 08:22:49 1645
原创 Mvp---------------------------app
![这里写图片描述](https://img-blog.csdn.net/20180909204839281?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQyODU5MjMx/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)=======================Ma...
2018-09-09 20:52:54 296
原创 MVC主要
===============================secondimport android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.Button; import android.widget.EditText;import com.example.l...
2018-09-09 20:46:02 99
原创 MVP登录注册------di包--------依赖以及权限
```implementation 'com.jakewharton:butterknife:8.8.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' implementation 'com.squareup.okhttp3:okhttp:3.11.0' compile 'cn.yipia...
2018-09-09 12:04:48 161
原创 MVP登录注册------ui包
==========================Maintivity===========================package com.example.dell.zk2.ui;import android.content.Intent;import android.os.Bundle;import android.preference.Preference;import ...
2018-09-09 11:58:49 351
原创 MVP登录注册-------------布局
=================================MainActivity布局---------------登录注册==================<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/and...
2018-09-09 11:54:45 104
原创 Caused by:
Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)Caused by: libcore.io.ErrnoException: getaddrinfo failed: EACCES (Permission denied)java.lan...
2018-09-07 19:34:29 604
原创 流式布局
![这里写图片描述](https://img-blog.csdn.net/20180902104216159?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQyODU5MjMx/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)&lt;?xml version="1.0" en...
2018-09-02 10:43:44 189
原创 柱状图
package com.example.dell.day01_0830;import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.support.annotat...
2018-09-01 10:57:52 129
原创 画圆
package com.example.dell.day01_0830;import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.support.annotat...
2018-09-01 10:39:03 206
原创 BaseActivity基类的抽取
```package com.example.dell.yuekao.base;import android.os.Bundle;import android.support.annotation.Nullable;import android.support.v7.app.AppCompatActivity;import com.example.dell.yuekao.HttpUt...
2018-08-23 19:57:26 312
原创 drawLayout侧滑+PullToRefresh+ViewPage
上拉加载,下拉刷新,多条目,侧滑,轮播接口http://172.17.8.100/mobile/exam/findNewList https://api.yunxuekeji.cn/yunxue_app_api/content/getIndexBanner/1===================================MainActivity===============...
2018-08-22 16:20:52 149
原创 Viewpage轮播+Xlistview多条目+Async异步请求
===================================Maintivity==========================================public class MainActivity extends AppCompatActivity { private String spec="http://www.xieast.com/api/news...
2018-08-17 21:38:52 172
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人