diff options
author | Mindy Pereira <mindyp@google.com> | 2011-06-06 11:08:17 -0700 |
---|---|---|
committer | Mindy Pereira <mindyp@google.com> | 2011-06-06 17:36:35 -0700 |
commit | 4e1f6098a731be3d0be1f9e02a1fa2677e4de187 (patch) | |
tree | decfbaacbbabea33ff49bf0a8a7b6583a87799c5 /chips/res | |
parent | c55843a69549bcac0380211335530a99ba677049 (diff) | |
download | android_frameworks_ex-4e1f6098a731be3d0be1f9e02a1fa2677e4de187.tar.gz android_frameworks_ex-4e1f6098a731be3d0be1f9e02a1fa2677e4de187.tar.bz2 android_frameworks_ex-4e1f6098a731be3d0be1f9e02a1fa2677e4de187.zip |
When the recipientedittextfield is not focused, shrink it.
When focus is list, the field should only display X recipient chips,
where X is currently 2 lines worth with X+ more text at the end.
Change-Id: Iea73d5d3682e4b8cd3adf4a671271cca4ab3c1f2
Diffstat (limited to 'chips/res')
-rw-r--r-- | chips/res/values/attrs.xml | 1 | ||||
-rw-r--r-- | chips/res/values/strings.xml | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/chips/res/values/attrs.xml b/chips/res/values/attrs.xml index 3bc0b04..b51c6df 100644 --- a/chips/res/values/attrs.xml +++ b/chips/res/values/attrs.xml @@ -17,4 +17,5 @@ <resources> <add-resource type="dimen" name="chip_padding"></add-resource> <add-resource type="color" name="default_chip_background"></add-resource> + <add-resource type="string" name="more_string"></add-resource> </resources>
\ No newline at end of file diff --git a/chips/res/values/strings.xml b/chips/res/values/strings.xml new file mode 100644 index 0000000..f83ebb4 --- /dev/null +++ b/chips/res/values/strings.xml @@ -0,0 +1,19 @@ +<?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. +--> +<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> +</resources> |