- 博客(38)
- 收藏
- 关注
原创 Android中AlertDialog弹窗
上图 首先是Main.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" ...
2019-05-23 15:22:46
404
原创 Android中WebView点击拦截跳转原生
1.首先设置Web视图 webview.setWebViewClient(new MyWebViewClient()); webview1.setWebViewClient(new MyWebViewClient()); 2.拦截点击的链接,跳转到对应的页面 // 监听 所有点击的链接,如果拦截到我们需要的,就跳转到相对应的页面。 private class MyWebVi...
2019-05-22 09:38:55
3063
原创 第三方qq登录(获取头像和昵称)
首先依赖 implementation 'com.github.bumptech.glide:glide:4.8.0' implementation 'com.squareup.picasso:picasso:2.3.2' 在app里面的 android下面加入 之后在清单文件中加入 这个包要是这个 App.java import android.a...
2018-12-21 08:20:06
1923
原创 上传头像(本地上传和拍照)
首先点击图片 弹出对话框 点击本地图片选中 截取 点击拍照,截取 -------------------------权限 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name...
2018-12-20 19:53:15
440
原创 Fresco图片加载+EventBus+Butterknife+Retrofit+RxJava+RxAndroid
使用MVP框架搭建,分包明确,V层和M层解耦,通过接口完成V层和P层以及P层和M层通信,解决内存泄漏问题 Retrofit做网络请求,封装网络请求工具类,使用单例模式,添加日志拦截器打印网络请求内容 集成Rxjava库,集成Gson库 请求轮播图接口,实现轮播图效果 使用RecyClerView做列表展示页面,使用ListView不得分,轮播图与列表上下联动 选择Fresco图片加载框架...
2018-12-10 08:14:22
381
原创 自定义流式布局+简单
----------------首先xml suo_activity.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:orientation="vertical" ...
2018-11-22 20:50:29
188
原创 分类全+图片
-------------HttpUtils.java package com.bwie.xiaqin.yuekao112102lx.fen.utils; import android.os.Handler; import com.bwie.xiaqin.yuekao112102lx.fen.inter.ICallBack; import com.google.gson.Gson; im...
2018-11-22 14:53:30
163
原创 自定义view进度条
主页面的xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:t...
2018-11-22 14:24:17
233
原创 mvp+登录
net package com.bwie.xiaqin.denglumvp.net; import com.bwie.xiaqin.denglumvp.bean.User; /** * Created by lenovo on 2018/11/10. */ public class UserLoginNet { //判断信息是否正确 public boolean ...
2018-11-12 09:27:23
180
原创 轮盘+toolbar
首先在value里面的styles.xml给该成 Theme.AppCompat.Light.NoActionBar 之后在res里面创建一个文件夹menu 名为menu.xml <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res...
2018-11-05 08:20:57
220
原创 购物车新
----------------------主页面xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/re...
2018-10-26 08:21:24
162
原创 分类
-----------------leftBean.java ----------------------Left.adapter 首先Left package com.bwie.xiaqin.yuekao20181025lx.fenlei.leftadapter; import android.content.Context; import android.support.ann...
2018-10-26 08:13:23
161
原创 ViewPage+轮播图2
-------------------bean.java ----------------之后xml <android.support.v4.view.ViewPager android:id="@+id/vp_banner" android:layout_width="match_parent" android:layout_height="200dp...
2018-10-26 08:04:23
191
原创 ViewPage轮播图
---------------------首先创建项目,创建三个fragment 在主页面xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://sche...
2018-10-26 07:48:52
226
原创 第三方高德地图
首先权限 <!--允许程序打开网络套接字--> <uses-permission android:name="android.permission.INTERNET" /> <!--允许程序设置内置sd卡的写权限--> <uses-permission android:name="android.permission.WRITE_EXTERNAL_ST...
2018-10-23 13:49:39
266
原创 ViewPage
main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:to...
2018-10-22 09:10:52
183
原创 二维码扫描
main_activity.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" ...
2018-10-22 08:17:26
172
原创 自定义圆角边框
首先在drawable里面创建xml <shape xmlns:android="http://schemas.android.com/apk/res/android"> <corners android:radius="50dip" android:topLeftRadius="50dip" android:topRi...
2018-10-22 08:06:42
203
原创 波浪线 - 动图
Activity-Main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" ...
2018-10-08 08:05:59
779
原创 电影院
依赖 implementation 'com.google.code.gson:gson:2.2.4' implementation 'com.squareup.okhttp3:okhttp:3.11.0' implementation 'com.android.support:recyclerview-v7:27.1.1' implementation 'com.github.bumptec...
2018-09-25 08:26:08
578
原创 自定义流式布局
依赖 implementation 'com.google.code.gson:gson:2.2.4' implementation 'com.squareup.picasso:picasso:2.3.2' implementation 'com.squareup.okhttp3:okhttp:3.11.0' <uses-permission android:name="androi...
2018-09-24 23:11:51
329
原创 购物车
main <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="ma
2018-09-24 23:08:18
101
原创 二级列表-购物车
依赖 //Gson implementation 'com.google.code.gson:gson:2.2.4' //OkHttp implementation 'com.squareup.okhttp3:okhttp:3.11.0' implementation 'com.squareup.picasso:picasso:2.71828' implementation 'com.gith...
2018-09-24 21:53:22
199
原创 MVP+购物车
main.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="
2018-09-21 14:19:55
147
原创 第三方登录qq
里面有App和Mainactivity App package com.bwie.xiaqin.disanfang; import android.app.Application; import com.umeng.commonsdk.UMConfigure; import com.umeng.socialize.PlatformConfig; /** * Created by len...
2018-09-17 08:12:13
205
原创 导航栏+列表
首先导航activity_main.XML <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:lay...
2018-09-16 23:06:58
431
原创 自定义View柱形图
XML <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/...
2018-09-03 08:21:29
145
原创 自定义View-柱形图
XML <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/...
2018-09-03 08:20:14
208
原创 咨询项目
跳转页面 main.xml <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.a...
2018-08-24 21:05:25
637
原创 ViewPage和WebView
xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="
2018-08-24 17:29:36
547
原创 多条目PullToRefreshListView
要用到依赖 <uses-permission android:name="android.permission.INTERNET"></uses-permission> android:name="com.bwie.xiaqin.app.MyApp" Xml <com.handmark.pulltorefresh.library.PullToRe...
2018-08-24 15:29:15
134
原创 侧滑菜单
log.xml <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/a...
2018-08-24 11:49:05
179
原创 跳转页面
跳转页面 main.xml <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas....
2018-08-24 10:46:42
389
原创 购物车
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>disanzhou</title> <script src="js/angular.min.js"></script> &
2018-04-07 08:29:28
159
原创 修改
<!DOCTYPE html><head> <meta charset="utf-8" /> <title>moni</title> <script src="js/angular.min.js"></script> <script src="
2018-04-07 08:25:03
124
原创 商品
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/angular.min.js"></script> <sc
2018-04-07 07:01:55
138
原创 商品
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/angular.min.js"></script> <sc
2018-04-07 06:56:23
138
原创 二级联动
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript" src="../day0403/js/angular.min.js"
2018-04-06 21:20:02
175
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅