CoordinatorBehaviorExample
CoordinatorBehaviorExample copied to clipboard
How can I use mFinalLeftAvatarPadding?
I'm working with NavigationIcon (?homeAsUpIndicator), can I set the left margin to avatar to avoid overlapping of the image above the indicator?
I've added:
child.setY(mStartYPosition - distanceYToSubtract);
if(mStartXPosition - distanceXToSubtract > mFinalLeftAvatarPadding) {
child.setX(mStartXPosition - distanceXToSubtract);
}
into onDependentViewChanged. My spacing_normal size is 32dp + 8dp (size of indicator + default padding).
+1
One solution is to replace R.dimen.abc_action_bar_content_inset_material
in line 124
with a dimen allowing for navigation icon (I replaced it with a dimen resource of 40dp)
@macr00 Does this require the code added by @CeccoCQ? And does it work?