每次更改时,Android Studio 设计屏幕都会滚动到顶部

标签 android android-studio

我是约束布局的新手。
我在 ScrollView 中有约束布局。当我设计屏幕底部时(所以我看不到屏幕顶部),每次更改(移动 ImageView )时, ScrollView 都会滚动到顶部。
所以我回到屏幕底部,一次又一次地继续设计。

也许工作室渲染 View 并重置,但这使设计变得困难。

这是视频:https://www.youtube.com/watch?v=9zZQBqPmMew&feature=youtu.be

最佳答案

自定义尺寸,如第一张图片所示
然后只需调整大小,如第二张图片所示
然后你完成了:)
enter image description here
enter image description here

关于每次更改时,Android Studio 设计屏幕都会滚动到顶部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50654789/

相关文章:

android - 如何在 android studio 中启用版本控制窗口

android - 即使清理项目后,R 也无法解析为变量

android - 更改移动应用程序的主屏幕位置

android - 减少ImageView

android gradle 错误 : Can't register given path of type 'SOURCE' because it's out of content root

android - 如何使用 Play Store 和硬件加速创建虚拟设备?

Android - 更改 compileSdkVersion 会导致错误

java - 如何在编辑文本聚焦时显示软键盘

Android 两个按钮并排放入表格行

android - Android Studio新建项目后报错