|
@@ -0,0 +1,239 @@
|
|
|
+<!--
|
|
|
+ Nextcloud Android client application
|
|
|
+
|
|
|
+ Copyright (C) 2020 Tobias Kaminsky
|
|
|
+ Copyright (C) 2020 Nextcloud GmbH
|
|
|
+
|
|
|
+ This program is free software: you can redistribute it and/or modify
|
|
|
+ it under the terms of the GNU General Public License version 2,
|
|
|
+ as published by the Free Software Foundation.
|
|
|
+
|
|
|
+ This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
+-->
|
|
|
+<LinearLayout 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:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_margin="@dimen/standard_margin"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/onlineStatusView"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/online_status"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/statusView"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:baselineAligned="false"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/onlineStatusView">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/onlineStatus"
|
|
|
+ style="@style/Widget.MaterialComponents.Button.TextButton.Icon"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/account_action_button_margin"
|
|
|
+ android:layout_marginEnd="@dimen/account_action_button_margin"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingEnd="0dp"
|
|
|
+ android:text="@string/online"
|
|
|
+ android:textAlignment="textStart"
|
|
|
+ android:textAllCaps="false"
|
|
|
+ android:textColor="@color/fontAppbar"
|
|
|
+ app:backgroundTint="@color/grey_200"
|
|
|
+ app:cornerRadius="5dp"
|
|
|
+ app:icon="@drawable/online_status"
|
|
|
+ app:iconGravity="start"
|
|
|
+ app:iconPadding="22dp"
|
|
|
+ app:iconTint="@color/hwSecurityGreen" />
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/dndStatus"
|
|
|
+ style="@style/Widget.MaterialComponents.Button.TextButton.Icon"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/account_action_button_margin"
|
|
|
+ android:layout_marginEnd="@dimen/account_action_button_margin"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingEnd="0dp"
|
|
|
+ android:text="@string/dnd"
|
|
|
+ android:textAlignment="textStart"
|
|
|
+ android:textAllCaps="false"
|
|
|
+ android:textColor="@color/fontAppbar"
|
|
|
+ app:backgroundTint="@color/grey_200"
|
|
|
+ app:cornerRadius="5dp"
|
|
|
+ app:icon="@drawable/ic_user_status_dnd"
|
|
|
+ app:iconGravity="start"
|
|
|
+ app:iconPadding="22dp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/awayStatus"
|
|
|
+ style="@style/Widget.MaterialComponents.Button.TextButton.Icon"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/account_action_button_margin"
|
|
|
+ android:layout_marginEnd="@dimen/account_action_button_margin"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingEnd="0dp"
|
|
|
+ android:text="@string/away"
|
|
|
+ android:textAlignment="textStart"
|
|
|
+ android:textAllCaps="false"
|
|
|
+ android:textColor="@color/fontAppbar"
|
|
|
+ app:backgroundTint="@color/grey_200"
|
|
|
+ app:cornerRadius="5dp"
|
|
|
+ app:icon="@drawable/ic_user_status_away"
|
|
|
+ app:iconGravity="start"
|
|
|
+ app:iconPadding="22dp"
|
|
|
+ app:iconTint="#f4a331" />
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/invisibleStatus"
|
|
|
+ style="@style/Widget.MaterialComponents.Button.TextButton.Icon"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/account_action_button_margin"
|
|
|
+ android:layout_marginEnd="@dimen/account_action_button_margin"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingEnd="0dp"
|
|
|
+ android:text="@string/invisible"
|
|
|
+ android:textAlignment="textStart"
|
|
|
+ android:textAllCaps="false"
|
|
|
+ android:textColor="@color/fontAppbar"
|
|
|
+ app:backgroundTint="@color/grey_200"
|
|
|
+ app:cornerRadius="5dp"
|
|
|
+ app:icon="@drawable/ic_user_status_invisible"
|
|
|
+ app:iconGravity="start"
|
|
|
+ app:iconPadding="22dp"
|
|
|
+ app:iconTint="@color/black" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/separator_line"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:layout_marginTop="@dimen/standard_quarter_margin"
|
|
|
+ android:background="@color/list_divider_background"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/statusView" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/statusMessage"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/status_message"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/statusView"
|
|
|
+ tools:layout_editor_absoluteX="175dp" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ tools:layout_editor_absoluteX="201dp"
|
|
|
+ tools:layout_editor_absoluteY="141dp">
|
|
|
+
|
|
|
+ <ImageButton
|
|
|
+ android:id="@+id/imageButton"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:contentDescription="@string/set_status_icon"
|
|
|
+ android:src="@drawable/ic_cloud_sync_on" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/customStatusInput"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:hint="@string/whats_your_status"
|
|
|
+ android:importantForAutofill="no"
|
|
|
+ android:inputType="textAutoCorrect" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/customStatusList"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ tools:itemCount="5"
|
|
|
+ tools:listitem="@layout/custom_status">
|
|
|
+
|
|
|
+ </androidx.recyclerview.widget.RecyclerView>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textView3"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/clear_status_message_after" />
|
|
|
+
|
|
|
+ <Spinner
|
|
|
+ android:id="@+id/spinner"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/clearStatus"
|
|
|
+ style="@style/OutlinedButton"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="@dimen/standard_padding"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/clear_status_message"
|
|
|
+ app:cornerRadius="@dimen/button_corner_radius" />
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/setStatus"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="@dimen/standard_padding"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_status_message"
|
|
|
+ android:theme="@style/Button.Primary"
|
|
|
+ app:cornerRadius="@dimen/button_corner_radius" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</LinearLayout>
|