diff options
author | Katherine Kuan <katherinekuan@google.com> | 2011-07-09 17:36:26 -0700 |
---|---|---|
committer | Katherine Kuan <katherinekuan@google.com> | 2011-08-26 20:04:00 -0700 |
commit | 37bddc2fa266fa0378fcd85ac5047b1fb0af2dc0 (patch) | |
tree | 68f35cd5f7730e10aa17fea4d3be6169fd98569f /res/values-w470dp | |
parent | 3fe0cee4e2106dafd601bbd670d44cf3cb4fee60 (diff) | |
download | packages_apps_Contacts-37bddc2fa266fa0378fcd85ac5047b1fb0af2dc0.tar.gz packages_apps_Contacts-37bddc2fa266fa0378fcd85ac5047b1fb0af2dc0.tar.bz2 packages_apps_Contacts-37bddc2fa266fa0378fcd85ac5047b1fb0af2dc0.zip |
Add contact detail to existing contact
- Works for phone numbers and email addresses, otherwise route
intent to full contact editor
- Contact card icon / "OK" button first saves the change and then goes
to the contact card
- Port over from GB branch, updated references to non-existent classes,
added new layout to look more like QuickContacts/contact tile,
applied to ContactSelectionActivity instead of contacts list,
added support for non-editable contacts, fix layout for phone
landscape and tablet, inflate the right editor layout based on the
DataKind instead of emedding a TextFieldEditorView
directly inside the XML, use AsyncTask instead of WeakAsyncTask
- Fixed NonPhoneActivity intent flags so that the activity results
will work correctly (will allow contact card to be launched if user
requested to do so and the cancel button in the ConfirmAddDetailActivity
returns the user to the picker)
- Fixed activity theme for NonPhoneActivity to not show a title bar
- For a contact made up of multiple raw contacts, find the first
editable contact to add it to (instead of always picking the first one
which could be non-editable).
Bug: 4295003
Change-Id: I111eaf6bbc78861c2b6a27c93086d00697869ebb
Diffstat (limited to 'res/values-w470dp')
-rw-r--r-- | res/values-w470dp/styles.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/res/values-w470dp/styles.xml b/res/values-w470dp/styles.xml new file mode 100644 index 000000000..dab78028a --- /dev/null +++ b/res/values-w470dp/styles.xml @@ -0,0 +1,27 @@ +<?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> + <style name="ConfirmAddDetailViewStyle"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">match_parent</item> + </style> + + <style name="ConfirmAddDetailHeaderViewStyle"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">0dip</item> + <item name="android:layout_weight">1</item> + </style> +</resources> |