changing cordinates button and edittext at xml file

-ICEBOX-

New Member
I am new at XML and trying to develop an android XML file. The problem here is that I can't move a button from somewhere else. Or an edittext neither, although I tried \[code\]android:layout_x="50dp"\[/code\] or \[code\]android:layout_y="50dp"\[/code\]. How can I move this button and edittext to somewhere else? \[code\] <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="@drawable/yeni"> <EditText android:id="@+id/editText1" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:text=""> </EditText> <Button android:id="@+id/button1" android:layout_width="100dp" android:layout_height="wrap_content" android:layout_x="50dp" android:layout_y="50dp" android:text="YAP" /> </LinearLayout>\[/code\]
 
Back
Top