summaryrefslogtreecommitdiffstats
path: root/chips/res
diff options
context:
space:
mode:
authorMindy Pereira <mindyp@google.com>2011-08-09 16:49:33 -0700
committerMindy Pereira <mindyp@google.com>2011-08-09 17:05:22 -0700
commitb8208f24b2768acf369ad58309031feac87ce79c (patch)
tree5fbc6341bd3343cbc181fa589b3a400eea8522f6 /chips/res
parent2b3f5af5e43cebe79b60db14b431bbc25c8fe2c1 (diff)
downloadandroid_frameworks_ex-b8208f24b2768acf369ad58309031feac87ce79c.tar.gz
android_frameworks_ex-b8208f24b2768acf369ad58309031feac87ce79c.tar.bz2
android_frameworks_ex-b8208f24b2768acf369ad58309031feac87ce79c.zip
Add ability to copy a single recipient chip.
Fixes b/5143564 implement single chip copy Change-Id: I598a53a60ba29b99637b2d1633b3884811938317
Diffstat (limited to 'chips/res')
-rw-r--r--chips/res/layout/copy_chip_dialog_layout.xml23
-rw-r--r--chips/res/values/attrs.xml1
-rw-r--r--chips/res/values/strings.xml3
3 files changed, 27 insertions, 0 deletions
diff --git a/chips/res/layout/copy_chip_dialog_layout.xml b/chips/res/layout/copy_chip_dialog_layout.xml
new file mode 100644
index 0000000..d5e072d
--- /dev/null
+++ b/chips/res/layout/copy_chip_dialog_layout.xml
@@ -0,0 +1,23 @@
+<?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.
+-->
+
+<Button xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/copy"
+ android:id="@+android:id/button1"
+ android:background="@null"
+ android:layout_gravity="left"/> \ No newline at end of file
diff --git a/chips/res/values/attrs.xml b/chips/res/values/attrs.xml
index d1e3582..ebf6936 100644
--- a/chips/res/values/attrs.xml
+++ b/chips/res/values/attrs.xml
@@ -23,5 +23,6 @@
<add-resource type="color" name="chip_selected" />
<add-resource type="string" name="more_string" />
<add-resource type="string" name="chips_waiting_for_directory_result" />
+ <add-resource type="string" name="copy" />
<add-resource type="style" name="RecipientEditTextView" />
</resources>
diff --git a/chips/res/values/strings.xml b/chips/res/values/strings.xml
index 514615c..c1acaa0 100644
--- a/chips/res/values/strings.xml
+++ b/chips/res/values/strings.xml
@@ -20,4 +20,7 @@
<!-- Text displayed when there are remote directories not returning results.
[CHAR LIMIT=50] -->
<string name="chips_waiting_for_directory_result">Waiting for more contacts</string>
+ <!-- Text displayed when the user long presses on a chip to copy the recipients email address.
+ [CHAR LIMIT=200] -->
+ <string name="copy">Copy email address</string>
</resources>