2019-01-28 17:46:39 +01:00
|
|
|
package org.mozilla.fenix.home.sessions
|
|
|
|
|
|
|
|
import androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
import androidx.constraintlayout.widget.ConstraintLayout.LayoutParams.PARENT_ID
|
|
|
|
import kotlinx.android.synthetic.main.fragment_home.*
|
2019-01-30 00:51:51 +01:00
|
|
|
import org.jetbrains.anko.constraint.layout.ConstraintSetBuilder.Side.*
|
2019-01-28 17:46:39 +01:00
|
|
|
import org.jetbrains.anko.constraint.layout.applyConstraintSet
|
|
|
|
import org.mozilla.fenix.home.HomeFragment
|
|
|
|
|
|
|
|
fun HomeFragment.layoutComponents(layout: ConstraintLayout) {
|
|
|
|
layout.applyConstraintSet {
|
|
|
|
session_list {
|
|
|
|
connect(
|
|
|
|
BOTTOM to BOTTOM of PARENT_ID,
|
|
|
|
START to START of PARENT_ID,
|
|
|
|
END to END of PARENT_ID,
|
|
|
|
TOP to BOTTOM of toolbar_wrapper
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|