diff options
Diffstat (limited to 'java/com/android/dialer/contacts/resources/res/layout')
11 files changed, 640 insertions, 0 deletions
diff --git a/java/com/android/dialer/contacts/resources/res/layout/account_filter_header.xml b/java/com/android/dialer/contacts/resources/res/layout/account_filter_header.xml new file mode 100644 index 000000000..592c240a9 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/layout/account_filter_header.xml @@ -0,0 +1,44 @@ +<?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. +--> + +<!-- Layout showing the type of account filter + (e.g. All contacts filter, custom filter, etc.), + which is the header of all contact lists. --> + +<!-- Solely used to set a background color --> +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="?android:attr/colorBackground"> + <!-- Used to show the touch feedback --> + <FrameLayout + android:id="@+id/account_filter_header_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="@dimen/contact_browser_list_header_left_margin" + android:layout_marginEnd="@dimen/contact_browser_list_header_right_margin" + android:paddingTop="@dimen/list_header_extra_top_padding" + android:background="?android:attr/selectableItemBackground" + android:visibility="gone"> + <!-- Shows the text and underlining --> + <TextView + android:id="@+id/account_filter_header" + style="@style/ContactListSeparatorTextViewStyle" + android:paddingStart="@dimen/contact_browser_list_item_text_indent" + android:paddingLeft="@dimen/contact_browser_list_item_text_indent"/> + </FrameLayout> +</FrameLayout> diff --git a/java/com/android/dialer/contacts/resources/res/layout/call_subject_history_list_item.xml b/java/com/android/dialer/contacts/resources/res/layout/call_subject_history_list_item.xml new file mode 100644 index 000000000..c08327c29 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/layout/call_subject_history_list_item.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2015 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 + --> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/text1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="@dimen/call_subject_history_item_padding" + android:paddingBottom="@dimen/call_subject_history_item_padding" + android:paddingStart="@dimen/call_subject_dialog_margin" + android:paddingEnd="@dimen/call_subject_dialog_margin" + android:gravity="center_vertical" + android:singleLine="true" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/call_subject_dialog_primary_text_size"/> diff --git a/java/com/android/dialer/contacts/resources/res/layout/contact_detail_list_padding.xml b/java/com/android/dialer/contacts/resources/res/layout/contact_detail_list_padding.xml new file mode 100644 index 000000000..02a5c809c --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/layout/contact_detail_list_padding.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. +--> + +<!-- The actual padding is embedded in a FrameLayout since we cannot change the + visibility of a header view in a ListView without having a parent view. --> +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <View + android:id="@+id/contact_detail_list_padding" + android:layout_width="match_parent" + android:layout_height="@dimen/list_header_extra_top_padding"/> +</FrameLayout> diff --git a/java/com/android/dialer/contacts/resources/res/layout/contact_list_card.xml b/java/com/android/dialer/contacts/resources/res/layout/contact_list_card.xml new file mode 100644 index 000000000..37bb8ea27 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/layout/contact_list_card.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/list_card" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + android:visibility="invisible"> + <View + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="@integer/contact_list_space_layout_weight" + android:background="?android:attr/colorBackground"/> + <View + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="@integer/contact_list_card_layout_weight" + android:background="?android:attr/colorBackground" + android:elevation="@dimen/contact_list_card_elevation"/> + <View + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="@integer/contact_list_space_layout_weight" + android:background="?android:attr/colorBackground"/> +</LinearLayout> diff --git a/java/com/android/dialer/contacts/resources/res/layout/contact_list_content.xml b/java/com/android/dialer/contacts/resources/res/layout/contact_list_content.xml new file mode 100644 index 000000000..3ee27a0ad --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/layout/contact_list_content.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<!-- 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:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?attr/contact_browser_background" + android:orientation="vertical"> + + <!-- 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 + android:id="@android:id/list" + class="com.android.contacts.common.list.PinnedHeaderListView" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginStart="?attr/contact_browser_list_padding_left" + android:layout_marginEnd="?attr/contact_browser_list_padding_right" + android:layout_marginLeft="?attr/contact_browser_list_padding_left" + android:layout_marginRight="?attr/contact_browser_list_padding_right" + android:paddingTop="?attr/list_item_padding_top" + android:clipToPadding="false" + android:fadingEdge="none" + android:fastScrollEnabled="true"/> + <ProgressBar + android:id="@+id/search_progress" + style="?android:attr/progressBarStyleLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:visibility="gone"/> + </FrameLayout> + +</LinearLayout> diff --git a/java/com/android/dialer/contacts/resources/res/layout/default_account_checkbox.xml b/java/com/android/dialer/contacts/resources/res/layout/default_account_checkbox.xml new file mode 100644 index 000000000..911098397 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/layout/default_account_checkbox.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/default_account_checkbox_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="4dp" + android:paddingStart="0dp" + android:paddingEnd="24dp" + android:gravity="center" + android:minHeight="56dp" + android:orientation="horizontal" + android:focusable="true"> + <FrameLayout + android:layout_width="72dp" + android:layout_height="wrap_content"> + <CheckBox + android:id="@+id/default_account_checkbox_view" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:checked="false"/> + /> + </FrameLayout> + <TextView + android:id="@+id/default_account_checkbox_text" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/set_default_account" + android:textAlignment="viewStart" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorSecondary" + /> + +</LinearLayout> diff --git a/java/com/android/dialer/contacts/resources/res/layout/dialog_call_subject.xml b/java/com/android/dialer/contacts/resources/res/layout/dialog_call_subject.xml new file mode 100644 index 000000000..d20aa3b45 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/layout/dialog_call_subject.xml @@ -0,0 +1,159 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2015 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 + --> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/call_subject_dialog" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/transparent" + android:orientation="vertical"> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1"> + + <!-- The call subject dialog will be centered in the space above the subject list. --> + <LinearLayout + android:id="@+id/dialog_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:background="@drawable/dialog_background_material" + android:clickable="true" + android:elevation="16dp" + android:orientation="vertical" + android:theme="@android:style/Theme.Material.Light.Dialog"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/call_subject_dialog_margin" + android:layout_marginStart="@dimen/call_subject_dialog_margin" + android:layout_marginEnd="@dimen/call_subject_dialog_margin" + android:orientation="horizontal"> + + <QuickContactBadge + android:id="@+id/contact_photo" + android:layout_width="@dimen/call_subject_dialog_contact_photo_size" + android:layout_height="@dimen/call_subject_dialog_contact_photo_size" + android:layout_marginEnd="@dimen/call_subject_dialog_margin" + android:layout_gravity="top" + android:focusable="true"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:orientation="vertical"> + + <TextView + android:id="@+id/name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/call_subject_dialog_secondary_text_size"/> + + <TextView + android:id="@+id/number" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/call_subject_dialog_between_line_margin" + android:layout_gravity="center_vertical" + android:singleLine="true" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/call_subject_dialog_secondary_text_size"/> + </LinearLayout> + </LinearLayout> + + <EditText + android:id="@+id/call_subject" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:layout_marginTop="@dimen/call_subject_dialog_edit_spacing" + android:layout_marginStart="@dimen/call_subject_dialog_margin" + android:layout_marginEnd="@dimen/call_subject_dialog_margin" + android:layout_gravity="top" + android:background="@null" + android:gravity="top" + android:hint="@string/call_subject_hint" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/call_subject_dialog_secondary_text_size" + /> + + <TextView + android:id="@+id/character_limit" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/call_subject_dialog_margin" + android:layout_marginBottom="@dimen/call_subject_dialog_margin" + android:layout_marginStart="@dimen/call_subject_dialog_margin" + android:layout_marginEnd="@dimen/call_subject_dialog_margin" + android:singleLine="true" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/call_subject_dialog_secondary_text_size"/> + + <View + android:layout_width="fill_parent" + android:layout_height="1dp" + android:background="@color/call_subject_divider"/> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/call_subject_dialog_margin" + android:layout_marginBottom="@dimen/call_subject_dialog_margin" + android:layout_marginStart="@dimen/call_subject_dialog_margin" + android:layout_marginEnd="@dimen/call_subject_dialog_margin"> + + <ImageView + android:id="@+id/history_button" + android:layout_width="25dp" + android:layout_height="25dp" + android:layout_alignParentStart="true" + android:layout_centerVertical="true" + android:src="@drawable/quantum_ic_history_vd_theme_24" + android:tint="?colorIcon"/> + + <TextView + android:id="@+id/send_and_call_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:singleLine="true" + android:text="@string/send_and_call_button" + android:textColor="@color/call_subject_button" + android:textSize="@dimen/call_subject_dialog_secondary_text_size"/> + + </RelativeLayout> + </LinearLayout> + </RelativeLayout> + <!-- The subject list is pinned to the bottom of the screen. --> + <ListView + android:id="@+id/subject_list" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/dialog_view" + android:background="?android:attr/colorBackground" + android:divider="@null" + android:elevation="8dp"/> + +</LinearLayout> diff --git a/java/com/android/dialer/contacts/resources/res/layout/directory_header.xml b/java/com/android/dialer/contacts/resources/res/layout/directory_header.xml new file mode 100644 index 000000000..b8f5163c0 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/layout/directory_header.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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. +--> + +<!-- Layout used for list section separators. --> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/directory_header" + style="@style/DirectoryHeader" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="@dimen/directory_header_extra_top_padding" + android:paddingBottom="@dimen/directory_header_extra_bottom_padding" + android:paddingStart="?attr/list_item_padding_left" + android:paddingEnd="?attr/list_item_padding_right" + android:paddingLeft="?attr/list_item_padding_left" + android:paddingRight="?attr/list_item_padding_right" + android:background="?attr/contact_browser_background" + android:minHeight="@dimen/list_section_divider_min_height"> + <TextView + android:id="@+id/label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textAlignment="viewStart" + android:textAppearance="@style/DirectoryHeaderStyle"/> + <TextView + android:id="@+id/display_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:singleLine="true" + android:textAlignment="viewStart" + android:textAppearance="@style/DirectoryHeaderStyle"/> + <TextView + android:id="@+id/count" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:paddingTop="1dip" + android:gravity="end" + android:singleLine="true" + android:textAppearance="@style/DirectoryHeaderStyle"/> +</LinearLayout> diff --git a/java/com/android/dialer/contacts/resources/res/layout/search_bar_expanded.xml b/java/com/android/dialer/contacts/resources/res/layout/search_bar_expanded.xml new file mode 100644 index 000000000..c9ab6a92d --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/layout/search_bar_expanded.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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. +--> +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/search_box_expanded" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone"> + + <ImageButton + android:id="@+id/search_back_button" + android:layout_width="@dimen/search_box_icon_size" + android:layout_height="@dimen/search_box_icon_size" + android:layout_marginStart="16dp" + android:layout_centerVertical="true" + android:background="?attr/selectableItemBackgroundBorderless" + android:contentDescription="@string/action_menu_back_from_search" + android:src="@drawable/back_arrow" + android:tint="?colorTextOnUnthemedDarkBackground"/> + + <EditText + android:id="@+id/search_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_toEndOf="@+id/search_back_button" + android:layout_toStartOf="@+id/search_close_button" + android:layout_centerVertical="true" + android:layout_marginStart="8dp" + android:background="@null" + android:fontFamily="@string/search_font_family" + android:imeOptions="flagNoExtractUi" + android:inputType="textFilter" + android:maxLines="1" + android:textColor="?android:attr/textColorPrimary" + android:textColorHint="?android:attr/textColorHint" + android:textCursorDrawable="@drawable/searchedittext_custom_cursor" + android:textSize="@dimen/search_text_size"/> + + <ImageView + android:id="@+id/search_close_button" + android:layout_width="@dimen/search_box_close_icon_size" + android:layout_height="@dimen/search_box_close_icon_size" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:padding="@dimen/search_box_close_icon_padding" + android:background="?attr/selectableItemBackgroundBorderless" + android:clickable="true" + android:contentDescription="@string/description_clear_search" + android:src="@drawable/quantum_ic_close_vd_theme_24" + android:tint="?colorIcon"/> +</RelativeLayout> diff --git a/java/com/android/dialer/contacts/resources/res/layout/select_account_list_item.xml b/java/com/android/dialer/contacts/resources/res/layout/select_account_list_item.xml new file mode 100644 index 000000000..e77c53c7e --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/layout/select_account_list_item.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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. +--> + +<!-- Layout of a single item in the InCallUI Account Chooser Dialog. --> +<com.android.contacts.common.widget.ActivityTouchLinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="64dp" + android:padding="8dp" + android:paddingStart="24dp" + android:paddingEnd="24dp" + android:orientation="horizontal" + android:gravity="center"> + + <ImageView + android:id="@+id/icon" + android:layout_width="24dp" + android:layout_height="24dp" + android:scaleType="center"/> + + <LinearLayout + android:id="@+id/text" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:paddingStart="24dp" + android:gravity="start|center_vertical" + android:orientation="vertical"> + <TextView + android:id="@+id/label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:includeFontPadding="false" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="?android:attr/textColorPrimary"/> + <TextView + android:id="@+id/number" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:includeFontPadding="false" + android:maxLines="1" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorSecondary" + android:visibility="gone"/> + <TextView + android:id="@+id/hint" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:includeFontPadding="false" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorSecondary" + android:visibility="gone"/> + </LinearLayout> + +</com.android.contacts.common.widget.ActivityTouchLinearLayout> diff --git a/java/com/android/dialer/contacts/resources/res/layout/unread_count_tab.xml b/java/com/android/dialer/contacts/resources/res/layout/unread_count_tab.xml new file mode 100644 index 000000000..d8357f491 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/layout/unread_count_tab.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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. +--> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@drawable/item_background_material_borderless_dark"> + <!-- The tab icon --> + <ImageView + android:id="@+id/icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true"/> + <TextView + android:id="@+id/count" + android:layout_width="wrap_content" + android:layout_height="@dimen/tab_unread_count_background_size" + android:layout_marginTop="@dimen/tab_unread_count_margin_top" + android:layout_marginStart="@dimen/tab_unread_count_margin_left" + android:layout_toEndOf="@id/icon" + android:paddingLeft="@dimen/tab_unread_count_text_padding" + android:paddingRight="@dimen/tab_unread_count_text_padding" + android:background="@drawable/unread_count_background" + android:fontFamily="sans-serif-medium" + android:gravity="center" + android:importantForAccessibility="no" + android:minWidth="@dimen/tab_unread_count_background_size" + android:textAlignment="center" + android:textColor="?android:attr/colorAccent" + android:textSize="@dimen/tab_unread_count_text_size"/> +</RelativeLayout> |