vlonjat-gashi / progress-activity

Easily add loading, empty and error states in your app.
1.02k stars 171 forks source link

showError works only for first time #10

Open djinnovations opened 8 years ago

djinnovations commented 8 years ago

Firstly, its good library thanks for this!. I am using this library to show network error, in the layout the set these: app:loadingBackgroundColor="#FFFFFF" app:emptyBackgroundColor="#fbc02d" app:errorBackgroundColor="@color/disabled_grey" app:errorButtonTextColor="@color/white" app:errorContentTextColor="@color/Red" So when I showErr its background must be grey, and yes it works for the first time. Then I have a retry button and again I check the network stat, if not good I call the same showErr method it shows the layout having the drawable I supplied and also the retry button. And the point is it shows me the content of my xml file wic is editable and Ui interactive but it was supposed to be was, it must have shown a grey background (as per this : app:errorBackgroundColor="@color/disabled_grey")

23hp commented 8 years ago

I meet the same problem on v1.0.3

sohambannerjee8 commented 6 years ago

Same here with v2.0.5