@@ -28,11 +28,11 @@ import splitties.views.dsl.constraintlayout.below
28
28
import splitties.views.dsl.constraintlayout.bottomOfParent
29
29
import splitties.views.dsl.constraintlayout.bottomToTopOf
30
30
import splitties.views.dsl.constraintlayout.constraintLayout
31
- import splitties.views.dsl.constraintlayout.endOfParent
32
- import splitties.views.dsl.constraintlayout.endToStartOf
33
31
import splitties.views.dsl.constraintlayout.lParams
34
- import splitties.views.dsl.constraintlayout.startOfParent
35
- import splitties.views.dsl.constraintlayout.startToEndOf
32
+ import splitties.views.dsl.constraintlayout.leftOfParent
33
+ import splitties.views.dsl.constraintlayout.leftToRightOf
34
+ import splitties.views.dsl.constraintlayout.rightOfParent
35
+ import splitties.views.dsl.constraintlayout.rightToLeftOf
36
36
import splitties.views.dsl.constraintlayout.topOfParent
37
37
import splitties.views.dsl.constraintlayout.topToBottomOf
38
38
import splitties.views.dsl.core.Ui
@@ -128,16 +128,16 @@ class PickerPageUi(override val ctx: Context, val theme: Theme, private val dens
128
128
// not last row, align bottom to top of first view in next row
129
129
bottomToTopOf(keyViews[(row + 1 ) * columnCount])
130
130
}
131
- // layout_constraintEnd_to
131
+ // layout_constraintRight_to
132
132
if (i == keyViews.size - 1 ) {
133
133
// last key (likely not last column), align end to start of backspace button
134
- endToStartOf (backspaceKey)
134
+ rightToLeftOf (backspaceKey)
135
135
} else if (column == columnCount - 1 ) {
136
136
// last column, align end to end of parent
137
- endOfParent ()
137
+ rightOfParent ()
138
138
} else {
139
139
// neither, align end to start of next view
140
- endToStartOf (keyViews[i + 1 ])
140
+ rightToLeftOf (keyViews[i + 1 ])
141
141
}
142
142
matchConstraintPercentWidth = keyWidth
143
143
})
@@ -165,13 +165,13 @@ class PickerPageUi(override val ctx: Context, val theme: Theme, private val dens
165
165
// not last row, align bottom to top of first view in next row
166
166
bottomToTopOf(keyViews[(row + 1 ) * columnCount])
167
167
}
168
- // layout_constraintStart_to
168
+ // layout_constraintLeft_to
169
169
if (column == 0 ) {
170
170
// first column, align start to start of parent
171
- startOfParent ()
171
+ leftOfParent ()
172
172
} else {
173
173
// not first column, align start to end of last column
174
- startToEndOf (keyViews[i - 1 ])
174
+ leftToRightOf (keyViews[i - 1 ])
175
175
}
176
176
matchConstraintPercentWidth = keyWidth
177
177
})
@@ -184,7 +184,7 @@ class PickerPageUi(override val ctx: Context, val theme: Theme, private val dens
184
184
below(keyViews[(rowCount - 2 ) * columnCount])
185
185
// bottom/right corner
186
186
bottomOfParent()
187
- endOfParent ()
187
+ rightOfParent ()
188
188
matchConstraintPercentWidth = 0.15f
189
189
})
190
190
}
0 commit comments