Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showContent() methode doesn't work #2

Closed
samirthebti opened this issue Mar 11, 2017 · 3 comments
Closed

showContent() methode doesn't work #2

samirthebti opened this issue Mar 11, 2017 · 3 comments

Comments

@samirthebti
Copy link

I tried to show the content of recyclerView after loading data from internet , but the show method look like she have an unexpectedly behaviour ?

@gturedi
Copy link
Owner

gturedi commented Mar 12, 2017

hi, could you share related part of your layout and activity code?

@mibac138
Copy link
Contributor

Hello!

I have the same problem. After investigation I think the problem occurs when the delay between showing loading screen and showing content is smaller than the animation's length.
In other words it occurs if stContainer changes before the animation can complete.
Example:

statefulLayout.showLoading();
// Animation plays (900ms by default)
// Time *less* than 900ms passes (ex. 300ms)
statefulLayout.showContent();
// Loading is showed -- expected content to be showed

gturedi added a commit that referenced this issue Mar 21, 2017
Fix #2 and improve performance
@zunjae
Copy link

zunjae commented Nov 11, 2018

This issue is still in the library!

Here is what happens

  1. You connect to a server
  2. you see nothing on your screen
  3. for a brief moment you see the results on screen, WITHOUT CALLING .showcontent()
  4. the loading indicator appears.

I'm using 1.2.1

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

No branches or pull requests

4 participants