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

Apps Having trouble with Graphical Layout in Eclipse

I want to move and arrange items like buttons, text view, edit text, radio button, image view as i want but eclipse graphical layout don't let me do this. I dragg a button below radiobuttons but when i release mouse button, it is somewhere else. Is there anyway to do freehand drag & drop like in Visual Studio?

image.png
 
It doesn't work that way. The graphical view is only for the initial creation of the object. Then you switch to text view and write out the values in xml that determine where on the screen your object will be.

For example (android:layout_gravity="center") will center the object in a nested layout or the main layout.

So to answer your question directly, no you cannot drag and drop unless you only have a couple objects like 2 buttons. Anymore objects than that requires writing the xml values instead.

I would recommend switching to Android Studio as google has made it the official app development ide going forward. It's also easier to develop apps in than eclipse.
 
Back
Top Bottom