自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 上传头像(本地上传和拍照)

首先点击图片 弹出对话框   点击本地图片选中 截取   点击拍照,截取   -------------------------权限   &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/&gt; &lt;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 &lt;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 &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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 &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;menu xmlns:android="http://schemas.android.com/apk/res...

2018-11-05 08:20:57 220

原创 购物车新

----------------------主页面xml &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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 &lt;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: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://sche...

2018-10-26 07:48:52 226

原创 第三方高德地图

首先权限 &lt;!--允许程序打开网络套接字--&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;!--允许程序设置内置sd卡的写权限--&gt; &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_ST...

2018-10-23 13:49:39 266

原创 ViewPage

main.xml &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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 &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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 &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;corners android:radius="50dip" android:topLeftRadius="50dip" android:topRi...

2018-10-22 08:06:42 203

原创 波浪线 - 动图

Activity-Main.xml &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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' &lt;uses-permission android:name="androi...

2018-09-24 23:11:51 329

原创 购物车

main &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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 &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height=&quot

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 &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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 &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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 &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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 &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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 &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools=&quot

2018-08-24 17:29:36 547

原创 多条目PullToRefreshListView

要用到依赖 &lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt; android:name="com.bwie.xiaqin.app.MyApp" Xml &lt;com.handmark.pulltorefresh.library.PullToRe...

2018-08-24 15:29:15 134

原创 侧滑菜单

log.xml &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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 &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas....

2018-08-24 10:46:42 389

原创 购物车

&lt;!DOCTYPE html&gt;&lt;html&gt; &lt;head&gt;  &lt;meta charset="UTF-8"&gt;  &lt;title&gt;disanzhou&lt;/title&gt;  &lt;script src="js/angular.min.js"&gt;&lt;/script&gt;  &

2018-04-07 08:29:28 159

原创 修改

&lt;!DOCTYPE html&gt;&lt;head&gt;  &lt;meta charset="utf-8" /&gt;  &lt;title&gt;moni&lt;/title&gt;  &lt;script src="js/angular.min.js"&gt;&lt;/script&gt;  &lt;script src="

2018-04-07 08:25:03 124

原创 商品

&lt;!DOCTYPE html&gt;&lt;html&gt; &lt;head&gt;  &lt;meta charset="UTF-8"&gt;  &lt;title&gt;&lt;/title&gt;  &lt;script src="js/angular.min.js"&gt;&lt;/script&gt;  &lt;sc

2018-04-07 07:01:55 138

原创 商品

&lt;!DOCTYPE html&gt;&lt;html&gt; &lt;head&gt;  &lt;meta charset="UTF-8"&gt;  &lt;title&gt;&lt;/title&gt;  &lt;script src="js/angular.min.js"&gt;&lt;/script&gt;  &lt;sc

2018-04-07 06:56:23 138

原创 二级联动

&lt;!DOCTYPE html&gt;&lt;html&gt; &lt;head&gt;  &lt;meta charset="UTF-8"&gt;  &lt;title&gt;&lt;/title&gt;  &lt;script type="text/javascript" src="../day0403/js/angular.min.js&quot

2018-04-06 21:20:02 175

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除