简体   繁体   中英

ConstraintLayout chain context menu no longer visible in Android Studio

Using Android Studio 3.4 Canary 9 and 10 ConstraintLayout 2.0.0.alpha3

I am having an issue with constraint layout in the bleeding edge build of Android Studio 3.4 canary 9. Basically, when you click on a view in constraint layout, say on a chain element, you should be able to see small icons appear that allow you to perform certain actions on the views.

带有上下文菜单按钮的约束布局

As you can see, under each view are 3 buttons that allow you to change the chain settings. However, this is what I get in my layout editor on 3.4.C09 when clicking on an element in a chain:

3.4.C09 中缺少上下文菜单

Did they get disabled or moved elsewhere? Is this a bug? I have looked everywhere in the IDE without any luck, tried zooming in / zooming out, changing the theme, invalidating caches/restart, clean rebuild etc.

Thank you for any help provided!

UPDATE

Now you should see Circle Chain mode option in right-click menu in Android Studio 3.6.


According to the official response, this function has been removed in AS3.4. But there seems to be no alternative. I have reported this problem to Goole and you can track here .

For now, you can add app:layout_constraintHorizontal_chainStyle attr in xml manually. And after that Cycle chain mode options will appeare in the right-click menu.

It is now available in attributes under layout_constraints . ( AS 3.5 )

在此处输入图片说明

你正试图在单个按钮上连接苹果链...首先通过键盘上的Ctrl选择多个项目,如按钮,然后右键单击鼠标,你会在你的android工作室看到链启用

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM