correcting a side margin calculation
This commit is contained in:
parent
1647df2d0c
commit
e7340d80ea
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue