Closed deepakkumardk closed 4 years ago
I don't understand why flicker related with toolbar? I can imagine flicker means image flicking in PhotoView.
Before reviewing / merging this, Can you give me some points to explain the situation?
I mean when user tap on the photoView then we are showing & hiding the toolbar and that's where flickering occurs. I think in-build show/hide method for supportActionBar are causing this. You can view this video https://drive.google.com/file/d/18h6IOtJ-JVXHDAK57slZBDsBJU8mHjgJ/view?usp=sharing
Made the commit as suggested.
Deploy as 2.0.6 . 🙇
To fix the flicker I used toolbar wrapped in card view (To handle the click listener for back button) with elevation. I don't know it's the best way or not but in this way we can provide the back compatibility without using the android:elevation attribute.