Your problems is not on the java because the src just called the xml layout. Setting at xml layout(left or right, top or bottom) if you can't manually just drag and drop at tab "graphical layout" >> if you using eclipse to program android application
here is the code of the xml layout: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ListView android:id="@android:id/list" android:layout_width="100dp" android:layout_height="100dp" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_marginLeft="80dp" > </ListView> </RelativeLayout> and it is worked. try this, i have it testing on emulator and my device and it is working normally note: if you insist set the align right at 100 dp you have to change like this: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ListView android:id="@android:id/list" android:layout_width="100dp" android:layout_height="100dp" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" > </ListView> </RelativeLayout> because measure align right or left at 100dp is the same for align center. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en