- 博客(19)
- 收藏
- 关注
原创 百度地图的集成
1.首先我们从官网进行获取key值,并且下载jar包和.so文件,导入到自己的工程2.布局文件:xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent
2018-01-16 19:08:11
679
原创 二级购物车+编辑+删除
布局文件(main)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="http
2017-12-21 10:50:37
804
原创 Viewpager+fragment
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="http:/
2017-12-20 15:40:58
298
转载 属性动画
ValueAnimatorValueAnimator是整个属性动画机制当中最核心的一个类,前面我们已经提到了,属性动画的运行机制是通过不断地对值进行操作来实现的,而初始值和结束值之间的动画过渡就是由ValueAnimator这个类来负责计算的。它的内部使用一种时间循环的机制来计算值与值之间的动画过渡,我们只需要将初始值和结束值提供给ValueAnimator,并且告诉它动画所需运行
2017-12-20 14:28:30
201
原创 Retrofit+RxJava+Okhttp+RecycleView+MVP简单的展示数据
1.添加依赖 compile 'com.android.support:recyclerview-v7:23.0.1' compile 'com.facebook.fresco:fresco:1.5.0' compile 'org.greenrobot:eventbus:3.1.1' compile 'org.greenrobot:greendao:3.2.
2017-12-10 20:05:35
821
1
原创 Banner的简单使用
1.添加依赖dependencies{ compile 'com.youth.banner:banner:1.4.10' //最新版本 compile 'com.github.bumptech.glide:glide:4.0.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'
2017-12-10 19:47:57
810
原创 拼接地址的字符串(post请求),展示数据
布局:Main布局 xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="ma
2017-11-22 15:14:20
7197
原创 自定义拦截器(post)
public class MyInterceptor implements Interceptor { @Override public Response intercept(Chain chain) throws IOException { //获取原始的请求数据 Request orginRequest = chain.request()
2017-11-22 14:29:08
1223
原创 二级购物车的展示(代码篇)
老规矩,还是MVP的知识M层public class MainModel implements IMainModel { private Handler handler = new Handler(Looper.getMainLooper()); public void getGoods(final OnNetListener onNet
2017-11-22 13:45:05
271
原创 Android二级购物车MVP实现(布局篇)
这就是传说中的二级购物车,可能有点low,见谅。main布局: xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" and
2017-11-22 13:33:22
430
原创 一级购物车的展示(代码篇)
注意,我们利用的是MVP,所以一定要分包分类,规范使用M层public class MainModel implements IMainModel { private Handler handler = new Handler(Looper.getMainLooper()); public void getGoods(final OnNetListener
2017-11-22 13:18:00
455
原创 Android中利用MVP进行一级购物车的展示(布局篇)
我们这里用到的是自定义的布局,所以需要创建一个类,继承LinearLayout1.布局文件 main布局 xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" androi
2017-11-22 11:21:20
562
原创 Android中登录注册(第三方)
1.首先我们创建布局,登录的布局 xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_heigh
2017-11-12 19:59:04
749
原创 Angular js下拉菜单对月份的筛选
Title table{ border-collapse: collapse; } td,th{ padding: 10px; border: 1px solid #000; text-align: center;
2017-10-26 10:47:56
1208
原创 Angular js 对添加用户,修改密码,敏感字,下拉菜单的综合操作
html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> style> table{ border-collapse: collapse; } th,td{ padding: 10px;
2017-10-24 15:22:58
548
原创 过滤敏感字,排序等综合题
html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> style> table{ border-collapse: collapse; width: 50%; height: 40%;
2017-10-23 19:26:29
199
原创 angular js 利用filter进行排序
html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> style> table{ border-collapse: collapse; } th,td{ padding: 10px;
2017-10-15 20:06:03
911
原创 TabLayout滑动和viewPager的联动+drawerLayout的侧拉
//布局 xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_show" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="htt
2017-09-21 09:51:01
244
原创 ViewPager获取网络上的图片
//首先我们来创建布局xml布局(上方是viewPager,下方是线性布局,加载小圆点) xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="match_parent" android:layo
2017-09-21 09:30:28
539
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人