Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well there is no better xml gui editor for android for now. IntelliJ Idea 10.5 doesnot even have screen preview only xml editor.</p> <p>Now the trick to use the screen gui editor and xml editor. You start with basic gui editing by screen editor that comes with ADT and then to fine tune either use properties or raw xml editor.</p> <p>As per what you want for above problem. Here is the soln:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;RadioButton android:id="@+id/radioButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentTop="true" /&gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_toLeftOf="@+id/radioButton" android:text="TextView" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>For creating this i didnot edit the xml file myself. I just used the gui screen editor that comes with ADT. Here are the steps</p> <ul> <li>I created the xml with Relative layout via wizard that is also part of ADT.</li> <li>Added <code>RadioButton</code> from left pane and dragged it towards the right edge of the screen till i can see two green anchor points appear and in the yellow info appeared stating the properties for alignment.</li> <li>Then I added <code>TextView</code> and drag towards the left till I see green anchor points.</li> <li>Then I dragged the right edge of <code>TextView</code> towards the <code>RadioButton</code> till I see green anchor and the correct <code>layout_toLeftOf</code> property in the yellow info box.</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload