Skip to content

Commit

Permalink
Update between spacing logic to reduce extra space on top and bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
kukadiajayesh committed Nov 9, 2023
1 parent 7670a09 commit 8a5c8fb
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,11 @@ public class SequenceLayout(context: Context, attrs: AttributeSet?, defStyleAttr
override fun addView(child: View, index: Int, params: ViewGroup.LayoutParams) {
if (child is SequenceStep) {
child.onStepChangedListener = this
child.setPadding(
0, stepVerticalSpace, 0, stepVerticalSpace
)

if (stepsWrapper.children().isNotEmpty()) {
child.setPadding(0, stepVerticalSpace, 0, 0)
}

stepsWrapper.addView(child, params)
return
}
Expand Down

0 comments on commit 8a5c8fb

Please sign in to comment.