First option (entire list view on the right, with 100dp right margin). 在 2012年7月24日星期二UTC+8下午8时50分29秒,MagouyaWare写道: > > Hi Lim, > > I have done many list views so I'm sure I can help, but from the way you > phrased your question I don't fully understand what you are trying to > accomplish: > > 1. Move the entire list view over to the right, with a space of 100dp > on the left? > 2. Right-align the text of each list view item? > 3. Put a space of 100dp to the left of the text in each list view item? > 4. Some combination of the above? > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > On Tue, Jul 24, 2012 at 6:18 AM, 泰前 林 <thyech...@gmail.com> wrote: > >> 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 >> > >
-- 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