From 5e112e83cb52fcae455acef313e4309bb536911d Mon Sep 17 00:00:00 2001 From: Sriram Ramasubramanian Date: Thu, 14 Jun 2012 12:12:18 -0700 Subject: [PATCH] Bug 764638: Find in page can better use LinearLayout. [r=margaret] --HG-- extra : rebase_source : d1d0527d408ce8b36bbe7c0799fe4020c34047fb --- mobile/android/base/FindInPageBar.java | 5 ++-- .../resources/layout/find_in_page_content.xml | 24 +++++++------------ .../android/base/resources/values/styles.xml | 2 +- 3 files changed, 12 insertions(+), 19 deletions(-) diff --git a/mobile/android/base/FindInPageBar.java b/mobile/android/base/FindInPageBar.java index d3273501e85..2580bf8d9cf 100644 --- a/mobile/android/base/FindInPageBar.java +++ b/mobile/android/base/FindInPageBar.java @@ -13,10 +13,9 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; -import android.widget.RelativeLayout; -import android.widget.RelativeLayout.LayoutParams; +import android.widget.LinearLayout; -public class FindInPageBar extends RelativeLayout implements TextWatcher, View.OnClickListener { +public class FindInPageBar extends LinearLayout implements TextWatcher, View.OnClickListener { private static final String LOGTAG = "GeckoFindInPagePopup"; private final Context mContext; diff --git a/mobile/android/base/resources/layout/find_in_page_content.xml b/mobile/android/base/resources/layout/find_in_page_content.xml index 1ef3d1486df..b6c08574706 100644 --- a/mobile/android/base/resources/layout/find_in_page_content.xml +++ b/mobile/android/base/resources/layout/find_in_page_content.xml @@ -2,42 +2,36 @@ + android:gravity="center_vertical|left"/> + android:src="@drawable/find_prev"/> + android:src="@drawable/find_next"/> + android:src="@drawable/find_close"/> diff --git a/mobile/android/base/resources/values/styles.xml b/mobile/android/base/resources/values/styles.xml index c3067fe9755..6d9feca9dc5 100644 --- a/mobile/android/base/resources/values/styles.xml +++ b/mobile/android/base/resources/values/styles.xml @@ -124,7 +124,7 @@ 5dip fitCenter true - @android:color/transparent + @drawable/action_bar_button