summaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/dialog_bubble_exclude_visibility.xml55
-rw-r--r--app/src/main/res/layout/dialog_bubble_reply_visibility.xml35
-rw-r--r--app/src/main/res/layout/drawer_slider.xml8
-rw-r--r--app/src/main/res/layout/drawer_status.xml8
-rw-r--r--app/src/main/res/layout/drawer_status_compose.xml13
-rw-r--r--app/src/main/res/layout/drawer_status_pixelfed.xml111
6 files changed, 229 insertions, 1 deletions
diff --git a/app/src/main/res/layout/dialog_bubble_exclude_visibility.xml b/app/src/main/res/layout/dialog_bubble_exclude_visibility.xml
new file mode 100644
index 000000000..ca956bb7a
--- /dev/null
+++ b/app/src/main/res/layout/dialog_bubble_exclude_visibility.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:padding="@dimen/fab_margin">
+
+ <com.google.android.material.checkbox.MaterialCheckBox
+ android:id="@+id/value_public"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical|start"
+ android:text="@string/v_public"
+ android:textSize="16sp" />
+
+ <com.google.android.material.checkbox.MaterialCheckBox
+ android:id="@+id/value_unlisted"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical|start"
+ android:text="@string/v_unlisted"
+ android:textSize="16sp" />
+
+ <com.google.android.material.checkbox.MaterialCheckBox
+ android:id="@+id/value_local"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical|start"
+ android:text="@string/local"
+ android:textSize="16sp" />
+
+ <com.google.android.material.checkbox.MaterialCheckBox
+ android:id="@+id/value_private"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical|start"
+ android:text="@string/v_private"
+ android:textSize="16sp" />
+
+ <com.google.android.material.checkbox.MaterialCheckBox
+ android:id="@+id/value_direct"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical|start"
+ android:text="@string/v_direct"
+ android:textSize="16sp" />
+
+ <com.google.android.material.checkbox.MaterialCheckBox
+ android:id="@+id/value_list"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical|start"
+ android:text="@string/v_list"
+ android:textSize="16sp" />
+</androidx.appcompat.widget.LinearLayoutCompat> \ No newline at end of file
diff --git a/app/src/main/res/layout/dialog_bubble_reply_visibility.xml b/app/src/main/res/layout/dialog_bubble_reply_visibility.xml
new file mode 100644
index 000000000..7739fb3d2
--- /dev/null
+++ b/app/src/main/res/layout/dialog_bubble_reply_visibility.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:padding="@dimen/fab_margin">
+
+ <RadioGroup
+ android:id="@+id/reply_visibility"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <androidx.appcompat.widget.AppCompatRadioButton
+ android:id="@+id/all"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/all"
+ android:textSize="16sp" />
+
+ <androidx.appcompat.widget.AppCompatRadioButton
+ android:id="@+id/following"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/following"
+ android:textSize="16sp" />
+
+ <androidx.appcompat.widget.AppCompatRadioButton
+ android:id="@+id/self"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/self"
+ android:textSize="16sp" />
+ </RadioGroup>
+</androidx.appcompat.widget.LinearLayoutCompat> \ No newline at end of file
diff --git a/app/src/main/res/layout/drawer_slider.xml b/app/src/main/res/layout/drawer_slider.xml
new file mode 100644
index 000000000..33f3f3302
--- /dev/null
+++ b/app/src/main/res/layout/drawer_slider.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.appcompat.widget.AppCompatImageView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/iv_auto_image_slider"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:scaleType="centerCrop"
+ tools:src="@tools:sample/backgrounds/scenic" /> \ No newline at end of file
diff --git a/app/src/main/res/layout/drawer_status.xml b/app/src/main/res/layout/drawer_status.xml
index 7dcc0a61d..d28cfe2bb 100644
--- a/app/src/main/res/layout/drawer_status.xml
+++ b/app/src/main/res/layout/drawer_status.xml
@@ -160,6 +160,14 @@
tools:text="@tools:sample/full_names" />
<androidx.appcompat.widget.AppCompatImageView
+ android:id="@+id/local_only"
+ android:layout_width="20dp"
+ android:layout_height="20dp"
+ android:layout_marginEnd="5dp"
+ android:contentDescription="@string/local_only"
+ android:src="@drawable/ic_baseline_local_only_24" />
+
+ <androidx.appcompat.widget.AppCompatImageView
android:id="@+id/visibility_small"
android:layout_width="20dp"
android:layout_height="20dp"
diff --git a/app/src/main/res/layout/drawer_status_compose.xml b/app/src/main/res/layout/drawer_status_compose.xml
index 11e6c1bf7..81e2173e1 100644
--- a/app/src/main/res/layout/drawer_status_compose.xml
+++ b/app/src/main/res/layout/drawer_status_compose.xml
@@ -65,7 +65,7 @@
android:focusable="true"
android:gravity="top|start"
android:inputType="textMultiLine|textCapSentences"
- android:minLines="6"
+ android:minLines="8"
app:layout_constraintEnd_toStartOf="@id/button_emoji"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/content_spoiler" />
@@ -103,6 +103,17 @@
app:layout_constraintTop_toBottomOf="@id/button_emoji_one"
tools:visibility="visible" />
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/button_local_only"
+ style="@style/Fedilab.SmallIconButton"
+ android:layout_marginEnd="6dp"
+ android:contentDescription="@string/local_only"
+ android:visibility="gone"
+ app:icon="@drawable/ic_baseline_remove_red_eye_24"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/button_text_format"
+ tools:visibility="visible" />
+
<com.google.android.material.checkbox.MaterialCheckBox
android:id="@+id/sensitive_media"
android:layout_width="0dp"
diff --git a/app/src/main/res/layout/drawer_status_pixelfed.xml b/app/src/main/res/layout/drawer_status_pixelfed.xml
new file mode 100644
index 000000000..c410908d1
--- /dev/null
+++ b/app/src/main/res/layout/drawer_status_pixelfed.xml
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+ Copyright 2022 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>.
+-->
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/art_container"
+ android:layout_marginHorizontal="@dimen/card_margin"
+ android:layout_marginTop="@dimen/card_margin"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <com.smarteist.autoimageslider.SliderView
+ android:id="@+id/art_media"
+ android:layout_width="match_parent"
+ android:layout_height="300dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:sliderAnimationDuration="200"
+ app:sliderAutoCycleDirection="back_and_forth"
+ app:sliderAutoCycleEnabled="true"
+ app:sliderIndicatorAnimationDuration="200"
+ app:sliderIndicatorGravity="center_horizontal|top"
+ app:sliderIndicatorMargin="15dp"
+ app:sliderIndicatorOrientation="horizontal"
+ app:sliderIndicatorPadding="3dp"
+ app:sliderIndicatorRadius="2dp"
+ app:sliderIndicatorSelectedColor="?colorPrimary"
+ app:sliderIndicatorUnselectedColor="?colorControlNormal"
+ app:sliderScrollTimeInSec="1"
+ app:sliderStartAutoCycle="true" />
+
+ <androidx.appcompat.widget.LinearLayoutCompat
+ android:id="@+id/bottom_banner"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="#44000000"
+ android:orientation="horizontal"
+ android:padding="10dp"
+ app:layout_constraintBottom_toBottomOf="@+id/art_media"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent">
+
+ <RelativeLayout
+ android:layout_width="50dp"
+ android:layout_height="50dp">
+
+ <androidx.appcompat.widget.AppCompatImageView
+ android:id="@+id/art_pp"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="center" />
+
+ <androidx.appcompat.widget.AppCompatImageView
+ android:id="@+id/art_reblog_pp"
+ android:layout_width="20dp"
+ android:layout_height="20dp"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentBottom="true" />
+ </RelativeLayout>
+
+
+ <androidx.appcompat.widget.LinearLayoutCompat
+ android:id="@+id/art_author"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="10dp"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/art_username"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textColor="@color/white"
+ android:textSize="16sp"
+ android:textStyle="bold" />
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/art_acct"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textColor="@color/white" />
+ </androidx.appcompat.widget.LinearLayoutCompat>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/comment_number"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="10dp"
+ android:drawableStart="@drawable/ic_baseline_chat_bubble_24"
+ android:drawablePadding="5dp"
+ android:textSize="16sp"
+ tools:text="23" />
+ </androidx.appcompat.widget.LinearLayoutCompat>
+</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file