diff options
author | Erica Chang <echang@cyngn.com> | 2016-01-20 16:20:08 -0800 |
---|---|---|
committer | Richard MacGregor <rmacgregor@cyngn.com> | 2016-03-25 11:42:18 -0700 |
commit | efac5527eb3ba754e5efeb12958d741bad414741 (patch) | |
tree | 3f53294a5be255094e677f41f3dd0d426dfa73cd /res | |
parent | 58ba3f3fa3b352af3db0b342dac0ecd7cb04b4cf (diff) | |
download | android_packages_apps_ContactsCommon-efac5527eb3ba754e5efeb12958d741bad414741.tar.gz android_packages_apps_ContactsCommon-efac5527eb3ba754e5efeb12958d741bad414741.tar.bz2 android_packages_apps_ContactsCommon-efac5527eb3ba754e5efeb12958d741bad414741.zip |
Added plugin resources
Change-Id: Ie2abe95659a80aa1f199ca45e24b7fa5c2020ae7
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/plugin_contact_list_content.xml | 95 | ||||
-rw-r--r-- | res/values/cm_colors.xml | 3 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 6 | ||||
-rw-r--r-- | res/values/dimens.xml | 9 |
4 files changed, 113 insertions, 0 deletions
diff --git a/res/layout/plugin_contact_list_content.xml b/res/layout/plugin_contact_list_content.xml new file mode 100644 index 00000000..74445dd1 --- /dev/null +++ b/res/layout/plugin_contact_list_content.xml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 The CyanogenMod 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. +--> +<!-- android:paddingTop is used instead of android:layout_marginTop. It looks + android:layout_marginTop is ignored when used with <fragment></fragment>, which + only happens in Tablet UI since we rely on ViewPager in Phone UI. + Instead, android:layout_marginTop inside <fragment /> is effective. --> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/pinned_header_list_layout" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?attr/contact_browser_background" > + + <!-- Shown only when an Account filter is set. + - paddingTop should be here to show "shade" effect correctly. --> + <include layout="@layout/account_filter_header" /> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" > + <include layout="@layout/contact_list_card"/> + <view + class="com.android.contacts.common.list.PinnedHeaderListView" + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginLeft="?attr/contact_browser_list_padding_left" + android:layout_marginRight="?attr/contact_browser_list_padding_right" + android:layout_marginStart="?attr/contact_browser_list_padding_left" + android:layout_marginEnd="?attr/contact_browser_list_padding_right" + android:paddingTop="?attr/list_item_padding_top" + android:clipToPadding="false" + android:fastScrollEnabled="true" + android:fadingEdge="none" /> + <TextView + android:id="@android:id/empty" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:gravity="center" + android:textSize="@dimen/plugin_login_msg_text_size" + android:text="@string/plugin_empty_list_text" + android:visibility="gone"/> + + <RelativeLayout + android:id="@+id/plugin_login_layout" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <ImageView + android:id="@+id/plugin_login_icon" + android:layout_width="@dimen/plugin_login_icon_width" + android:layout_height="@dimen/plugin_login_icon_height" + android:layout_above="@+id/plugin_login_msg" + android:layout_marginBottom="@dimen/plugin_login_icon_margin_bottom" + android:layout_centerHorizontal="true" /> + <TextView + android:id="@+id/plugin_login_msg" + android:layout_width="@dimen/plugin_login_msg_width" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:gravity="center" + android:textSize="@dimen/plugin_login_msg_text_size" + android:text="@string/plugin_login_msg" /> + <Button + android:id="@+id/plugin_login_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@+id/plugin_login_msg" + android:layout_marginTop="@dimen/plugin_login_button_margin_top" + android:layout_centerHorizontal="true" + android:text="@string/plugin_login_button_title" + android:textSize="@dimen/plugin_login_button_title_size" + android:backgroundTint="@color/plugin_login_button_tint" + android:textColor="#ffffff"/> + </RelativeLayout> + </FrameLayout> + +</LinearLayout> diff --git a/res/values/cm_colors.xml b/res/values/cm_colors.xml index 287e5956..833b068d 100644 --- a/res/values/cm_colors.xml +++ b/res/values/cm_colors.xml @@ -52,4 +52,7 @@ <!--Block contact dialog--> <color name="block_contact_dialog_primary_text_color">#80000000</color> <color name="block_contact_dialog_secondary_text_color">#A6A6A6</color> + + <!-- Color used by the incall plugin user interface --> + <color name="plugin_login_button_tint">#0288d1</color> </resources> diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 2f167a08..f08a7d3e 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -65,4 +65,10 @@ <string name="block_dialog_report_spam">Report as spam to <xliff:g id="provider">%s</xliff:g></string> <string name="block_dialog_report_nonspam">Report as non-spam to <xliff:g id="provider">%s</xliff:g></string> + <string name="plugin_login_msg">Sign into <xliff:g id="plugin_name">%1$s</xliff:g> to see + your <xliff:g id="plugin_name">%1$s</xliff:g> contacts here</string> + <string name="plugin_login_button_title">Sign In</string> + <string name="plugin_empty_list_text">You have no <xliff:g id="plugin_name">%s</xliff:g> + contacts,\n</string> + <string name="plugin_empty_list_action_text">add people</string> </resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 8d612ff1..7429d7e6 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -161,4 +161,13 @@ <dimen name="call_subject_dialog_secondary_text_size">14sp</dimen> <!-- Row padding for call subject history items. --> <dimen name="call_subject_history_item_padding">15dp</dimen> + + <!-- Dimensions for plugin login screen --> + <dimen name="plugin_login_icon_width">134dp</dimen> + <dimen name="plugin_login_icon_height">59dp</dimen> + <dimen name="plugin_login_icon_margin_bottom">17dp</dimen> + <dimen name="plugin_login_msg_width">196dp</dimen> + <dimen name="plugin_login_msg_text_size">14sp</dimen> + <dimen name="plugin_login_button_margin_top">40dp</dimen> + <dimen name="plugin_login_button_title_size">14sp</dimen> </resources> |