382 lines
20 KiB
XML
382 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 android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:card_view="http://schemas.android.com/tools"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/card_status_container">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="10dp"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:layout_marginLeft="5dp"
|
|
android:layout_marginRight="5dp"
|
|
android:divider="?android:dividerHorizontal"
|
|
android:showDividers="end"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/main_container"
|
|
android:orientation="horizontal"
|
|
card_view:ignore="DisableBaselineAlignment">
|
|
<LinearLayout
|
|
android:layout_width="50dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<ImageView
|
|
android:layout_marginTop="5dp"
|
|
android:id="@+id/notification_account_profile"
|
|
android:layout_height="50dp"
|
|
android:layout_width="50dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:gravity="center_horizontal|top"
|
|
android:contentDescription="@string/profile_picture"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:padding="5dp"
|
|
android:id="@+id/notification_type"
|
|
android:textSize="14sp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
<TextView
|
|
android:id="@+id/notification_account_username"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
<TextView
|
|
android:id="@+id/status_date"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginStart="2dp"
|
|
android:layout_marginLeft="2dp"
|
|
android:textSize="12sp"
|
|
android:layout_gravity="end"
|
|
android:gravity="end"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<RelativeLayout
|
|
android:layout_width="50dp"
|
|
android:layout_height="wrap_content">
|
|
<ImageView
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:id="@+id/notification_delete"
|
|
android:src="@drawable/ic_delete"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:contentDescription="@string/delete_notification" />
|
|
</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:orientation="vertical"
|
|
android:visibility="gone"
|
|
android:layout_height="wrap_content">
|
|
<app.fedilab.android.helper.CustomTextView
|
|
android:id="@+id/status_spoiler"
|
|
android:layout_marginBottom="10dp"
|
|
android:textIsSelectable="true"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
<Button
|
|
android:id="@+id/status_spoiler_button"
|
|
android:textAllCaps="false"
|
|
android:drawableLeft="@drawable/ic_remove_red_eye"
|
|
android:drawableStart="@drawable/ic_remove_red_eye"
|
|
android:gravity="center"
|
|
android:drawablePadding="5dp"
|
|
android:paddingLeft="10dp"
|
|
android:paddingStart="10dp"
|
|
android:paddingRight="10dp"
|
|
android:paddingEnd="10dp"
|
|
android:paddingTop="5dp"
|
|
android:paddingBottom="5dp"
|
|
android:maxLines="1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="?attr/borderless"
|
|
android:text="@string/load_attachment_spoiler" />
|
|
</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_marginBottom="10dp"
|
|
android:textIsSelectable="true"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
<LinearLayout
|
|
android:id="@+id/status_document_container"
|
|
android:orientation="horizontal"
|
|
android:layout_marginBottom="10dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp"
|
|
android:baselineAligned="false">
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
>
|
|
<ImageView
|
|
android:id="@+id/status_prev1"
|
|
android:layout_width="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:layout_height="match_parent" />
|
|
<ImageView
|
|
android:id="@+id/status_prev1_play"
|
|
android:visibility="gone"
|
|
android:layout_centerInParent="true"
|
|
android:layout_width="20dp"
|
|
android:src="@drawable/ic_play_arrow"
|
|
android:layout_height="20dp"
|
|
android:contentDescription="@string/play_video" />
|
|
</RelativeLayout>
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="0dp"
|
|
android:layout_marginLeft="2dp"
|
|
android:layout_marginStart="2dp"
|
|
android:id="@+id/status_container2"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent">
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1">
|
|
<ImageView
|
|
android:id="@+id/status_prev2"
|
|
android:layout_width="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:layout_height="match_parent"
|
|
/>
|
|
<ImageView
|
|
android:visibility="gone"
|
|
android:id="@+id/status_prev2_play"
|
|
android:layout_centerInParent="true"
|
|
android:layout_width="20dp"
|
|
android:src="@drawable/ic_play_arrow"
|
|
android:layout_height="20dp"
|
|
android:contentDescription="@string/play_video" />
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_weight="1"
|
|
android:layout_width="match_parent"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="2dp"
|
|
android:id="@+id/status_container3"
|
|
android:layout_height="0dp"
|
|
android:baselineAligned="false">
|
|
<RelativeLayout
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content">
|
|
<ImageView
|
|
android:id="@+id/status_prev3"
|
|
android:layout_width="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:layout_height="match_parent"
|
|
/>
|
|
<ImageView
|
|
android:id="@+id/status_prev3_play"
|
|
android:layout_centerInParent="true"
|
|
android:layout_width="20dp"
|
|
android:src="@drawable/ic_play_arrow"
|
|
android:visibility="gone"
|
|
android:layout_height="20dp"
|
|
android:contentDescription="@string/play_video" />
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:layout_marginLeft="2dp"
|
|
android:layout_marginStart="2dp"
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:id="@+id/status_prev4_container"
|
|
android:layout_height="wrap_content">
|
|
<ImageView
|
|
android:id="@+id/status_prev4"
|
|
android:layout_width="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:layout_height="match_parent"
|
|
/>
|
|
<ImageView
|
|
android:id="@+id/status_prev4_play"
|
|
android:layout_centerInParent="true"
|
|
android:visibility="gone"
|
|
android:layout_width="20dp"
|
|
android:src="@drawable/ic_play_arrow"
|
|
android:layout_height="20dp"
|
|
android:contentDescription="@string/play_video" />
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<Button
|
|
android:id="@+id/status_show_more"
|
|
android:visibility="gone"
|
|
android:textAllCaps="false"
|
|
android:drawableLeft="@drawable/ic_photo"
|
|
android:drawableStart="@drawable/ic_photo"
|
|
android:gravity="center"
|
|
android:drawablePadding="5dp"
|
|
android:paddingLeft="10dp"
|
|
android:paddingStart="10dp"
|
|
android:paddingRight="10dp"
|
|
android:paddingEnd="10dp"
|
|
android:paddingTop="5dp"
|
|
android:paddingBottom="5dp"
|
|
android:maxLines="1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="?attr/borderless"
|
|
android:text="@string/load_attachment" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:id="@+id/status_spoiler_mention_container"
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical"
|
|
android:visibility="gone"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:id="@+id/status_mention_spoiler"
|
|
android:layout_marginBottom="10dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
<include
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
layout="@layout/layout_poll" />
|
|
<LinearLayout
|
|
android:id="@+id/status_action_container"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="10dp"
|
|
android:padding="@dimen/drawer_padding"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:drawablePadding="2dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/status_reply"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
<LinearLayout
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginStart="15dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:layout_height="wrap_content">
|
|
<com.varunest.sparkbutton.SparkButton
|
|
android:id="@+id/spark_button_reblog"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
app:sparkbutton_activeImage="@drawable/ic_repeat_boost"
|
|
app:sparkbutton_inActiveImage="@drawable/ic_repeat"
|
|
app:sparkbutton_iconSize="20dp"
|
|
/>
|
|
<TextView
|
|
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" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginStart="15dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:layout_height="wrap_content">
|
|
<com.varunest.sparkbutton.SparkButton
|
|
android:id="@+id/spark_button_fav"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
app:sparkbutton_activeImage="@drawable/ic_star"
|
|
app:sparkbutton_inActiveImage="@drawable/ic_star_border"
|
|
app:sparkbutton_iconSize="20dp"
|
|
/>
|
|
<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" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_gravity="end"
|
|
android:gravity="end"
|
|
android:layout_height="wrap_content">
|
|
<ImageView
|
|
android:id="@+id/status_privacy"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:contentDescription="@string/toot_visibility_tilte"/>
|
|
<ImageView
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginStart="15dp"
|
|
android:id="@+id/status_more"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:src="@drawable/ic_more_horiz"
|
|
android:contentDescription="@string/display_toot_truncate" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<RelativeLayout
|
|
android:visibility="gone"
|
|
android:background="@color/white"
|
|
android:id="@+id/container_trans"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
</FrameLayout> |