Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Cannot drag and drop views in the Designer UI layout #1852

Open
5 tasks done
brand7noronha opened this issue Jul 21, 2024 · 1 comment
Open
5 tasks done

Cannot drag and drop views in the Designer UI layout #1852

brand7noronha opened this issue Jul 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@brand7noronha
Copy link

Issue Checklist

  • I confirm that this issue is not a duplicate and hasn't been reported before.
  • I agree to follow the project's code of conduct.
  • I have checked and verified that I am using the latest version of AndroidIDE from GitHub or F-Droid.

Additional terms

  • I understand that providing incomplete or inaccurate information may result in the issue being closed.
  • 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

Screenshot_2024_0721_150111

Version name

I am currently using the Android-IDE version 2.6.1-beta

Download source

GitHub

Relevant log output

No response

@brand7noronha brand7noronha added the bug Something isn't working label Jul 21, 2024
@brand7noronha
Copy link
Author

brand7noronha commented Oct 9, 2024

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant