https://kotlinlang.org logo
#android
Title
# android
a

André Thiele

02/24/2023, 10:23 AM
Hey everyone, when applying insets inside a fragment on a view using ViewCompat.setOnApplyWindowInsetsListener, the padding is added multiple times after navigating back and forth to the fragment. using insetter lib is not an option for us. where do we need to call setOnApplyWindowInsetsListener? thanks in advance
😶 1
it seems that onViewCreated is ok as long as I save the initial view padding and not use subsequent padding after applying inset padding
25 Views