Using ConstraintLayout 1.0.2
Let's say we have elements ABC
In RTL it becomes CBA
If C visibility is set to GONE it becomes AB
B has match_constraint width
while A has a fixed width of only 48dp
So B's width will expand to the parent.
It works normally in LTR but when it comes to RTL.
CBA
C is GONE
B is also GONE
A is still present.
_ _ A
Normal
C is GONE LTR
C is GONE RTL
显然,如果您更新到ConstraintLayout的当前1.1.0-beta5,此问题已得到解决。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.