Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Animation programmatically #62

Open
alissonvargas opened this issue Nov 17, 2016 · 1 comment
Open

Animation programmatically #62

alissonvargas opened this issue Nov 17, 2016 · 1 comment

Comments

@alissonvargas
Copy link

alissonvargas commented Nov 17, 2016

How to start animation programmatically?

swipyrefreshlayout.setRefreshing(true); -> is not working for me. Bottom direction.

I found the problem... The first pass on getMeasuredHeight() on setDirection(), returning 0 from height. The second time is works fine.

@bamma
Copy link

bamma commented Mar 7, 2017

You need to setDirection on the SwipyRefreshLayout to SwipyRefreshLayout.Both,

The reason why it works for you putting in the messured height is because any unknown value, will result int becoming Both, which has the integer value of 2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants