summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorBrian Attwell <brianattwell@google.com>2014-06-27 14:16:09 -0700
committerBrian Attwell <brianattwell@google.com>2014-06-27 14:31:18 -0700
commit5a4c59db3fd96d6b1478dc4fe2ca9ac2924d854a (patch)
tree3eba5fcc5fe186c3b1b4d97d6a470ace644defd1 /res
parent2eb3ed2fe177f6adecabbf8052e36e7849a8c4aa (diff)
downloadpackages_apps_Contacts-5a4c59db3fd96d6b1478dc4fe2ca9ac2924d854a.tar.gz
packages_apps_Contacts-5a4c59db3fd96d6b1478dc4fe2ca9ac2924d854a.tar.bz2
packages_apps_Contacts-5a4c59db3fd96d6b1478dc4fe2ca9ac2924d854a.zip
ContactEditorActivity title styling
Change-Id: Ib42eb4c4e310d4cec1a795c08741b7d8f5b15995
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/ic_done_wht_24dp.pngbin0 -> 341 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_done_holo_dark.pngbin1030 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_done_holo_light.pngbin1093 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_done_wht_24dp.pngbin0 -> 295 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_done_holo_dark.pngbin694 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_done_holo_light.pngbin808 -> 0 bytes
-rw-r--r--res/drawable-xhdpi/ic_done_wht_24dp.pngbin0 -> 402 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_done_holo_dark.pngbin1306 -> 0 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_done_holo_light.pngbin1481 -> 0 bytes
-rw-r--r--res/drawable-xxhdpi/ic_done_wht_24dp.pngbin0 -> 449 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_done_holo_dark.pngbin2063 -> 0 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_done_holo_light.pngbin1964 -> 0 bytes
-rw-r--r--res/drawable-xxxhdpi/ic_done_wht_24dp.pngbin0 -> 636 bytes
-rw-r--r--res/layout/editor_custom_action_bar.xml68
-rw-r--r--res/values/strings.xml10
15 files changed, 34 insertions, 44 deletions
diff --git a/res/drawable-hdpi/ic_done_wht_24dp.png b/res/drawable-hdpi/ic_done_wht_24dp.png
new file mode 100644
index 000000000..12ce8e0de
--- /dev/null
+++ b/res/drawable-hdpi/ic_done_wht_24dp.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_done_holo_dark.png b/res/drawable-hdpi/ic_menu_done_holo_dark.png
deleted file mode 100644
index 750c77ef9..000000000
--- a/res/drawable-hdpi/ic_menu_done_holo_dark.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_done_holo_light.png b/res/drawable-hdpi/ic_menu_done_holo_light.png
deleted file mode 100644
index 2c074769c..000000000
--- a/res/drawable-hdpi/ic_menu_done_holo_light.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_done_wht_24dp.png b/res/drawable-mdpi/ic_done_wht_24dp.png
new file mode 100644
index 000000000..103271163
--- /dev/null
+++ b/res/drawable-mdpi/ic_done_wht_24dp.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_done_holo_dark.png b/res/drawable-mdpi/ic_menu_done_holo_dark.png
deleted file mode 100644
index 7ec8c8f5c..000000000
--- a/res/drawable-mdpi/ic_menu_done_holo_dark.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_done_holo_light.png b/res/drawable-mdpi/ic_menu_done_holo_light.png
deleted file mode 100644
index d18b7834b..000000000
--- a/res/drawable-mdpi/ic_menu_done_holo_light.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/ic_done_wht_24dp.png b/res/drawable-xhdpi/ic_done_wht_24dp.png
new file mode 100644
index 000000000..e34b73e55
--- /dev/null
+++ b/res/drawable-xhdpi/ic_done_wht_24dp.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_done_holo_dark.png b/res/drawable-xhdpi/ic_menu_done_holo_dark.png
deleted file mode 100644
index b9af04a85..000000000
--- a/res/drawable-xhdpi/ic_menu_done_holo_dark.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_done_holo_light.png b/res/drawable-xhdpi/ic_menu_done_holo_light.png
deleted file mode 100644
index 7cde3e5c3..000000000
--- a/res/drawable-xhdpi/ic_menu_done_holo_light.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_done_wht_24dp.png b/res/drawable-xxhdpi/ic_done_wht_24dp.png
new file mode 100644
index 000000000..4c6a653ff
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_done_wht_24dp.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_done_holo_dark.png b/res/drawable-xxhdpi/ic_menu_done_holo_dark.png
deleted file mode 100644
index 7f6919ce4..000000000
--- a/res/drawable-xxhdpi/ic_menu_done_holo_dark.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_done_holo_light.png b/res/drawable-xxhdpi/ic_menu_done_holo_light.png
deleted file mode 100644
index 9a6f44888..000000000
--- a/res/drawable-xxhdpi/ic_menu_done_holo_light.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xxxhdpi/ic_done_wht_24dp.png b/res/drawable-xxxhdpi/ic_done_wht_24dp.png
new file mode 100644
index 000000000..2e366842a
--- /dev/null
+++ b/res/drawable-xxxhdpi/ic_done_wht_24dp.png
Binary files differ
diff --git a/res/layout/editor_custom_action_bar.xml b/res/layout/editor_custom_action_bar.xml
index af7b738bc..7a31b92ef 100644
--- a/res/layout/editor_custom_action_bar.xml
+++ b/res/layout/editor_custom_action_bar.xml
@@ -14,52 +14,32 @@
limitations under the License.
-->
-<FrameLayout
+<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:layout_height="match_parent"
+ android:orientation="horizontal">
- <LinearLayout
+ <ImageView
android:id="@+id/save_menu_item"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:divider="?android:attr/dividerVertical"
- android:showDividers="end"
- android:dividerPadding="12dip"
- android:orientation="horizontal"
android:focusable="true"
- android:clickable="true">
-
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:orientation="horizontal"
- android:duplicateParentState="true"
- style="?android:attr/actionButtonStyle">
-
- <ImageView
- android:id="@+id/icon"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginRight="8dip"
- android:layout_marginEnd="8dip"
- android:src="@drawable/ic_menu_done_holo_light"
- android:description="@string/menu_done" />
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginRight="20dip"
- android:layout_marginEnd="20dip"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:textColor="@color/actionbar_text_color"
- android:text="@string/menu_done"
- style="@android:style/Widget.Holo.ActionBar.TabText" />
-
- </LinearLayout>
-
- </LinearLayout>
-
-</FrameLayout> \ No newline at end of file
+ android:clickable="true"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:layout_marginEnd="8dip"
+ android:src="@drawable/ic_done_wht_24dp"
+ style="?android:attr/actionButtonStyle"
+ android:description="@string/menu_done" />
+
+ <TextView
+ android:id="@+id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="@color/actionbar_text_color"
+ android:text="@string/menu_done"
+ style="@android:style/TextAppearance.Material.Widget.ActionBar.Title" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 434a62b19..643e67446 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -626,6 +626,16 @@
<!-- Message in the contact editor prompt that asks the user which account they want to save the newly created contact to. [CHAR LIMIT=NONE] -->
<string name="contact_editor_prompt_multiple_accounts">You can synchronize your new contact with one of the following accounts. Which do you want to use?</string>
+ <!-- Title of the ContactEditorActivity when creating a new contact. The char
+ limit is short and cannot be increased, since this needs to be displayed in a single line
+ at a pre-determined text size. [CHAR LIMIT=20] -->
+ <string name="contact_editor_title_new_contact">Add new contact</string>
+
+ <!-- Title of the ContactEditorActivity when editing a contact that already exists. The char
+ limit is short and cannot be increased, since this needs to be displayed in a single line
+ at a pre-determined text size. [CHAR LIMIT=20] -->
+ <string name="contact_editor_title_existing_contact">Edit contact</string>
+
<!-- Button label to indicate that the user wants to save the newly created contact locally (instead of backing it up online) [CHAR LIMIT=20] -->
<string name="keep_local">Keep local</string>