Status Update
Comments
ar...@google.com <ar...@google.com>
di...@google.com <di...@google.com> #2
This is caused by the scrollable components. When selecting them in the XML editor, the Layout Editor will center them making them visible. Since the scrollable area is very large, the component ends up being small. This is working as intended by I can see how it can be frustrating.
Passing it to our UX team to discuss a few alternatives.
Donna, we could handle this cases in a few different ways:
- Add an option to disable this behaviour of auto centering
- Limiting the zoom out to a more reasonable level
- Only take into account the visible surface of the components
Any suggestions on how we should handle this?
do...@google.com <do...@google.com> #3
Thanks for sharing your feedback Mark.
Diego, I think we should use the interaction described
A nice-to-have would be to add a "zoom to selection" option in the right-click menu
di...@google.com <di...@google.com>
ah...@dubizzlelabs.com <ah...@dubizzlelabs.com> #4
```
Android Studio Hedgehog | 2023.1.1 Patch 2
Build #AI-231.9392.1.2311.11330709, built on January 19, 2024
Runtime version: 17.0.7+0-17.0.7b1000.6-10550314 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.3
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 10
Metal Rendering is ON
```
Description
####################################################
Please provide all of the following information, otherwise we may not be able to route your bug report.
####################################################
1. Describe the bug or issue that you're seeing.
When clicking around in my XML layout file, the XML design preview (split pane on the right) resets the size of the preview to be very small. I would expect that only the focus in the design preview would change and the size of the preview would not change.
2. Attach log files from Android Studio
2A. In the IDE, select the Help..Collect Logs and Diagnostic Data menu option.
2B. Create a diagnostic report and save it to your local computer.
2C. Attach the report to this bug using the Add attachments button.
3. If you know what they are, write the steps to reproduce:
3A. Download Android Studio Giraffe | 2022.3.1
3B. Select any emulator for the design preview (e.g., Pixel 5 API Tiramisu)
3C. Select API level 33 for the design preview
3D. Select any layout file that has nested view elements and click around the layout file at various levels.
Example layout file nesting structure:
ConstraintLayout
>SwipeRefreshLayout
>>NestedScrollView
>>>ConstraintLayout
In addition to logs, please attach a screenshot or recording that illustrates the problem.
For more information on how to get your bug routed quickly, see
Build: AI-223.8836.35.2231.10406996, 202306282337
AI-223.8836.35.2231.10406996, JRE 17.0.6+0-17.0.6b829.9-10027231x64 JetBrains s.r.o., OS Mac OS X(aarch64) v12.6.1, screens 3456.0x2234.0, 1920.0x1080.0
AS: Giraffe | 2022.3.1
Kotlin plugin: 223-1.8.0-release-345-AS8836.35.2231.10406996
Android Gradle Plugin: 8.0.2
Gradle: 8.0
Gradle JDK: JetBrains Runtime version 17.0.6
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
```