correcting a side margin calculation

This commit is contained in:
tibbi 2020-04-06 10:03:11 +02:00
parent 1647df2d0c
commit e7340d80ea
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class NewMessageActivity : SimpleActivity() {
newLinearLayout.orientation = LinearLayout.HORIZONTAL newLinearLayout.orientation = LinearLayout.HORIZONTAL
val sideMargin = (selected_contacts.layoutParams as RelativeLayout.LayoutParams).leftMargin val sideMargin = (selected_contacts.layoutParams as RelativeLayout.LayoutParams).leftMargin
val parentWidth = realScreenSize.x - sideMargin val parentWidth = realScreenSize.x - sideMargin * 2
val mediumMargin = resources.getDimension(R.dimen.medium_margin).toInt() val mediumMargin = resources.getDimension(R.dimen.medium_margin).toInt()
var widthSoFar = 0 var widthSoFar = 0
var isFirstRow = true var isFirstRow = true