Skip to content Skip to sidebar Skip to footer

Wysiwyg View Editor In 'android'?

Duplicate: Is there any form designer available for Google Android? I would like to move a CheckBox, so it displays in a different location than the top-left corner under Absolut

Solution 1:

I recommend using a RelativeLayout. You can position your checkbox in relation to other views or the parent view, for example if you want to position it on the right hand side and below a TextView, you could use something like

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

Also have a look at droiddraw.org but I recommend writing the code yourself as it speeds up the process if you ever need to edit/re-use.

For more info on RelativeLayout look at http://d.android.com/reference/android/widget/RelativeLayout.html

Solution 2:

The Android plugin in Eclipse has a WYSIWYG editor, just open on the layout xml file. However I'm guessing you already know this and want instead to know how to do absolute positioning in a visual editor. The short answer is "no", because Android screens come in lots of different shapes and sizes, unlike (for now) the iPhone.

Post a Comment for "Wysiwyg View Editor In 'android'?"