* Get rid of in-app settings for notifications, replaced by channels features * Remove all the notification plumbing and dead code Test: m, manual Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com> Signed-off-by: Joey <joey@lineageos.org> Signed-off-by: Danny Baumann <dannybaumann@web.de> Signed-off-by: Arne Coucheron <arco68@gmail.com> Signed-off-by: Lyubo <lyubodzhamov@gmail.com> Change-Id: Idb39ca32751d40b3376934775d2119dd6cc7e297
133 lines
5.5 KiB
XML
133 lines
5.5 KiB
XML
<?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:id="@+id/widget_conversation_list_item"
|
|
android:layout_width="match_parent"
|
|
style="@style/WidgetConversationListItemStyle"
|
|
android:paddingLeft="8dip"
|
|
android:paddingRight="8dip" >
|
|
|
|
<FrameLayout
|
|
android:id="@+id/avatarFrame"
|
|
android:layout_centerVertical="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
<ImageView
|
|
android:id="@+id/avatarView"
|
|
style="@style/WidgetConversationListItemAvatar"
|
|
android:layout_width="@dimen/contact_icon_view_normal_size"
|
|
android:layout_height="@dimen/contact_icon_view_normal_size"
|
|
android:layout_centerVertical="true"
|
|
android:scaleType="fitXY"
|
|
android:importantForAccessibility="no"
|
|
android:contentDescription="@null" />
|
|
<ImageView
|
|
android:id="@+id/conversation_failed_status_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="@style/WidgetConversationItemFailed"
|
|
android:src="@drawable/ic_failed_status_red"
|
|
android:visibility="gone"
|
|
android:importantForAccessibility="no"
|
|
android:contentDescription="@null"/>
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_centerVertical="true"
|
|
android:orientation="vertical"
|
|
style="@style/WidgetConversationListItemBody"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dip"
|
|
android:layout_alignParentTop="true"
|
|
android:gravity="center_vertical"
|
|
android:background="@android:color/transparent">
|
|
<TextView android:id="@+id/from"
|
|
style="@style/WidgetConversationListItemFrom"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:textAppearance="?android:attr/textAppearanceMediumInverse"
|
|
android:singleLine="true"
|
|
android:textSize="18sp"
|
|
android:textColor="@color/widget_text_color"
|
|
android:ellipsize="marquee" />
|
|
|
|
<TextView android:id="@+id/date"
|
|
style="@style/WidgetConversationListItemDate"
|
|
android:paddingTop="4dp"
|
|
android:textSize="12sp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceSmallInverse"
|
|
android:singleLine="true"
|
|
android:textColor="@color/widget_text_color" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
<TextView android:id="@+id/snippet"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceSmallInverse"
|
|
android:maxLines="2"
|
|
android:textSize="13sp"
|
|
android:layout_marginBottom="5dip"
|
|
android:layout_alignParentBottom="true"
|
|
android:textColor="@color/widget_text_color"
|
|
android:ellipsize="end" />
|
|
|
|
<LinearLayout android:id="@+id/errorBlock"
|
|
android:orientation="vertical"
|
|
android:layout_alignParentBottom="true"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView android:id="@+id/errorSnippet"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceSmallInverse"
|
|
android:maxLines="1"
|
|
android:textSize="13sp"
|
|
android:textColor="@color/widget_text_color"
|
|
android:ellipsize="end" />
|
|
|
|
<TextView android:id="@+id/errorText"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceSmallInverse"
|
|
android:maxLines="2"
|
|
android:textSize="13sp"
|
|
android:layout_marginBottom="5dip"
|
|
android:textColor="@color/conversation_list_error"
|
|
android:ellipsize="end" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|