自定义博客皮肤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 372

原创 Android中WebView点击拦截跳转原生

1.首先设置Web视图webview.setWebViewClient(new MyWebViewClient());webview1.setWebViewClient(new MyWebViewClient());2.拦截点击的链接,跳转到对应的页面 // 监听 所有点击的链接,如果拦截到我们需要的,就跳转到相对应的页面。 private class MyWebVi...

2019-05-22 09:38:55 3006

原创 第三方qq登录(获取头像和昵称)

首先依赖implementation 'com.github.bumptech.glide:glide:4.8.0'implementation 'com.squareup.picasso:picasso:2.3.2' 在app里面的 android下面加入 之后在清单文件中加入 这个包要是这个 App.javaimport android.a...

2018-12-21 08:20:06 1880

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

首先点击图片弹出对话框 点击本地图片选中 截取 点击拍照,截取 -------------------------权限 &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/&gt;&lt;uses-permission android:name...

2018-12-20 19:53:15 424

原创 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 359

原创 自定义流式布局+简单

----------------首先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 165

原创 分类全+图片

-------------HttpUtils.javapackage 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 141

原创 自定义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 205

原创 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 151

原创 轮盘+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 197

原创 购物车新

----------------------主页面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 123

原创 分类

-----------------leftBean.java ----------------------Left.adapter  首先Leftpackage com.bwie.xiaqin.yuekao20181025lx.fenlei.leftadapter;import android.content.Context;import android.support.ann...

2018-10-26 08:13:23 137

原创 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 155

原创 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 203

原创 第三方高德地图

首先权限&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 237

原创 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 156

原创 二维码扫描

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 141

原创 自定义圆角边框

首先在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 172

原创 波浪线 - 动图

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 763

原创 电影院

依赖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 534

原创 自定义流式布局

依赖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 318

原创 购物车

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 92

原创 二级列表-购物车

依赖//Gsonimplementation 'com.google.code.gson:gson:2.2.4'//OkHttpimplementation 'com.squareup.okhttp3:okhttp:3.11.0'implementation 'com.squareup.picasso:picasso:2.71828'implementation 'com.gith...

2018-09-24 21:53:22 185

原创 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 135

原创 第三方登录qq

里面有App和MainactivityApppackage 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 193

原创 导航栏+列表

首先导航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 412

原创 自定义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 134

原创 自定义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 195

原创 咨询项目

跳转页面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 607

原创 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 533

原创 多条目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 121

原创 侧滑菜单

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 155

原创 跳转页面

跳转页面 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 298

原创 购物车

&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 145

原创 修改

&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 113

原创 商品

&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 126

原创 商品

&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 129

原创 二级联动

&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 161

空空如也

空空如也

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

TA关注的人

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