OSDN Git Service

Fixing language search box size and maximization
authorMihai Nita <mnita@google.com>
Thu, 4 Feb 2016 05:33:37 +0000 (21:33 -0800)
committerMihai Nita <mnita@google.com>
Thu, 4 Feb 2016 05:33:37 +0000 (21:33 -0800)
The search box for the language was entering full screen in
landscape mode, making the search results invisible.
It was also "shifted" to the right, leaving a few characters from
the title visible (ugly), and making the edit area smaller.

This change fixes that behavior, and because we have more space
we can also increase the character limit for the hint string.

Bug: 26944452
Bug: 26944321
Bug: 26957818
Bug: 26732587
Change-Id: Ib5901bd7240ac57b6d39cb4392edccc8d941802d

core/res/res/menu/language_selection_list.xml
core/res/res/values/strings.xml

index 63b9627..377c4fa 100644 (file)
      limitations under the License.
 -->
 
-<menu xmlns:android="http://schemas.android.com/apk/res/android"
-      xmlns:app="http://schemas.android.com/apk/res-auto">
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
     <item
         android:id="@+id/locale_search_menu"
         android:title="@string/locale_search_menu"
-        app:showAsAction="always"
-        app:actionViewClass="android.widget.SearchView" />
+        android:icon="@*android:drawable/ic_search_api_material"
+        android:showAsAction="always|collapseActionView"
+        android:actionViewClass="android.widget.SearchView" />
 
 </menu>
index 523826b..1aa58b7 100644 (file)
     <string name="language_selection_title">Language preference</string>
     <!-- Title for the region selection screen [CHAR LIMIT=25] -->
     <string name="country_selection_title">Region preference</string>
-    <!-- Hint text in a search edit box (used to filter long language / country lists) [CHAR LIMIT=20] -->
+    <!-- Hint text in a search edit box (used to filter long language / country lists) [CHAR LIMIT=25] -->
     <string name="search_language_hint">Type language name</string>
 
     <!-- List section subheader for the language picker, containing a list of suggested languages determined by the default region [CHAR LIMIT=30] -->