Thanks ,Megha Joshi. I give it a try.

[EMAIL PROTECTED]
2008年9月17日 
----- Original Message ----- 
From: Megha Joshi 
To: android-developers 
Sent: 2008-09-17, 12:56:32
Subject: [android-developers] Re: How to set Gallery align property?


Sorry I read center instead of left earlier...its seems android:gravity and 
android:layout_gravity don't have much effect to get the effect you are trying 
to get.
However setting android:scrollX = 100dp, achieves the desired effect, ie. moves 
the first gallery item towards the left end.


2008/9/16 dailyLife <[EMAIL PROTECTED]>

My Style is below. Is  right?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
 android:orientation="vertical" android:layout_width="fill_parent"
 android:layout_height="fill_parent">
 <ListView android:id="@+id/hall_weatherListView"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content" android:text="@string/weather"
  android:paddingTop="6dip" android:paddingBottom="2dip"
  android:paddingLeft="3dp" android:paddingRight="3dp"
  android:gravity="center" />
 <Gallery android:id="@+id/hall_modelGallery"
  android:layout_width="fill_parent" android:paddingTop="1dip"
  android:paddingBottom="1dip" android:paddingLeft="10dp"
  android:paddingRight="10dp" android:layout_gravity="left"
  android:layout_height="wrap_content" android:gravity="left" />
 <ListView android:id="@+id/hall_hotMessage"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content" android:paddingTop="6dip"
  android:paddingBottom="3dip" android:paddingLeft="3dp"
  android:paddingRight="3dp" android:text="@string/hot_message" />
 <ListView android:id="@+id/hall_belowMessage"
  android:layout_width="fill_parent" android:paddingTop="6dip"
  android:paddingBottom="3dip" android:paddingLeft="3dp"
  android:paddingRight="3dp" android:layout_height="wrap_content"
  android:text="@string/below_message" />
</LinearLayout>


[EMAIL PROTECTED]
2008年9月17日 
----- Original Message ----- 
From: Megha Joshi 
To: android-developers 
Sent: 2008-09-17, 05:41:20
Subject: [android-developers] Re: How to set Gallery align property?



Are you setting android:layout_gravity = "center_horizontal" for your Gallery 
view?


2008/9/16 dailyLife <[EMAIL PROTECTED]>

Hi,All.
  When l set the Gallery align left,But Result is also in center.please look at 
the E-mail attachments.
  I will be obliged by your help.
Thanks.
Goto














--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to