- 博客(18)
- 收藏
- 关注
转载 Android中ViewPager+Fragment取消(禁止)预加载延迟加载(懒加载)问题解决方案
Android中ViewPagerFragment取消禁止预加载延迟加载懒加载问题解决方案问题初探问题再探最终解决方案用法看效果界面GitHubAndroid中ViewPager+Fragment取消(禁止)预加载延迟加载(懒加载)问题解决方案 在Android中我们经常会用到ViewPager+Fragment组合。然而,有一个很让人头疼的问题就是,我们去加载数据的时候由于ViewPager的...
2018-05-11 15:43:51
1301
转载 Android智能下拉刷新框架-SmartRefreshLayout
Demo下载 APK-Demo如果手机上看不到图片,可以尝试点击浏览器查看点击Github传送门使用电脑浏览项目演示风格演示框架如果你看完了效果图,或许框架的意思应该有所了解了~~SmartRefreshLayout对下拉刷新功能进行系统的拆分、组合,主要由四个部分组成:RefreshLayout 下拉的基本功能,包括布局测量、滑动事件处理、参数设定等等RefreshContent 对不同内容的统...
2018-05-11 15:42:51
419
转载 Android实现ViewPager滑屏动作并添加动画效果
1、整个文件是这样的:一个Activity主页,三个Fragment,两个谷歌官方的动画效果例子22、activity_main.xml[html] view plain copy <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/ap...
2018-05-11 14:55:22
1744
原创 原生登录+详情页+购物车+订单
依赖 compile 'io.reactivex.rxjava2:rxjava:2.1.7' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.squareup.retrofit2:converter-g
2018-01-18 10:01:20
1497
原创 详情页跳转购物车
依赖 compile 'com.squareup.okhttp3:okhttp:3.9.0' compile 'com.google.code.gson:gson:2.8.2' compile 'com.github.bumptech.glide:glide:3.3.1'权限 main详情页的布局<LinearLayout xmln
2017-12-20 10:54:47
670
原创 原生登录+注册
导依赖 compile 'org.xutils:xutils:3.5.0 compile 'com.github.bumptech.glide:glide:3.7.0' compile 'com.bigkoo:convenientbanner:2.0.5'加权限 Main布局<RelativeLayout xmlns:android="htt
2017-11-23 12:49:51
644
原创 Mvp框架+okhttp请求+recyclerview
Bean自已换导依赖 compile 'com.squareup.okhttp3:okhttp:3.9.0' compile 'com.google.code.gson:gson:2.8.0' compile 'com.android.support:recyclerview-v7:25.3.1'加权限
2017-11-22 15:11:23
401
转载 Android--------使用BottomTabBar实现底部导航页
注:详细见链接http://www.jianshu.com/p/ade8485a16be1.导依赖compile 'com.hjm:BottomTabBar:1.1.1'2.在XML中定义一下该控件com.hjm.bottomtabbar.BottomTabBar android:id="@+id/bottom_tab_b
2017-11-22 09:40:36
485
原创 自定义View 圆形进度条
xml布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"xmlns:dabin="http://schemas.android.com/apk/res-auto"android:id="@+id
2017-11-05 20:29:29
204
原创 表单 增删改查+敏感字
订单管理 * { font-size: 14px; margin: 0; padding: 0; } body { padding: 16px 32px; } .filter {
2017-10-25 18:27:25
577
原创 angular.js 表格增删改查
var flag = false; var app=angular.module("MyApp",[]); app.controller("myCtrl",function($scope){ $scope.data=[ {che1:"c0",id:1, name:"张三", password:"123", age:10
2017-10-24 18:37:03
341
原创 表格样式+添加样式
样式* {font-size: 14px;margin: 0;padding: 0;}body {padding: 16px 32px;}.search {position: relative;width: 512px;height: 40px;line-height: 40px;margin: 0 auto;}.se
2017-10-24 18:31:33
307
原创 PullToRefreshLayout 下拉刷新上拉加载
第一步: 导依赖compile 'com.jwenfeng.pulltorefresh:library:1.0.3' 第二步: 布局<com.jwenfeng.library.pulltorefresh.PullToRefreshLayout xmlns:android="http://schemas.android.com/apk/res/androi
2017-09-20 20:43:05
2130
原创 listView 多条目加载
第一步 : 布局 activity_main<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
2017-09-19 19:00:27
350
原创 Viewpager+Fragment 导航栏联动
第一步: 布局 <RadioGroup android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:id="@+id/rg" android:layou
2017-09-19 09:19:10
571
原创 ImageLoader加载图片工具类
第一步 :导依赖 compile files('libs/universal-image-loader-1.9.3-with-sources.jar')第二步:加载图片工具类public class MyApplic extends Application{ @Override public void onCreate() {
2017-09-17 19:35:18
298
原创 Tablayout + viewpager
第一步: 导依赖 compile "com.android.support:design:24.1.1" 第二步 布局 <android.support.design.widget.TabLayout android:id="@+id/tabLayout" android:layout_width
2017-09-17 19:02:14
335
原创 ConvenientBanner 无限轮播使用
导包: compile 'com.bigkoo:convenientbanner:2.0.5' 第一步:布局 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://sc
2017-09-15 13:57:52
987
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人