Comments (1)
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tvEmpty"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="emptyView"
android:clickable="true"
android:textSize="18sp" />
<com.aspsine.swipetoloadlayout.SwipeToLoadLayout
android:id="@+id/swipeToLoadLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.aspsine.swipetoloadlayoutdemo.MainActivity">
<com.aspsine.swipetoloadlayoutdemo.RefreshHeaderView
android:id="@id/swipe_refresh_header"
android:layout_width="match_parent"
android:layout_height="100dp"
android:gravity="center" />
<ListView
android:id="@id/swipe_target"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.aspsine.swipetoloadlayoutdemo.LoadMoreFooterView
android:id="@id/swipe_load_more_footer"
android:layout_width="match_parent"
android:layout_height="100dp"
android:gravity="center" />
</com.aspsine.swipetoloadlayout.SwipeToLoadLayout>
</FrameLayout>
ListView listView = (ListView) findViewById(R.id.swipe_target);
TextView tvEmpty = (TextView) findViewById(R.id.tvEmpty);
listView.setEmptyView(tvEmpty);
I have tested, it works!
from swipetoloadlayout.
Related Issues (20)
- ListView emptyView,求指教 怎么处理。 HOT 1
- maven库拉不下来,能不能换到jcenter库
- 请问如何配置下拉阻力系数?下拉时越往下移动距离越小 HOT 1
- 事件拦截!!!急 HOT 3
- 瀑布流的上拉刷新,如何处理才能不显示不对齐的空白
- 正在刷新的状态下,reclycleview居然可以上滑 HOT 1
- 当嵌套ListView发现滑动冲突问题 HOT 1
- 上拉或下拉 刷新时 SwipeTrigger void onMove(int y, boolean isComplete, boolean automatic);
- onMove(int y, boolean isComplete, boolean automatic);建议还是改为 float 类型 做一些效果时 距离精度丢失了
- 下拉刷新刷新完成有时候头布局一直在转
- 崩!
- 有个问题
- 作者这个库不维护了吗
- 子控件大小设置为自适应,SwipeToLoadLayout,子控件内容发生变化,但控件大小无法改变 HOT 1
- 最新版的isRefreshing()接口在下拉刷新后一直显示为true,不能用于判断刷新状态。
- CoordinatorLayout嵌套SwipeToLoadLayout出现滑动冲突 HOT 3
- 在fragment生命周期onActivityCreated中发生null pointer exception
- swipe_target should chagne to android:tag
- CoordinatorLayout
- 当recyclerview添加了footerview之后又隐藏的话不能上拉加载更多
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swipetoloadlayout.