tuesda / circlerefreshlayout Goto Github PK
View Code? Open in Web Editor NEWa custom pull-to-refresh layout which contains a interesting animation
a custom pull-to-refresh layout which contains a interesting animation
finishRefreshing方法调用后,会走mHeader.setRefreshing(false); 动画正常结束,但是一直是下拉后的样子,不回到顶部. 在再一次下拉的时候就回去了.
Cannot draw back after completely Refreshing in 4.12
Can we have backward compatibility up-to SDK11 or more ..??
Hey, its not working on CardView (androidx.cardview.widget.CardView). Can you help me find the reason to it and solve this problem? Thanks.
这个导致 listview 的 item 触摸不灵
it don't finish and the refresh view is always loading
<LinearLayout
android:id="@+id/progressContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone" >
<com.wherewifi.ui.CircularProgressBar
android:id="@+id/loadingProgressBar"
android:layout_width="36dip"
android:layout_height="36dip" />
</LinearLayout>
<FrameLayout
android:id="@+id/listContainer"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<com.test.ui.CircleRefreshLayout
android:id="@+id/refreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
app:AniBackColor="@color/actionbar_bg"
app:AniForeColor="@color/bg_color"
app:CircleSmaller="6" >
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@null"
android:drawSelectorOnTop="false" />
</com.test.ui.CircleRefreshLayout>
<TextView
android:id="@+id/internalEmpty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"/>
<LinearLayout
android:id="@+id/wifilayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal"
android:visibility="gone" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dip"
android:text="@string/turn_on_wifi" />
<android.support.v7.widget.SwitchCompat
android:id="@+id/wifiSwitch"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</FrameLayout>
you can let CircleRefreshLayout extends RelativeLayout
mRefreshLayout.finishRefreshing(); is not working properly and some times does not draw back after completing refresh
For example if as soon as the user refreshes, and there is no data to update (for example no connection/website down etc...) the animation just keeps on going but you can still refresh again by pulling while its refreshing.
I solved this by using a handler and calling postdelayed with a delay of 1000ms this would finish the view's animation but its not ideal because of 1000ms delay.
What I mean is that when I am trying to scroll up (not from the top element in list) the CircleRefreshLayout animation starts and it does refresh instead of scrolling up.
I am using a recyclerView , something like
` // Root layout
<LinearLayout> // Root layout
<ToolBar>
<CircleRefreshLayout>
<LinearLayout> // List Container
<RecyclerView>`
and my code looks like I mentioned on issue #5
Allow options to customize pull range, circle pop animation timings , reset animation duration to make this library usable by everyone.
I use this method "circleRefreshLayout.setEnabled(false);" but its not working.
I'd try to use CircleRefreshLayout into the CoordinatorLayout and i need to set it to enable and disable.
it cannot take back when i take place the listview with scrollview ,i am a little white . meizu mx5
and Curiously,virtual machine is ok
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.