fedilab-Android-App/app/src/main/res/layout/drawer_notification.xml

423 lines
20 KiB
XML

<?xml version="1.0" encoding="utf-8"?><!--
Copyright 2017 Thomas Schneider
This file is a part of Fedilab
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.
Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
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 Fedilab; if not,
see <http://www.gnu.org/licenses>.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:card_view="http://schemas.android.com/tools"
android:id="@+id/card_status_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/main_linear_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:divider="?android:dividerHorizontal"
android:orientation="vertical"
android:showDividers="end">
<LinearLayout
android:id="@+id/main_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
card_view:ignore="DisableBaselineAlignment">
<LinearLayout
android:layout_width="50dp"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/notification_account_profile"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="5dp"
android:contentDescription="@string/profile_picture"
android:gravity="center_horizontal|top" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/notification_type"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp"
android:textSize="14sp" />
<TextView
android:id="@+id/notification_account_username"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp" />
<TextView
android:id="@+id/status_date"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginStart="2dp"
android:gravity="end"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="50dp"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/notification_delete"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:contentDescription="@string/remove_notification"
android:src="@drawable/ic_delete"
android:tint="?attr/iconColor" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/status_spoiler_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
<app.fedilab.android.helper.CustomTextView
android:id="@+id/status_spoiler"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:textIsSelectable="true" />
<Button
android:id="@+id/status_spoiler_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableStart="@drawable/ic_remove_red_eye"
android:drawablePadding="5dp"
android:gravity="center"
android:paddingStart="10dp"
android:paddingLeft="10dp"
android:paddingTop="5dp"
android:paddingEnd="10dp"
android:paddingRight="10dp"
android:paddingBottom="5dp"
android:singleLine="true"
android:text="@string/load_attachment_spoiler"
android:textAllCaps="false" />
</LinearLayout>
<LinearLayout
android:id="@+id/notification_status_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<app.fedilab.android.helper.CustomTextView
android:id="@+id/notification_status_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textIsSelectable="true" />
<LinearLayout
android:id="@+id/status_document_container"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginBottom="10dp"
android:baselineAligned="false"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<ImageView
android:id="@+id/status_prev1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<ImageView
android:id="@+id/status_prev1_play"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerInParent="true"
android:contentDescription="@string/play_video"
android:src="@drawable/ic_play_arrow"
android:tint="@color/white"
android:visibility="gone" />
</RelativeLayout>
<LinearLayout
android:id="@+id/status_container2"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="2dp"
android:layout_weight="1"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:scaleType="centerCrop">
<ImageView
android:id="@+id/status_prev2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<ImageView
android:id="@+id/status_prev2_play"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerInParent="true"
android:contentDescription="@string/play_video"
android:src="@drawable/ic_play_arrow"
android:tint="@color/white"
android:visibility="gone" />
</RelativeLayout>
<LinearLayout
android:id="@+id/status_container3"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="2dp"
android:layout_weight="1"
android:baselineAligned="false"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
<ImageView
android:id="@+id/status_prev3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<ImageView
android:id="@+id/status_prev3_play"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerInParent="true"
android:contentDescription="@string/play_video"
android:src="@drawable/ic_play_arrow"
android:tint="@color/white"
android:visibility="gone" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/status_prev4_container"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="2dp"
android:layout_weight="1">
<ImageView
android:id="@+id/status_prev4"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<ImageView
android:id="@+id/status_prev4_play"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerInParent="true"
android:contentDescription="@string/play_video"
android:src="@drawable/ic_play_arrow"
android:tint="@color/white"
android:visibility="gone" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<Button
android:id="@+id/status_show_more"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableStart="@drawable/ic_photo"
android:drawablePadding="5dp"
android:gravity="center"
android:paddingStart="10dp"
android:paddingLeft="10dp"
android:paddingTop="5dp"
android:paddingEnd="10dp"
android:paddingRight="10dp"
android:paddingBottom="5dp"
android:singleLine="true"
android:text="@string/load_attachment"
android:textAllCaps="false"
android:visibility="gone" />
</LinearLayout>
<LinearLayout
android:id="@+id/status_spoiler_mention_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
<TextView
android:id="@+id/status_mention_spoiler"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp" />
</LinearLayout>
<include
layout="@layout/layout_poll"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/status_action_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:padding="@dimen/drawer_padding"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent">
<ImageView
android:id="@+id/status_reply"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/ic_reply"
android:tint="?attr/iconColor"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/status_reply_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="2dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/status_reply"
app:layout_constraintTop_toTopOf="parent" />
<com.varunest.sparkbutton.SparkButton
android:id="@+id/spark_button_reblog"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginStart="15dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/status_reply_count"
app:layout_constraintTop_toTopOf="parent"
app:sparkbutton_activeImage="@drawable/ic_repeat_boost"
app:sparkbutton_iconSize="20dp"
app:sparkbutton_inActiveImage="@drawable/ic_repeat" />
<TextView
android:id="@+id/status_reblog_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawablePadding="2dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/spark_button_reblog"
app:layout_constraintTop_toTopOf="parent" />
<com.varunest.sparkbutton.SparkButton
android:id="@+id/spark_button_fav"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginStart="15dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/status_reblog_count"
app:layout_constraintTop_toTopOf="parent"
app:sparkbutton_activeImage="@drawable/ic_star"
app:sparkbutton_iconSize="20dp"
app:sparkbutton_inActiveImage="@drawable/ic_star_border" />
<TextView
android:id="@+id/status_favorite_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawablePadding="2dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/spark_button_fav"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/status_privacy"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_marginEnd="15dp"
android:tint="?attr/iconColor"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/status_more"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/status_more"
android:layout_width="25dp"
android:layout_height="25dp"
android:contentDescription="@string/display_toot_truncate"
android:src="@drawable/ic_more_horiz"
android:tint="?attr/iconColor"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<include
layout="@layout/layout_quick_reply"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<RelativeLayout
android:id="@+id/container_trans"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
android:visibility="gone" />
</FrameLayout>