https://kotlinlang.org logo
#android
Title
# android
k

krtko

06/16/2017, 7:13 PM
which really ruins my layouts
n

nawar

06/16/2017, 7:21 PM
krtko: do you have Autoconnect turned on? It might be the culprit.
k

krtko

06/16/2017, 7:23 PM
Nope that is off
Its very odd, it keeps changing a layout_width from a xml dimension to a specific DP
b

brianwernick

06/16/2017, 7:25 PM
Yeah, I’ve been having the same issue in 2.3 and 3.0. I’ve noticed that it usually only happens when i mouse over the preview; so I just close the preview and it’s OK
k

krtko

06/16/2017, 7:27 PM
Ya
Personally I would like to have the preview pane open
b

brianwernick

06/16/2017, 7:29 PM
Oh, I completely agree. But until it’s fixed having it closed is about the only way I can work with constraint layouts 😞
k

krtko

06/16/2017, 7:30 PM
Yes its kinda dangerous
Huh does your layouts have match_parent at all?
its seems like if one view uses match_parent it messes it up all the other views as well
Match_parent doesn’t’ seem to be supported by constraint layout
that kinda sucks
b

brianwernick

06/16/2017, 7:37 PM
Yeah, you need to do the
0dp
and
app:layout_constraintLeft_toLeftOf="parent"
and the same with the right for width matching. It would be nice to have match_parent abided by
k

krtko

06/16/2017, 7:44 PM
Yea I need a view to be the size of the parent
but translated up 50%
I think I can do that with Guidelines tho