• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

In Android Studio, after dragging elements from the palette to the layout, they fly somewhere

In Android Studio, after dragging elements from the palette to the layout, they fly somewhere to the left and are not drawn to the screen. And this is only in one single project. At the same time, at first everything was fine, and then all the elements "flew" from the screen. You can of course delete this project, there is a simple case study. But imagine if after a month of development this will come out to you. I would like to understand the reason and how to deal with it, why this happened.
XbLwG1W
 

Attachments

  • Screenshot_1.jpg
    Screenshot_1.jpg
    50.4 KB · Views: 67
Here are some potential solutions to try:

  • Try cleaning and rebuilding your project by going to "Build" > "Clean Project" and then "Build" > "Rebuild Project" in Android Studio.
  • Check if there are any errors in your XML layout files. If there are, try fixing them and see if that resolves the issue.
  • Make sure that the elements you are trying to add to the layout have appropriate layout_width and layout_height values set.
  • Try invalidating caches and restarting Android Studio by going to "File" > "Invalidate Caches / Restart"
  • Check the constraints of the elements, it should be properly aligned, if not then adjust it.
  • The issue can also be caused by the version of the Android Studio you are using, and could potentially be fixed by updating to the latest version.
If none of the above solutions work, you may consider creating a new project and copying your code and resources over to it. This way you can rule out any issues with the project configuration as the cause of the problem.
 
Here are some potential solutions to try:

  • Try cleaning and rebuilding your project by going to "Build" > "Clean Project" and then "Build" > "Rebuild Project" in Android Studio.
  • Check if there are any errors in your XML layout files. If there are, try fixing them and see if that resolves the issue.
  • Make sure that the elements you are trying to add to the layout have appropriate layout_width and layout_height values set.
  • Try invalidating caches and restarting Android Studio by going to "File" > "Invalidate Caches / Restart"
  • Check the constraints of the elements, it should be properly aligned, if not then adjust it.
  • The issue can also be caused by the version of the Android Studio you are using, and could potentially be fixed by updating to the latest version.
If none of the above solutions work, you may consider creating a new project and copying your code and resources over to it. This way you can rule out any issues with the project configuration as the cause of the problem.
Thank You! It was real usefull and full request. Next-after-problem day I opened those project and all normal working. By the way I've rebooted the computer and just restarted the studio all of that was useless just day before. The Shaitan mashine!
 
Back
Top Bottom