|
@@ -0,0 +1,133 @@
|
|
|
+<!--
|
|
|
+ Nextcloud Android client application
|
|
|
+
|
|
|
+ @author Marcel Hibbe
|
|
|
+ Copyright (C) 2021 Marcel Hibbe <dev@mhibbe.de>
|
|
|
+
|
|
|
+ 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:orientation="vertical"
|
|
|
+ android:padding="@dimen/standard_padding"
|
|
|
+ tools:background="@color/white">
|
|
|
+
|
|
|
+ <!-- <androidx.emoji.widget.EmojiTextView-->
|
|
|
+ <!-- android:layout_width="match_parent"-->
|
|
|
+ <!-- android:layout_height="wrap_content"-->
|
|
|
+ <!-- android:text="@string/nc_create_poll"-->
|
|
|
+ <!-- android:textStyle="bold"-->
|
|
|
+ <!-- android:layout_marginBottom="@dimen/standard_half_margin"/>-->
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textColor="@color/colorPrimary"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:text="Question" />
|
|
|
+
|
|
|
+ <com.nextcloud.talk.utils.EmojiTextInputEditText
|
|
|
+ android:id="@+id/poll_create_question"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:singleLine="true" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textColor="@color/colorPrimary"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:layout_marginTop="@dimen/standard_margin"
|
|
|
+ android:text="Options" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/poll_create_options_list_wrapper"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/poll_create_options_list"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ tools:listitem="@layout/poll_create_options_item" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/poll_add_option"
|
|
|
+ style="@style/OutlinedButton"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="@dimen/standard_half_margin"
|
|
|
+ app:icon="@drawable/ic_add_grey600_24px"
|
|
|
+ app:cornerRadius="@dimen/button_corner_radius"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:text="@string/polls_add_option" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textColor="@color/colorPrimary"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:layout_marginTop="@dimen/standard_margin"
|
|
|
+ android:layout_marginBottom="@dimen/standard_half_margin"
|
|
|
+
|
|
|
+ android:text="Settings" />
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ android:id="@+id/poll_private_poll_checkbox"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Private poll" />
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ android:id="@+id/poll_multiple_answers_checkbox"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Multiple answers" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginTop="@dimen/standard_margin"
|
|
|
+
|
|
|
+ android:gravity="end">
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/poll_dismiss"
|
|
|
+ style="@style/OutlinedButton"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="@dimen/standard_half_margin"
|
|
|
+ app:cornerRadius="@dimen/button_corner_radius"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:text="@string/nc_common_dismiss" />
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/poll_create_button"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="@dimen/standard_half_margin"
|
|
|
+ app:cornerRadius="@dimen/button_corner_radius"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:text="@string/nc_create_poll"
|
|
|
+ android:theme="@style/Button.Primary" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</LinearLayout>
|