Is it possible to scroll a ScrollView with a ConstraintLayout in Blueprint Mode?

不羁岁月 提交于 2019-12-01 16:03:13

In android studio 2.2 update, it includes scrolling in design and blueprint mode by default. click on design mode in the preview pane and try to scroll your screen it will start scrolling. There is another option of blueprint in that mode it shows you the blueprint of the design and by doing same for this will help you scroll in blueprint mode also.

Samin Ali Mondal

Put the Scroll view outside of the Constraint layout. Then use this [Red mark] to drag the view and it will make a custom device editor to you. When you have done, change back to the device editor [Beside rotation icon]...

In latest android studio 2.2.2 version with constraint-layout:1.0.0-beta1 you can scroll blueprint

for better working, after updating constraint-layout please restart android studio (invalidate caches)

Nicolas Roard

Not yet.

Maybe try to have a separate file to edit the content instead, and use an include in the file where you have the ScrollView?

As of ConstraintLayout 1.0.1 scrolling scrolls the constraints. Meaning it is possible to scroll a ConstraintLayout in blueprint mode and it functions as expected. It works at Android Studio 2.3.2 and up (I haven't older versions).

Now when scrolling, both the visible view, the border, and constraints move along with the drawn button.

beta1 version has been released. I doubt this is fixed, but check it out.

You can ask for a bugfix for this here: http://tools.android.com/feedback

PS: you are trying to scroll using the mouse scroll wheel, right? hehe just checking... I say that because just recently I figured out I could scroll in the design mode using the mouse wheel.. duhh haha. I never tried in blueprint mode though.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!