Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd25f38b authored by Chiao Cheng's avatar Chiao Cheng
Browse files

Moving ContactListItemView and dependent classes.

Further clean-up of PhoneFavoriteFragment in Dialer app to move all necessary
dependencies into Contacts Common package.

Bug: 6993891
Change-Id: Ie310707da47d5e5c91e281d140f11e1eb47a5118
parent 59bdd322
Loading
Loading
Loading
Loading
+129 B
Loading image diff...
+122 B
Loading image diff...
+137 B
Loading image diff...
+67 −0
Original line number Diff line number Diff line
<?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. -->
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    style="@style/DirectoryHeader"
    android:id="@+id/directory_header"
    android:paddingLeft="?attr/list_item_padding_left"
    android:paddingRight="?attr/list_item_padding_right"
    android:minHeight="@dimen/list_section_divider_min_height"
    android:layout_marginTop="@dimen/list_header_extra_top_padding"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    >
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:background="@drawable/list_section_divider_holo_custom"
        >
        <TextView
            android:id="@+id/label"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="8dip"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textColor="@color/people_app_theme_color"
            android:singleLine="true"
            android:textStyle="bold"
            android:textAllCaps="true" />
        <TextView
            android:id="@+id/display_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="8dip"
            android:layout_marginRight="8dip"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textColor="@color/people_app_theme_color"
            android:singleLine="true"
            android:textStyle="bold"
            android:textAllCaps="true" />
        <TextView
            android:id="@+id/count"
            android:paddingTop="1dip"
            android:layout_width="0dip"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="right"
            android:singleLine="true"
            android:textSize="12sp"
            android:textColor="@color/contact_count_text_color" />
    </LinearLayout>
</FrameLayout>
+48 −0
Original line number Diff line number Diff line
<!--
  ~ Copyright (C) 2012 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>

    <declare-styleable name="ContactListItemView">
        <attr name="list_item_height" format="dimension"/>
        <attr name="list_section_header_height" format="dimension"/>
        <attr name="activated_background" format="reference"/>
        <attr name="section_header_background" format="reference"/>
        <attr name="list_item_divider" format="reference"/>
        <attr name="list_item_padding_top" format="dimension"/>
        <attr name="list_item_padding_right" format="dimension"/>
        <attr name="list_item_padding_bottom" format="dimension"/>
        <attr name="list_item_padding_left" format="dimension"/>
        <attr name="list_item_gap_between_image_and_text" format="dimension"/>
        <attr name="list_item_gap_between_label_and_data" format="dimension"/>
        <attr name="list_item_presence_icon_margin" format="dimension"/>
        <attr name="list_item_presence_icon_size" format="dimension"/>
        <attr name="list_item_photo_size" format="dimension"/>
        <attr name="list_item_profile_photo_size" format="dimension"/>
        <attr name="list_item_prefix_highlight_color" format="color"/>
        <attr name="list_item_header_text_indent" format="dimension"/>
        <attr name="list_item_header_text_color" format="color"/>
        <attr name="list_item_header_text_size" format="dimension"/>
        <attr name="list_item_header_height" format="dimension"/>
        <attr name="list_item_header_underline_height" format="dimension"/>
        <attr name="list_item_header_underline_color" format="color"/>
        <attr name="list_item_contacts_count_text_color" format="color"/>
        <attr name="list_item_text_indent" format="dimension"/>
        <attr name="list_item_contacts_count_text_size" format="dimension"/>
        <attr name="list_item_data_width_weight" format="integer"/>
        <attr name="list_item_label_width_weight" format="integer"/>
    </declare-styleable>
</resources>
Loading