From d4f14d07faa3a9613067a8f5e9a98952be77e257 Mon Sep 17 00:00:00 2001
From: "Tadashi G. Takaoka" <takaoka@google.com>
Date: Thu, 14 Apr 2011 17:48:25 +0900
Subject: [PATCH] Fix 1st suggestion text alignment

Change-Id: I530de62b7cf088cff01c98a8a47d75393e8725b2
---
 java/res/layout-xlarge/candidates.xml | 7 ++++---
 java/res/layout/candidates.xml        | 5 +++--
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/java/res/layout-xlarge/candidates.xml b/java/res/layout-xlarge/candidates.xml
index 9d6cd241c..096a0adf1 100644
--- a/java/res/layout-xlarge/candidates.xml
+++ b/java/res/layout-xlarge/candidates.xml
@@ -32,14 +32,14 @@
     <LinearLayout
         android:orientation="horizontal"
         android:layout_width="match_parent"
-        android:layout_height="@dimen/candidate_strip_height"
+        android:layout_height="wrap_content"
         android:background="@drawable/keyboard_suggest_strip_holo"
         android:paddingRight="@dimen/candidate_strip_padding"
         android:paddingLeft="@dimen/candidate_strip_padding"
     >
         <HorizontalScrollView
             android:layout_width="match_parent"
-            android:layout_height="match_parent"
+            android:layout_height="wrap_content"
             android:fadingEdge="horizontal"
             android:fadingEdgeLength="@dimen/candidate_strip_fading_edge_length"
             android:scrollbars="none"
@@ -47,7 +47,8 @@
             <com.android.inputmethod.latin.CandidateView
                 android:id="@+id/candidates"
                 android:layout_width="match_parent"
-                android:layout_height="match_parent" />
+                android:layout_height="@dimen/candidate_strip_height"
+                android:gravity="center_vertical" />
         </HorizontalScrollView>
     </LinearLayout>
 </LinearLayout>
diff --git a/java/res/layout/candidates.xml b/java/res/layout/candidates.xml
index 39e39a1b7..3d91c1d20 100644
--- a/java/res/layout/candidates.xml
+++ b/java/res/layout/candidates.xml
@@ -30,7 +30,7 @@
 >
     <HorizontalScrollView
         android:layout_width="match_parent"
-        android:layout_height="@dimen/candidate_strip_height"
+        android:layout_height="wrap_content"
         android:background="@drawable/keyboard_suggest_strip"
         android:fadingEdge="horizontal"
         android:fadingEdgeLength="@dimen/candidate_strip_fading_edge_length"
@@ -39,6 +39,7 @@
         <com.android.inputmethod.latin.CandidateView
             android:id="@+id/candidates"
             android:layout_width="match_parent"
-            android:layout_height="match_parent" />
+            android:layout_height="@dimen/candidate_strip_height"
+            android:gravity="center_vertical" />
     </HorizontalScrollView>
 </LinearLayout>