自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(28)
  • 收藏
  • 关注

转载 RxJava 购物车

一,依赖compile 'com.jakewharton:butterknife:8.4.0'compile 'io.reactivex.rxjava2:rxjava:2.0.1'compile 'io.reactivex.rxjava2:rxandroid:2.0.1'compile 'com.squareup.retrofit2:retrofit:2.3.0'compile 'com....

2018-04-06 23:14:10 393

原创 购物车 用OKHttp

依赖compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.google.code.gson:gson:2.8.2'compile 'com.github.bumptech.glide:glide:3.6.1'compile 'com.squareup.okhttp3:okhttp:3.2.0'权限<uses-permission...

2018-04-06 22:49:43 653

原创 BottomTabBar

1. 导依赖compile 'com.hjm:BottomTabBar:1.1.1'2. 在所实现的XML中定义一下该控件<com.hjm.bottomtabbar.BottomTabBar android:id="@+id/bottom_tab_bar" android:layout_width="match_parent" android:layout_heigh...

2018-04-06 22:32:03 150

原创 XBanner

XBanner支持图片无限轮播控件,可自定义功能XBanner支持图片无限轮播的控件,可进行自定义功能。主要功能:支持根据服务端返回的数据动态设置广告条的总页数支持大于等于1页时的无限循环自动轮播、手指按下暂停轮播、抬起手指开始轮播支持自定义状态指示点位置 左 、中 、右支持自定义状态指示点支持监听 item 点击事件支持设置图片轮播间隔支持指示器背景的修改及隐藏/显示支持显示提示性文字功能支持图...

2018-03-23 20:09:55 199

原创 BottomTabBar

1. 导依赖compile 'com.hjm:BottomTabBar:1.1.1'2. 在所实现的XML中定义一下该控件<com.hjm.bottomtabbar.BottomTabBar android:id="@+id/bottom_tab_bar" android:layout_width="match_parent" android:layout_heigh...

2018-03-22 15:15:07 184

原创 网络获取数据

label { display: block; } var app = angular.module("myapp", []); app.controller("democ", function($scope, $http) { $scope.add_sex = '男'; //默认选中 //get获取字符串解析 $http.get("http://r

2018-01-18 20:36:48 296

原创 表单验证 年龄

body{width: 80%;margin: 0 auto;}table{width: 800px;text-align: center;}var app=angular.module("hui",[]);app.controller("dome",function($scope){$scope.tt=[{  name:'李三', 

2018-01-16 21:09:22 3699

原创 左加右减 总和

var app = angular.module("gaoyn", []); //创建模块,angular以模块的形式来组织 //2 通过模块来创建控制器 app.controller("democ1", function($scope) { //$scope:视图(body)和控制器之间的纽带(数据和方法) $scope.stus = [{

2018-01-16 14:18:04 424

原创 增,删,改,综合

$scope.del=function(obj){ //删除$scope.tt.splice(obj,1);}$scope.Xuan=function(){ //全选for(var i=0;i$scope.tt[i].st=$scope.xuan;}}$scope.update=function

2018-01-16 14:16:04 172

原创 月份 发货

body {width: 80%;margin: 0 auto;}table {width: 900px;text-align: center;}tr:nth-child(2n) {background-color: #CBCBC9;}var app = angular.module("hui", []);app.controll

2018-01-16 14:13:36 203

原创 二级联动

$(function(){var shengfen=[["洛阳","安阳"],["邯郸","石家庄"]];$("#pro").change(function(){$("#cityx").siblings().remove();var sheng=$(this).val();for (var i=0;ivar $o=$("");$o.html(shen

2018-01-15 09:06:41 141

原创 一行修改

$(function(){var shengfen=[["洛阳","安阳"],["邯郸","石家庄"]];$("#pro").change(function(){$("#cityx").siblings().remove();var sheng=$(this).val();for (var i=0;ivar $o=$("");$o.html(shen

2018-01-06 15:53:49 170

转载 tabla

public class Fragment1 extends Fragment{    private List data = new ArrayList    private TabLayout mytab;    private ViewPager viewPager;    @Nullable    @Override    public View onCre

2017-12-21 11:49:25 135

转载 Tabla 的使用方法

public class Fragment1 extends Fragment{ private List data = new ArrayList<>(); private TabLayout mytab; private ViewPager viewPager;@Nullable@Overridepublic View onCreateView(LayoutIn

2017-12-21 11:37:29 211

转载 Tabla 的使用

**public class Fragment1 extends Fragment{ private List data = new ArrayList<>(); private TabLayout mytab; private ViewPager viewPager; @Nullable @Override public View onC

2017-12-21 11:34:24 186

转载 XLlistView的使用

** public class ImagerUtil { public static void initImageLoader(Context context) { //自定义磁盘缓存路径 系统默认的缓存路径 sd…..cache 当app被卸载时,此路径下的缓存图片一并被删除 //File cacheDir=getExternalCac

2017-12-21 09:53:08 201

转载 XListview刷新

public class MainActivity extends AppCompatActivity {    private ViewPager pager;    private XListView xlv;    private int index=3;    private String part="http://api.tianapi.com/tiyu/?key

2017-12-21 09:28:51 149

转载 内存缓存

android:layout_width="match_parent"        android:layout_height="wrap_content"        android:id="@+id/btn_down"        android:text="下载"/>          android:layout_width="wrap_content"

2017-12-20 20:49:08 146

转载 频道管理

android:layout_width="match_parent"    android:layout_height="wrap_content"    android:id="@+id/rcv">        android:layout_width="80dp"        android:layout_height="30dp"        an

2017-12-20 09:37:19 168

转载 Imager图片设置

public class ImagerUtil { public static void initImageLoader(Context context) { //自定义磁盘缓存路径 系统默认的缓存路径 sd.....cache 当app被卸载时,此路径下的缓存图片一并被删除 //File cacheDir=getExternalCacheDi

2017-12-19 13:20:27 323

转载 Viewpager的轮播

public class MainActivity extends AppCompatActivity { private ViewPager pager; private String url="http://www.93.gov.cn/93app/data.do?channelId=0&startNum=0"; private Handler handler=new

2017-12-17 19:58:17 1900

转载 Banner的使用

build.gradle中加入(加在最下面):compile 'com.youth.banner:banner:1.4.10'添加之后需要点击右上角的 Sync Now 编译一下============================================添加权限:在这个控件里加入属性:android:name=".MyApp"==============================

2017-12-16 17:25:30 412

转载 ImageLoader的使用

ImageLoader的使用1.ImageLoaderConfiguration 配置参数如下:    File cacheDir = StorageUtils.getCacheDirectory(context);  //缓存文件夹路径    ImageLoaderConfiguration config = new ImageLoaderConfiguration.

2017-12-15 20:38:04 179

转载 PullToRefreshScrollView的使用

PullToRefreshScrollView的使用准备工作:第一步:导入pullToRefresh的工程,注意需要16版本的sdk,与19版本的构建工具(需要连网下载)第二步:将工程作为依赖库添加到自己的工程中使用步骤:第一步:在布局文件中添加PullToRefreshScrollView组件    ptr:ptrDrawable="@dr

2017-12-15 20:34:41 205

转载 TableLayout的使用

请参考:http://www.jb51.net/article/120336.htm              http://www.jb51.net/article/120336.htm使用tabLayout实现横向滑动菜单1.添加依赖,,,,design.....添加依赖之后可能会报错Attribute meta-data#android.support.VER

2017-12-15 20:34:00 706

转载 网络连接

public class TextUtil {    public static boolean iscon(Context context)    {        ConnectivityManager manager =(ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);

2017-12-15 20:19:50 121

转载 Image工具类

public class ImageLoaderUtils {/**** @param context*/public static void initConfiguration(Context context) {Builder configuration = new ImageLoaderConfiguration.Builder(context);// -

2017-12-15 19:59:41 281

原创 图片存放路径

//初使化    public static void initImageLoader(Context context){        //自定义磁盘缓存路径  系统默认的缓存路径 sd...&lt;package&gt;..cache  当app被卸载时,此路径下的缓存图片一并被删除        //File cacheDir=getExternalCacheDir();      ...

2017-12-12 20:28:56 735

空空如也

空空如也

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

TA关注的人

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