Closed rahatshahzeb closed 8 years ago
This calls removeAllViewsInLayout()
a LOT, and will affect battery life. You could include a boolean field that can be set to true if continuous updating is needed, and use that in an or clause in the if/else:
if( !updateContinuously // if updateContinuously == true, it skips to the 'else'
|| mActiveCard!=null
&& topCard!=null
&& topCard==mActiveCard) {
Also, @Diolor are you still maintaining this repository? Last commit was >11 months ago..
@alexwalterbos yes, a good suggestion.
In order to update view dynamically after change in data set, this "if condition" need to be changed. Currently, you are only updating view on touch event but I had a scenario where I needed to change view dynamically without touching.