- 博客(11)
- 收藏
- 关注
原创 ViewPager无限轮播图
一、布局<FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v4.view.ViewPager android:layout_width="match_parent"...
2018-03-29 19:45:26 111
原创 HorizontalScrollView横向滑动菜单
一、布局<HorizontalScrollView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/hsv"> <LinearLayout android:layout_width="match_pa...
2018-03-29 19:45:09 208
原创 多条目
public class MyAdapter extends BaseAdapter { private final DisplayImageOptions options; private List<RequestData.NewslistBean> newslist; private Context context; private int one=...
2018-03-29 19:44:38 83
原创 获取网络数据
private Handler handler = new Handler(){ @Override public void handleMessage(Message msg) { List<RequestData.NewslistBean> newslist= (List<RequestData.NewslistBean>) msg.ob...
2018-03-29 19:44:06 200
原创 封装网络获取数据
一、自定义MyTaskpublic class MyTask extends AsyncTask<String,Void,String> { private IcallBack icallBack; public MyTask(IcallBack icallBack) { this.icallBack = icallBack; } ...
2018-03-29 19:43:51 136
原创 TabLayout横向滑动菜单
首先添加依赖implementation 'com.android.support:design:27.1.0'<android.support.design.widget.TabLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+i...
2018-03-29 19:43:37 559 1
原创 PullToRefreshListView上下拉刷新
首先添加依赖compile 'com.github.userswlwork:pull-to-refresh:1.0.0'public class Fragment01 extends Fragment { private PullToRefreshListView plv; private List<RequestData.NewslistBean> data = n...
2018-03-29 19:43:20 112
原创 Universal-Image-Loader加载图片
public class MyApp extends Application { @Override public void onCreate() { super.onCreate(); File cachefile = new File(Environment.getExternalStorageDirectory().getPath()+"/id...
2018-03-29 19:42:58 110
原创 添加 删除 排序
<body ng-app="myapp" ng-controller="mycon"> <button ng-click="isShow=!isShow">新增订单</button> <button ng-click="delmore()">批量删除</button> <
2018-03-29 19:42:17 278
原创 总价 删除
<body ng-app="myapp" ng-controller="mycon"> <div class="d1"> <h1>我的购物车详情</h1> <input type="text" placeholder="根据名称查询" id="sname"
2018-03-29 19:41:44 163
原创 判断网络
public class NetUtils { public static Boolean isConnt(Context context){ Boolean result=true; ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.C...
2018-03-05 16:36:02 99
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人