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

207 lines
8.4 KiB
XML
Raw Normal View History

2019-09-06 17:55:14 +02:00
<?xml version="1.0" encoding="utf-8"?><!--
2019-01-14 11:50:42 +01:00
Copyright 2019 Thomas Schneider
2019-05-18 11:10:30 +02:00
This file is a part of Fedilab
2019-01-14 11:50:42 +01: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.
2019-05-18 11:10:30 +02:00
Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
2019-01-14 11:50:42 +01:00
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
2019-05-18 11:10:30 +02:00
You should have received a copy of the GNU General Public License along with Fedilab; if not,
2019-01-14 11:50:42 +01:00
see <http://www.gnu.org/licenses>.
-->
2019-06-11 19:38:26 +02:00
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-11-15 16:32:25 +01:00
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/pf_cardview"
2019-11-15 16:32:25 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp">
2019-09-06 17:55:14 +02:00
2019-01-14 11:50:42 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2019-09-06 17:55:14 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-01-14 11:50:42 +01:00
android:layout_gravity="center"
android:gravity="center"
2019-11-15 16:32:25 +01:00
android:orientation="horizontal"
android:paddingLeft="10dp"
2019-11-15 16:32:25 +01:00
android:paddingTop="5dp"
android:paddingRight="10dp"
2019-11-15 16:32:25 +01:00
android:paddingBottom="10dp"
2019-11-10 15:05:14 +01:00
tools:ignore="UseCompoundDrawables">
2019-09-06 17:55:14 +02:00
<ImageView
android:id="@+id/pf_pp"
android:layout_width="40dp"
2019-11-10 15:05:14 +01:00
android:layout_height="40dp"
2019-11-15 16:32:25 +01:00
android:layout_gravity="center"
2019-11-10 15:05:14 +01:00
android:contentDescription="@string/profile_picture" />
2019-09-06 17:55:14 +02:00
<TextView
android:id="@+id/pf_username"
android:layout_width="match_parent"
2019-09-28 10:16:47 +02:00
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_marginStart="15dp"
android:layout_marginLeft="15dp"
android:textSize="16sp"
android:textStyle="bold"
2019-09-28 10:16:47 +02:00
tools:ignore="RtlHardcoded" />
</LinearLayout>
2019-11-15 16:32:25 +01:00
2019-09-28 10:16:47 +02:00
<com.smarteist.autoimageslider.SliderView
android:id="@+id/imageSlider"
2019-01-14 11:50:42 +01:00
android:layout_width="match_parent"
2019-09-28 10:16:47 +02:00
android:layout_height="300dp"
2019-11-15 16:32:25 +01:00
android:visibility="gone"
2019-09-28 10:16:47 +02:00
app:sliderAnimationDuration="1000"
app:sliderAutoCycleDirection="back_and_forth"
app:sliderAutoCycleEnabled="true"
app:sliderCircularHandlerEnabled="true"
app:sliderIndicatorAnimationDuration="600"
app:sliderIndicatorGravity="center_horizontal|bottom"
app:sliderIndicatorMargin="15dp"
app:sliderIndicatorOrientation="horizontal"
app:sliderIndicatorPadding="3dp"
app:sliderIndicatorRadius="2dp"
app:sliderIndicatorSelectedColor="#5A5A5A"
app:sliderIndicatorUnselectedColor="#FFF"
app:sliderScrollTimeInSec="1"
app:sliderStartAutoCycle="false" />
2019-01-14 11:50:42 +01:00
2019-10-13 17:09:46 +02:00
<RelativeLayout
2019-09-29 15:33:59 +02:00
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content">
2019-10-13 17:09:46 +02:00
<ImageView
android:id="@+id/art_media"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:adjustViewBounds="true"
android:scaleType="fitCenter"
android:visibility="gone"
2019-10-13 17:09:46 +02:00
tools:ignore="ContentDescription" />
2019-11-15 16:32:25 +01:00
2019-10-13 17:09:46 +02:00
<ImageView
android:id="@+id/art_media_play"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_centerInParent="true"
android:contentDescription="@string/play_video"
android:src="@drawable/ic_play_arrow"
android:visibility="gone" />
</RelativeLayout>
2019-09-29 15:33:59 +02:00
2019-01-14 11:50:42 +01:00
<LinearLayout
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingLeft="10dp"
android:paddingTop="10dp"
2019-11-15 16:32:25 +01:00
android:paddingRight="10dp"
android:paddingBottom="5dp">
2019-01-14 11:50:42 +01:00
<LinearLayout
2019-09-30 19:18:44 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.varunest.sparkbutton.SparkButton
android:id="@+id/pf_fav"
android:layout_width="30dp"
android:layout_height="30dp"
android:contentDescription="@string/favourite"
2019-11-15 16:32:25 +01:00
app:sparkbutton_activeImage="@drawable/ic_pixelfed_favorite"
app:sparkbutton_iconSize="30dp"
app:sparkbutton_inActiveImage="@drawable/ic_pixelfed_favorite_border" />
2019-09-06 17:55:14 +02:00
<ImageView
android:id="@+id/pf_comment"
2019-11-15 16:32:25 +01:00
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginStart="15dp"
android:contentDescription="@string/leave_a_comment"
android:src="@drawable/ic_pixelfed_comment"
2019-11-15 16:32:25 +01:00
android:tint="?attr/iconColor" />
2019-09-06 17:55:14 +02:00
2019-01-15 16:36:30 +01:00
<com.varunest.sparkbutton.SparkButton
android:id="@+id/pf_share"
android:layout_width="30dp"
2019-01-15 16:36:30 +01:00
android:layout_height="30dp"
2019-09-30 19:18:44 +02:00
android:layout_marginStart="15dp"
2019-11-15 16:32:25 +01:00
android:contentDescription="@string/share"
app:sparkbutton_activeImage="@drawable/ic_repeat_boost"
app:sparkbutton_iconSize="30dp"
app:sparkbutton_inActiveImage="@drawable/ic_repeat" />
<ImageView
2019-09-30 19:18:44 +02:00
android:id="@+id/status_more"
android:layout_width="30dp"
android:layout_height="30dp"
2019-11-10 15:05:14 +01:00
android:layout_gravity="end|center_vertical"
2019-11-15 16:32:25 +01:00
android:layout_marginStart="15dp"
android:contentDescription="@string/display_toot_truncate"
android:src="@drawable/ic_more_pixelfed"
android:tint="?attr/iconColor" />
</LinearLayout>
2019-09-06 17:55:14 +02:00
<LinearLayout
android:id="@+id/pf_bottom_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2019-09-06 17:55:14 +02:00
<TextView
android:id="@+id/pf_likes"
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:textStyle="bold" />
2019-09-06 17:55:14 +02:00
<TextView
android:id="@+id/pf_description"
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:textIsSelectable="true" />
<TextView
android:id="@+id/pf_date"
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:layout_marginTop="5dp" />
</LinearLayout>
2019-01-14 11:50:42 +01:00
</LinearLayout>
2019-11-15 16:32:25 +01:00
2019-09-29 15:02:49 +02:00
<LinearLayout
2019-09-27 19:51:20 +02:00
android:id="@+id/pixelfed_comments"
2019-09-27 18:52:42 +02:00
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:orientation="vertical">
2019-09-29 15:02:49 +02:00
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/lv_comments"
2019-09-27 19:51:20 +02:00
android:layout_width="match_parent"
2019-09-29 15:02:49 +02:00
android:layout_height="wrap_content"
android:scrollbars="none" />
2019-11-15 16:32:25 +01:00
2019-09-27 19:51:20 +02:00
<include
layout="@layout/layout_quick_reply"
2019-09-27 18:52:42 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_marginTop="10dp" />
2019-09-29 15:02:49 +02:00
</LinearLayout>
2019-09-27 19:51:20 +02:00
</LinearLayout>
2019-06-11 19:38:26 +02:00
</androidx.cardview.widget.CardView>