diff options
author | Mindy Pereira <mindyp@google.com> | 2011-07-25 11:51:30 -0700 |
---|---|---|
committer | Mindy Pereira <mindyp@google.com> | 2011-07-25 14:47:16 -0700 |
commit | c0f97e4f56bc35d99d181c5f604b26fbb89c113f (patch) | |
tree | 6352cc14fcdbd62c2e08903aff43d6b181787cf6 /chips/res | |
parent | 008d3b2afd2a11eaa67cf38fd1defb54edc4286f (diff) | |
download | android_frameworks_ex-c0f97e4f56bc35d99d181c5f604b26fbb89c113f.tar.gz android_frameworks_ex-c0f97e4f56bc35d99d181c5f604b26fbb89c113f.tar.bz2 android_frameworks_ex-c0f97e4f56bc35d99d181c5f604b26fbb89c113f.zip |
Make more chip, dropdown match pixel perfects.
1) the destination type should be uppercase; there is not
textview style to do this
2) fix the heights of the dropdown items to be 48dip
3) text for more says "NUMBER more..." and is styled
Change-Id: I8a391bbd3703c1ccd1415b78d5e843107b1d2095
Diffstat (limited to 'chips/res')
-rw-r--r-- | chips/res/layout/chips_recipient_dropdown_item.xml | 7 | ||||
-rw-r--r-- | chips/res/layout/more_item.xml | 25 | ||||
-rw-r--r-- | chips/res/values/strings.xml | 2 |
3 files changed, 30 insertions, 4 deletions
diff --git a/chips/res/layout/chips_recipient_dropdown_item.xml b/chips/res/layout/chips_recipient_dropdown_item.xml index 2fb16c2..9a53b68 100644 --- a/chips/res/layout/chips_recipient_dropdown_item.xml +++ b/chips/res/layout/chips_recipient_dropdown_item.xml @@ -17,13 +17,14 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="48dip" android:orientation="horizontal" android:gravity="center_vertical" android:background="@drawable/list_item_background"> <LinearLayout android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="match_parent" + android:gravity="center_vertical" android:orientation="vertical" android:layout_weight="1"> <TextView android:id="@android:id/title" @@ -46,7 +47,7 @@ </LinearLayout> <LinearLayout android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:orientation="horizontal" android:gravity="center_vertical|right"> <TextView diff --git a/chips/res/layout/more_item.xml b/chips/res/layout/more_item.xml new file mode 100644 index 0000000..20693d6 --- /dev/null +++ b/chips/res/layout/more_item.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/text1" + android:textColor="#aaaaaa" + android:textSize="18sp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/more_string" + android:paddingLeft="8dip" + android:paddingRight="8dip" + />
\ No newline at end of file diff --git a/chips/res/values/strings.xml b/chips/res/values/strings.xml index 3ae1d20..514615c 100644 --- a/chips/res/values/strings.xml +++ b/chips/res/values/strings.xml @@ -15,7 +15,7 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- Text displayed when the recipientedittextview is not focused. Displays the total number of recipients since the field is shrunk to just display a portion --> - <string name="more_string">\u002B <xliff:g id="count">%1$s</xliff:g> more</string> + <string name="more_string"><xliff:g id="count">%1$s</xliff:g> more...</string> <!-- Text displayed when there are remote directories not returning results. [CHAR LIMIT=50] --> |