diff options
author | Brian Attwell <brianattwell@google.com> | 2014-02-04 21:14:02 -0800 |
---|---|---|
committer | Brian Attwell <brianattwell@google.com> | 2014-02-04 21:14:02 -0800 |
commit | fc50bdd15a2de6560581b67d3b73688a48ae0b3f (patch) | |
tree | 52224f65e91a90af480200f38710a70c3ad6158d /res/layout | |
parent | b5c7e0402458fc26c59ec9f7087183d7739c67ee (diff) | |
download | packages_apps_Contacts-fc50bdd15a2de6560581b67d3b73688a48ae0b3f.tar.gz packages_apps_Contacts-fc50bdd15a2de6560581b67d3b73688a48ae0b3f.tar.bz2 packages_apps_Contacts-fc50bdd15a2de6560581b67d3b73688a48ae0b3f.zip |
Delete dead social/stream code from Contacts
Searched for stream/social code. Next, deleted layouts that
showed up in the results from "lint Contacts --check UnusedResources".
I didn't bother cleaning up the unused strings.
Change-Id: I7473127e8e4e33c97b205f85d4d63f459e9d2b10
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/contact_detail_about_fragment_container.xml | 25 | ||||
-rw-r--r-- | res/layout/social_widget.xml | 73 | ||||
-rw-r--r-- | res/layout/stream_item_container.xml | 93 | ||||
-rw-r--r-- | res/layout/stream_item_photo.xml | 27 | ||||
-rw-r--r-- | res/layout/stream_item_row_images.xml | 57 |
5 files changed, 0 insertions, 275 deletions
diff --git a/res/layout/contact_detail_about_fragment_container.xml b/res/layout/contact_detail_about_fragment_container.xml deleted file mode 100644 index 6fc9fe210..000000000 --- a/res/layout/contact_detail_about_fragment_container.xml +++ /dev/null @@ -1,25 +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. ---> - -<!-- - Container for the "About" page fragment on the contact card for a contact with social updates. - This view ID must match with a view ID in the layout that is used after an orientation change. ---> -<FrameLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/about_fragment_container" - android:layout_width="match_parent" - android:layout_height="match_parent"/>
\ No newline at end of file diff --git a/res/layout/social_widget.xml b/res/layout/social_widget.xml deleted file mode 100644 index 1267bd9f1..000000000 --- a/res/layout/social_widget.xml +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2010 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. ---> - -<FrameLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="#00000000"> - <LinearLayout - android:id="@+id/widget_container" - android:orientation="horizontal" - android:layout_width="match_parent" - android:layout_height="match_parent"> - <FrameLayout - android:layout_width="70dp" - android:layout_height="70dp" - android:layout_gravity="center_vertical"> - <ImageView - android:id="@+id/image" - android:layout_width="match_parent" - android:layout_height="match_parent" /> - <ImageButton - android:id="@+id/border" - android:background="@drawable/frame_thumbnail_contact_widget_holo" - android:layout_width="match_parent" - android:layout_height="match_parent" /> - </FrameLayout> - <RelativeLayout - android:id="@+id/name_and_snippet_container" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_weight="1" - android:paddingLeft="43dp" - android:paddingRight="4dp" - android:paddingStart="43dp" - android:paddingEnd="4dp" - android:paddingTop="4dp" - android:paddingBottom="4dp" - android:background="@drawable/bg_status_contact_widget"> - <TextView - android:id="@+id/name_and_snippet" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_alignParentLeft="true" - android:layout_alignParentStart="true" - android:layout_alignParentTop="true" - android:maxLines="3" - android:lineSpacingExtra="2sp" - android:textColor="#FFFFFFFF" - android:textSize="@dimen/widget_text_size_snippet" /> - <TextView - android:id="@+id/name" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:gravity="center" - android:textColor="#FFFFFFFF" - android:textSize="@dimen/widget_text_size_name" /> - </RelativeLayout> - </LinearLayout> -</FrameLayout> diff --git a/res/layout/stream_item_container.xml b/res/layout/stream_item_container.xml deleted file mode 100644 index 33840b6e5..000000000 --- a/res/layout/stream_item_container.xml +++ /dev/null @@ -1,93 +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. ---> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical" - android:paddingLeft="@dimen/detail_update_section_side_padding" - android:paddingRight="@dimen/detail_update_section_side_padding" - android:paddingStart="@dimen/detail_update_section_side_padding" - android:paddingEnd="@dimen/detail_update_section_side_padding"> - - <!-- Clickable area --> - <LinearLayout - android:id="@+id/stream_item_content" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingLeft="@dimen/detail_update_section_item_horizontal_padding" - android:paddingRight="@dimen/detail_update_section_item_horizontal_padding" - android:paddingStart="@dimen/detail_update_section_item_horizontal_padding" - android:paddingEnd="@dimen/detail_update_section_item_horizontal_padding" - android:paddingTop="@dimen/detail_update_section_item_vertical_padding" - android:paddingBottom="@dimen/detail_update_section_item_vertical_padding" - android:background="?android:attr/selectableItemBackground" - android:orientation="vertical" - > - - <!-- Images --> - <LinearLayout - android:id="@+id/stream_item_image_rows" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingBottom="@dimen/detail_update_section_between_items_vertical_padding" - android:layout_gravity="center_vertical" - android:orientation="vertical" - > - </LinearLayout> - - <!-- Text --> - <TextView android:id="@+id/stream_item_html" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textSize="16sp" - android:textColor="?android:attr/textColorPrimary" - android:textAlignment="viewStart" /> - <!-- - Attribution (e.g. timestamp) and comments (e.g. +1, like) should align horizontally. - Can't merge this with the parent list view. - --> - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="horizontal" - > - <TextView android:id="@+id/stream_item_attribution" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceSmall" - android:textColor="?android:attr/textColorSecondary" - android:ellipsize="end" - android:maxLines="1" /> - <TextView android:id="@+id/stream_item_comments" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginLeft="@dimen/detail_update_section_attribution_comments_padding" - android:layout_marginStart="@dimen/detail_update_section_attribution_comments_padding" - android:textAppearance="?android:attr/textAppearanceSmall" - android:textColor="?android:attr/textColorSecondary" - android:maxLines="1"/> - </LinearLayout> - </LinearLayout> - - <View - android:id="@+id/horizontal_divider" - android:layout_width="match_parent" - android:layout_height="1px" - android:background="?android:attr/dividerHorizontal" - android:layout_gravity="bottom" /> - -</LinearLayout> diff --git a/res/layout/stream_item_photo.xml b/res/layout/stream_item_photo.xml deleted file mode 100644 index 9e27d2a23..000000000 --- a/res/layout/stream_item_photo.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. ---> - -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"> - <com.android.contacts.common.widget.LayoutSuppressingImageView - android:id="@+id/image" - android:layout_width="match_parent" - android:layout_height="match_parent"/> - <View - android:id="@+id/push_layer" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="?android:attr/selectableItemBackground"/> -</FrameLayout> diff --git a/res/layout/stream_item_row_images.xml b/res/layout/stream_item_row_images.xml deleted file mode 100644 index a3f13251a..000000000 --- a/res/layout/stream_item_row_images.xml +++ /dev/null @@ -1,57 +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. ---> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:ex="http://schemas.android.com/apk/res-auto" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginTop="@dimen/detail_update_section_between_items_padding"> - - <view - class="com.android.contacts.common.widget.ProportionalLayout" - android:layout_width="0dip" - android:layout_height="wrap_content" - android:layout_marginRight="@dimen/detail_update_section_between_items_padding" - android:layout_marginEnd="@dimen/detail_update_section_between_items_padding" - android:layout_weight="1" - ex:ratio="1" - ex:direction="widthToHeight"> - <include - android:id="@+id/stream_item_first_image" - layout="@layout/stream_item_photo" - android:layout_width="match_parent" - android:layout_height="match_parent"/> - </view> - - <view - android:id="@+id/second_image_container" - class="com.android.contacts.common.widget.ProportionalLayout" - android:layout_width="0dip" - android:layout_height="wrap_content" - android:layout_marginLeft="@dimen/detail_update_section_between_items_padding" - android:layout_marginStart="@dimen/detail_update_section_between_items_padding" - android:layout_weight="1" - ex:ratio="1" - ex:direction="widthToHeight"> - <include - android:id="@+id/stream_item_second_image" - layout="@layout/stream_item_photo" - android:layout_width="match_parent" - android:layout_height="match_parent"/> - </view> - -</LinearLayout> |