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

Commit f1c66bf7 authored by Marcus Hagerott's avatar Marcus Hagerott Committed by android-build-merger
Browse files

Remove unused contact tile views

am: 2c35625c

Change-Id: Ibe87d56342cbf9a18be021483e8382eb2a67ee4d
parents d7d0c0a5 2c35625c
Loading
Loading
Loading
Loading
+0 −51
Original line number Diff line number Diff line
<?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.
-->
<view
    xmlns:android="http://schemas.android.com/apk/res/android"
    class="com.android.contacts.list.ContactTileFrequentView"
    android:focusable="true"
    android:background="?android:attr/selectableItemBackground">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:gravity="center_vertical"
        android:paddingTop="?list_item_padding_top"
        android:paddingBottom="?list_item_padding_bottom">

        <com.android.contacts.widget.LayoutSuppressingImageView
            android:id="@+id/contact_tile_image"
            android:layout_width="?list_item_photo_size"
            android:layout_height="?list_item_photo_size"
            android:scaleType="centerCrop"
            android:layout_marginEnd="?list_item_gap_between_image_and_text"/>

        <TextView
            android:id="@+id/contact_tile_name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textColor="@android:color/black"
            android:textSize="@dimen/contact_browser_list_item_text_size"
            android:singleLine="true"
            android:fadingEdge="horizontal"
            android:fadingEdgeLength="3dip"
            android:ellipsize="marquee"
            android:textAlignment="viewStart" />

    </LinearLayout>

</view>
+0 −106
Original line number Diff line number Diff line
<?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 parameters are set programmatically. -->
<view
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/contact_tile_frequent_phone"
    class="com.android.contacts.list.ContactTilePhoneFrequentView"
    android:focusable="true"
    android:background="?android:attr/selectableItemBackground"
    android:nextFocusLeft="@+id/contact_tile_quick">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <com.android.contacts.widget.LayoutSuppressingQuickContactBadge
            android:id="@id/contact_tile_quick"
            android:layout_width="64dip"
            android:layout_height="64dip"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:nextFocusRight="@id/contact_tile_frequent_phone"
            android:scaleType="centerCrop"
            android:focusable="true" />

        <TextView
            android:id="@+id/contact_tile_name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="8dip"
            android:layout_marginStart="8dip"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:layout_marginTop="8dip"
            android:layout_toRightOf="@id/contact_tile_quick"
            android:layout_toEndOf="@id/contact_tile_quick"
            android:singleLine="true"
            android:fadingEdge="horizontal"
            android:fadingEdgeLength="3dip"
            android:ellipsize="marquee"
            android:textAlignment="viewStart" />

        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/contact_tile_name"
            android:layout_toRightOf="@id/contact_tile_quick"
            android:layout_toEndOf="@id/contact_tile_quick"
            android:gravity="center_vertical">

            <TextView
                android:id="@+id/contact_tile_phone_number"
                android:layout_width="0dip"
                android:layout_height="wrap_content"
                android:layout_weight="?attr/list_item_data_width_weight"
                android:textSize="14sp"
                android:ellipsize="marquee"
                android:textColor="@color/dialtacts_secondary_text_color"
                android:layout_marginLeft="8dip"
                android:layout_marginStart="8dip"
                android:singleLine="true"
                android:layout_gravity="bottom"
                android:textDirection="ltr"
                android:textAlignment="viewStart" />

            <TextView
                android:id="@+id/contact_tile_phone_type"
                android:layout_width="0dip"
                android:layout_height="wrap_content"
                android:layout_weight="?attr/list_item_label_width_weight"
                android:textSize="12sp"
                android:ellipsize="marquee"
                android:singleLine="true"
                android:textAllCaps="true"
                android:textColor="@color/dialtacts_secondary_text_color"
                android:layout_marginLeft="8dip"
                android:layout_marginStart="8dip"
                android:gravity="end"
                android:layout_gravity="bottom" />

        </LinearLayout>

        <View
            android:id="@+id/contact_tile_horizontal_divider"
            android:layout_width="match_parent"
            android:layout_height="1px"
            android:background="?android:attr/listDivider"
            android:layout_below="@id/contact_tile_quick" />

    </RelativeLayout>

</view>
+0 −54
Original line number Diff line number Diff line
<?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.
-->
<view
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:ex="http://schemas.android.com/apk/res-auto"
    class="com.android.contacts.list.ContactTileStarredView"
    android:focusable="true"
    android:background="?android:attr/selectableItemBackground">

    <LinearLayout
        android:id="@+id/contact_tile_push_state"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:paddingTop="24dp">
        <view
            android:id="@+id/contact_tile_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            ex:direction="widthToHeight"
            ex:ratio="1.0"
            class="com.android.contacts.widget.ProportionalLayout" >
            <ImageView
                android:id="@+id/contact_tile_image"
                android:layout_width="match_parent"
                android:layout_height="match_parent" />
        </view>
        <TextView
            android:id="@+id/contact_tile_name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingTop="7dp"
            android:textColor="#202020"
            android:textSize="@dimen/contact_browser_list_item_text_size"
            android:singleLine="true"
            android:fadingEdge="horizontal"
            android:fadingEdgeLength="3dip"
            android:ellipsize="marquee"
            android:textAlignment="center"/>
    </LinearLayout>
</view>
+0 −82
Original line number Diff line number Diff line
<?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.
-->
<view
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:paddingBottom="1dip"
    android:paddingRight="1dip"
    android:paddingEnd="1dip"
    android:background="@null"
    class="com.android.contacts.list.ContactTileStarredView" >

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <com.android.contacts.widget.LayoutSuppressingImageView
            android:id="@+id/contact_tile_image"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleType="centerCrop" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="@dimen/contact_tile_shadowbox_height"
            android:orientation="vertical"
            android:background="@color/contact_tile_shadow_box_color"
            android:layout_alignParentBottom="true"
            android:gravity="center_vertical"
            android:paddingLeft="8dip"
            android:paddingRight="8dip"
            android:paddingStart="8dip"
            android:paddingEnd="8dip">

            <TextView
                android:id="@+id/contact_tile_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textColor="@android:color/white"
                android:textSize="16sp"
                android:singleLine="true"
                android:fadingEdge="horizontal"
                android:fadingEdgeLength="3dip"
                android:ellipsize="marquee"
                android:textAlignment="viewStart" />

            <TextView
                android:id="@+id/contact_tile_status"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:textColor="@color/people_contact_tile_status_color"
                android:singleLine="true"
                android:drawablePadding="4dip"
                android:fadingEdge="horizontal"
                android:fadingEdgeLength="3dip"
                android:layout_marginTop="-3dip"
                android:ellipsize="marquee" />

        </LinearLayout>

        <QuickContactBadge
            android:id="@+id/contact_tile_quick"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:focusable="true"
            android:background="@null" />

    </RelativeLayout>

</view>
+0 −6
Original line number Diff line number Diff line
@@ -117,12 +117,6 @@
    <!-- Secondary text color in the Phone app -->
    <color name="dialtacts_secondary_text_color">#737373</color>

    <!--  Color of the semi-transparent shadow box on contact tiles -->
    <color name="contact_tile_shadow_box_color">#7F000000</color>

    <!--  Color of the status message for starred contacts in the People app -->
    <color name="people_contact_tile_status_color">#CCCCCC</color>

    <color name="shortcut_overlay_text_background">#7f000000</color>

    <color name="textColorIconOverlay">#fff</color>
Loading