diff options
author | twyen <twyen@google.com> | 2018-06-25 15:25:35 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-06-26 13:44:21 -0700 |
commit | 84a6d29f889148c49db278f0682bbdf8d8466b1f (patch) | |
tree | 66c17b71e60b0f84ea98b8cf69f64570ff1718d1 /java/com/android/contacts/common/res/layout | |
parent | 38e0ed4c08726d20f3ab68da0328b0ca8bb92ec7 (diff) |
Move contacts.commons.R to dialer.contacts.resources
This reduces dependency on contacts.common which is full of things that should not be there.
Ideally resources inside dialer.contacts.resources should be individually moved to appropriate locations, but the resources are too large to work with.
TEST=TAP
Test: TAP
PiperOrigin-RevId: 202029832
Change-Id: I95bfcb59799b9c3640de03ad0680624fc1b2c3a3
Diffstat (limited to 'java/com/android/contacts/common/res/layout')
11 files changed, 0 insertions, 640 deletions
diff --git a/java/com/android/contacts/common/res/layout/account_filter_header.xml b/java/com/android/contacts/common/res/layout/account_filter_header.xml deleted file mode 100644 index 592c240a9..000000000 --- a/java/com/android/contacts/common/res/layout/account_filter_header.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?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/contacts/common/res/layout/call_subject_history_list_item.xml b/java/com/android/contacts/common/res/layout/call_subject_history_list_item.xml deleted file mode 100644 index c08327c29..000000000 --- a/java/com/android/contacts/common/res/layout/call_subject_history_list_item.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?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/contacts/common/res/layout/contact_detail_list_padding.xml b/java/com/android/contacts/common/res/layout/contact_detail_list_padding.xml deleted file mode 100644 index 02a5c809c..000000000 --- a/java/com/android/contacts/common/res/layout/contact_detail_list_padding.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?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/contacts/common/res/layout/contact_list_card.xml b/java/com/android/contacts/common/res/layout/contact_list_card.xml deleted file mode 100644 index 37bb8ea27..000000000 --- a/java/com/android/contacts/common/res/layout/contact_list_card.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?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/contacts/common/res/layout/contact_list_content.xml b/java/com/android/contacts/common/res/layout/contact_list_content.xml deleted file mode 100644 index 3ee27a0ad..000000000 --- a/java/com/android/contacts/common/res/layout/contact_list_content.xml +++ /dev/null @@ -1,61 +0,0 @@ -<?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/contacts/common/res/layout/default_account_checkbox.xml b/java/com/android/contacts/common/res/layout/default_account_checkbox.xml deleted file mode 100644 index 911098397..000000000 --- a/java/com/android/contacts/common/res/layout/default_account_checkbox.xml +++ /dev/null @@ -1,50 +0,0 @@ -<?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/contacts/common/res/layout/dialog_call_subject.xml b/java/com/android/contacts/common/res/layout/dialog_call_subject.xml deleted file mode 100644 index d20aa3b45..000000000 --- a/java/com/android/contacts/common/res/layout/dialog_call_subject.xml +++ /dev/null @@ -1,159 +0,0 @@ -<?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/contacts/common/res/layout/directory_header.xml b/java/com/android/contacts/common/res/layout/directory_header.xml deleted file mode 100644 index b8f5163c0..000000000 --- a/java/com/android/contacts/common/res/layout/directory_header.xml +++ /dev/null @@ -1,55 +0,0 @@ -<?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/contacts/common/res/layout/search_bar_expanded.xml b/java/com/android/contacts/common/res/layout/search_bar_expanded.xml deleted file mode 100644 index c9ab6a92d..000000000 --- a/java/com/android/contacts/common/res/layout/search_bar_expanded.xml +++ /dev/null @@ -1,64 +0,0 @@ -<?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/contacts/common/res/layout/select_account_list_item.xml b/java/com/android/contacts/common/res/layout/select_account_list_item.xml deleted file mode 100644 index e77c53c7e..000000000 --- a/java/com/android/contacts/common/res/layout/select_account_list_item.xml +++ /dev/null @@ -1,69 +0,0 @@ -<?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/contacts/common/res/layout/unread_count_tab.xml b/java/com/android/contacts/common/res/layout/unread_count_tab.xml deleted file mode 100644 index d8357f491..000000000 --- a/java/com/android/contacts/common/res/layout/unread_count_tab.xml +++ /dev/null @@ -1,43 +0,0 @@ -<?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> |