WYSIWYG View Editor in "Android"?

Duplicate : Is there any form builder available for Google Android?

I would like to move the CheckBox, so it appears in a different place than in the upper left corner under Absolute layout inside main.xml, for Android. I use Eclipse to edit my views. How can I do it?

On the iPhone, they have a tool called Interface builder that allows you to move things in WYIWYG style. Does Eclipse have similar functionality?

+5
source share
2 answers

I recommend using RelativeLayout. You can put your flag in relation to other views or the parent view, for example, if you want to put it on the right side and under the TextView, you can use something like

<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:id="@+id/textview" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Text" /> <CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_below="@+id/textview" /> </RelativeLayout> 

Also look at droiddraw.org, but I recommend writing the code yourself, as it speeds up the process if you ever need to edit / reuse.

For more information about RelativeLayout, see http://d.android.com/reference/android/widget/RelativeLayout.html

+1
source

The Eclipse Android plugin has a WYSIWYG editor that opens only in the layout XML file. However, I assume that you already know this and want to know instead how to do absolute positioning in a visual editor. The short answer is no, because Android screens come in different shapes and sizes, unlike the iPhone.

+1
source

All Articles