Align left is not the problem… wanted to align to the right! :) I don't want it to align left (which is the default behavior).
Lim Thye Chean Virtual GS 在 24 Jul, 2012,7:19 PM,bharadwaj <bharath.sm...@gmail.com> 写道: > > > On Tue, Jul 24, 2012 at 12:40 PM, limtc <thyech...@gmail.com> wrote: > This is supposedly a simple question - but I have been testing the whole > morning, searching and test all suggestions, but I can't seem to get it > right. Please help! > > All I wanted is to align the ListView to the right (with 100dp blank space), > and here's my current layout file: > > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" > android:background="@drawable/background" > android:layout_width="fill_parent" > android:layout_height="wrap_content"> > <ListView android:id="@id/android:list" > android:dividerHeight="0dp" > android:layout_marginTop="100dp" > android:layout_marginRight="100dp" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_alignParentRight="true" > > </ListView> > </RelativeLayout> > > I have tried different options, but the text in ListView keep align to the > left! > > -- > > try this add android:layout_marginleft="10dp" in your list view...this will > align it to left... > > 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 > > > -- > 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 -- 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