2017-05-05 16:36:04 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright 2017 Thomas Schneider
|
|
|
|
|
2017-07-10 10:33:24 +02:00
|
|
|
This file is a part of Mastalab
|
2017-05-05 16:36:04 +02:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under the terms of the
|
|
|
|
GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
2017-07-10 10:33:24 +02:00
|
|
|
Mastalab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
2017-05-05 16:36:04 +02:00
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
|
|
Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along with Thomas Schneider; if not,
|
|
|
|
see <http://www.gnu.org/licenses>.
|
|
|
|
-->
|
2017-06-28 17:42:33 +02:00
|
|
|
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-28 17:42:33 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:card_view="http://schemas.android.com/tools"
|
|
|
|
android:layout_marginTop="10dp"
|
2017-06-30 17:09:07 +02:00
|
|
|
style="?attr/cardStyle"
|
2017-07-31 15:17:19 +02:00
|
|
|
android:id="@+id/card_status_container"
|
2017-06-28 17:42:33 +02:00
|
|
|
card_view:cardPreventCornerOverlap="true"
|
|
|
|
app:cardUseCompatPadding="true">
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-06-28 17:42:33 +02:00
|
|
|
android:id="@+id/main_container"
|
|
|
|
android:orientation="horizontal">
|
2017-07-30 11:21:55 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/notification_account_profile"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_gravity="center_horizontal|top"
|
|
|
|
android:gravity="center_horizontal|top"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<ImageView
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:id="@+id/notification_delete"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:src="@drawable/ic_delete"
|
|
|
|
android:layout_width="25dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-05-05 16:36:04 +02:00
|
|
|
<LinearLayout
|
2017-06-28 17:42:33 +02:00
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
2017-06-28 17:42:33 +02:00
|
|
|
android:padding="5dp"
|
|
|
|
android:id="@+id/notification_type"
|
2017-07-31 19:29:14 +02:00
|
|
|
android:textSize="14sp"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2017-07-31 19:29:14 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:id="@+id/notification_account_username"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
2017-06-28 17:42:33 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_date"
|
|
|
|
android:layout_width="match_parent"
|
2017-07-31 19:29:14 +02:00
|
|
|
android:textSize="12sp"
|
2017-06-28 17:42:33 +02:00
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:gravity="end"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/notification_status_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/notification_status_content"
|
|
|
|
android:layout_marginTop="10dp"
|
2017-07-28 20:14:14 +02:00
|
|
|
android:textIsSelectable="true"
|
2017-06-28 17:42:33 +02:00
|
|
|
android:autoLink="web"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2017-05-05 16:36:04 +02:00
|
|
|
<LinearLayout
|
2017-06-28 17:42:33 +02:00
|
|
|
android:id="@+id/status_document_container"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_height="wrap_content">
|
2017-06-28 17:42:33 +02:00
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/status_action_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:padding="@dimen/drawer_padding"
|
|
|
|
android:layout_marginStart="@dimen/activity_vertical_margin"
|
|
|
|
android:layout_marginLeft="@dimen/activity_vertical_margin"
|
|
|
|
android:layout_marginEnd="@dimen/activity_vertical_margin"
|
|
|
|
android:layout_marginRight="@dimen/activity_vertical_margin"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
|
|
android:drawablePadding="2dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:id="@+id/status_favorite_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<TextView
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:drawablePadding="2dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:id="@+id/status_reblog_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
2017-05-05 16:36:04 +02:00
|
|
|
<ImageView
|
2017-06-28 17:42:33 +02:00
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:id="@+id/status_reply"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_gravity="center_vertical"
|
2017-06-28 17:42:33 +02:00
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:src="@drawable/ic_reply"
|
2017-06-24 17:50:54 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
2017-06-28 17:42:33 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
android:id="@+id/status_privacy"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_width="25dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</LinearLayout>
|
2017-05-05 16:36:04 +02:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
2017-06-28 17:42:33 +02:00
|
|
|
</LinearLayout>
|
2017-05-05 16:36:04 +02:00
|
|
|
</LinearLayout>
|
2017-06-28 17:42:33 +02:00
|
|
|
</android.support.v7.widget.CardView>
|