SkeletonLayout icon indicating copy to clipboard operation
SkeletonLayout copied to clipboard

Add view limit level parameter when show skeleton

Open TaQuangTu opened this issue 4 years ago • 1 comments

I see that showing skeleton for all leaf views (views at the bottom of the view tree and have no children) is not always give a good look. I have added a field named limitToLevel: Int (default = MAX_INT) to limit the depth at which child views in the SkeletonLayout should show skeleton and stop traveling down to their child views to show skeleton. This change does not require coders to modify their code except when they need to use the parameter. I hope you will consider my tiny effort. Thank you!

TaQuangTu avatar Feb 22 '21 10:02 TaQuangTu

Thanks for your PR and sorry for the late response! Is this feature still required and if so, could you explain one simple use case, so that I am able to understand the requirements? Thanks in advanca and all the best!

Faltenreich avatar Aug 05 '23 14:08 Faltenreich