Cannot drag and drop views in the Designer UI layout
Issue Checklist
- [X] I confirm that this issue is not a duplicate and hasn't been reported before.
- [X] I agree to follow the project's code of conduct.
- [X] I have checked and verified that I am using the latest version of AndroidIDE from GitHub or F-Droid.
Additional terms
- [X] I understand that providing incomplete or inaccurate information may result in the issue being closed.
- [X] I agree to provide all requested details promptly for a comprehensive bug report.
Issue explanation
When I go to the "activity_main.xml" and open the preview mode, and when I drag and drop the widgets onto the layout, it doesn't get added at all! I don't know how to fix it please help 😭
Expected behavior
Version name
I am currently using the Android-IDE version 2.6.1-beta
Download source
GitHub
Relevant log output
No response
I figured out why the preview mode doesn't work (i.e., I can't drag and drop the UI elements)! It's because maybe I have used Constraint Layout as the parent layout, and not Linear Layout!
Because when I tried Linear Layout as the parent, the preview mode worked fine! And I was able to drag and drop the UI elements correctly!😃
I think and also make a humble request to the developers of Android IDE that they must make the preview mode work for constraint layout and Jetpack Compose in it's future update! As it's really creating a problem when I want to just preview the app without building and running, specifically for constraint layout and Jetpack Compose projects.