- 博客(11)
- 收藏
- 关注
原创 RecyclerView瀑布流
依赖 compile 'com.android.support:recyclerview-v7:25.3.1' Recyclerview:XML<android.support.v7.widget.RecyclerView android:id="@+id/rv" android:layout_width="match_parent" android:la...
2018-04-12 20:03:50
207
原创 自动轮播
private ImageView iv; private int []ll={R.mipmap.a,R.mipmap.b,R.mipmap.c}; private int i=3; private Handler handler=new Handler(); private Runnable runnable=new Runnable() { ...
2018-04-12 20:02:48
178
原创 上拉刷新下拉加载
依赖 compile 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.3' compile 'com.scwang.smartrefresh:SmartRefreshHeader:1.0.3'XML <com.scwang.smartrefresh.layout.SmartRefreshLayout andr...
2018-04-12 20:02:19
180
原创 缓存解析Fragment点击跳到WebView
依赖 compile 'com.android.support:recyclerview-v7:25.3.1' Recycler compile 'com.squareup.okhttp3:okhttp:3.8.1' <android.support.v7.widget.RecyclerView android:id="@+id/rv" andro...
2018-04-12 19:51:59
357
原创 Recyclery接口回掉传至修改
在适配器设置接口 public interface onlistener{ void itemlistener(int position); } public void setonlistener(onlistener listener){ this.listener=listener; } holder.item...
2018-04-10 13:40:06
164
原创 手动加载List
List:Xml<ListView android:id="@+id/lv" android:layout_width="match_parent" android:layout_height="match_parent"></ListView>创建数据 private void initData() { strings =...
2018-04-09 20:58:26
188
原创 二级列表
private void initData() { fl = new ArrayList<>(); fl.add("北京"); fl.add("陕西"); zl = new ArrayList<>(); zl.add("朝阳"); zl.add("上地"); zl
2018-04-09 20:45:01
245
原创 轮播图
<?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http:/
2018-04-09 20:14:24
150
原创 倒计时
<TextView android:id="@+id/tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:textS...
2018-04-09 19:34:09
152
原创 Dialog
new AlertDialog.Builder(Main2Activity.this) .setTitle("系统提示") .setTitle("是否删除此条数据") .setPositiveButton("是", new Dia...
2018-04-09 19:23:34
126
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅