Skip to content

Commit

Permalink
Fix layout of extended search criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Jun 16, 2019
1 parent e801bfa commit 580f4e4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/kotlin/me/proxer/app/ui/view/ExpandableSelectionView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ class ExpandableSelectionView @JvmOverloads constructor(

radioButton.text = item.value
radioButton.isChecked = selection.contains(item.value)
radioButton.updateLayoutParams<MarginLayoutParams> { marginStart = -context.dip(5) }

radioButton.updateLayoutParams<MarginLayoutParams> {
marginStart = -context.dip(5)
marginEnd = context.dip(5)
}

TooltipCompat.setTooltipText(radioButton, item.description)

Expand All @@ -229,7 +233,11 @@ class ExpandableSelectionView @JvmOverloads constructor(

checkBox.text = item.value
checkBox.isChecked = selection.contains(item.value)
checkBox.updateLayoutParams<MarginLayoutParams> { marginStart = -context.dip(5) }

checkBox.updateLayoutParams<MarginLayoutParams> {
marginStart = -context.dip(5)
marginEnd = context.dip(5)
}

TooltipCompat.setTooltipText(checkBox, item.description)

Expand Down

0 comments on commit 580f4e4

Please sign in to comment.