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

98 lines
3.8 KiB
XML
Raw Normal View History

2019-03-23 17:23:02 +01:00
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2019 Thomas Schneider
2019-05-18 11:10:30 +02:00
This file is a part of Fedilab
2019-03-23 17:23:02 +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-03-23 17:23:02 +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-03-23 17:23:02 +01:00
see <http://www.gnu.org/licenses>.
-->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:orientation="vertical"
2019-03-24 18:12:37 +01:00
android:paddingLeft="20dp"
android:paddingRight="20dp"
2019-03-23 17:23:02 +01:00
android:layout_height="match_parent">
2019-06-04 11:02:15 +02:00
<ScrollView
2019-03-23 17:23:02 +01:00
android:layout_width="match_parent"
2019-06-04 11:02:15 +02:00
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:id="@+id/poll_items_container"
android:layout_height="wrap_content">
<EditText
android:id="@+id/choice_1"
android:hint="@string/poll_choice_1"
android:singleLine="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:layout_marginBottom="10dp"
/>
<EditText
android:id="@+id/choice_2"
android:hint="@string/poll_choice_2"
android:singleLine="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:layout_marginBottom="10dp"
/>
</LinearLayout>
</ScrollView>
<LinearLayout
2019-03-23 17:23:02 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-06-04 11:02:15 +02:00
android:orientation="horizontal">
<ImageButton
android:id="@+id/add_poll_item"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_gravity="center"
android:layout_marginRight="5dp"
android:layout_marginEnd="5dp"
android:adjustViewBounds="true"
android:background="@color/transparent"
android:contentDescription="@string/add_poll_item"
android:scaleType="centerCrop"
android:src="@drawable/ic_add" />
<ImageButton
android:id="@+id/remove_poll_item"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_gravity="center"
android:layout_marginRight="5dp"
android:layout_marginEnd="5dp"
android:adjustViewBounds="true"
android:background="@color/transparent"
android:contentDescription="@string/remove_poll_item"
android:scaleType="centerCrop"
android:src="@drawable/ic_remove_white" />
</LinearLayout>
2019-03-23 17:23:02 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Spinner
2019-03-24 16:38:12 +01:00
android:id="@+id/poll_choice"
android:layout_width="0dp"
2019-03-24 18:12:37 +01:00
android:layout_weight="3"
2019-03-24 16:38:12 +01:00
android:layout_height="wrap_content"/>
<Spinner
android:id="@+id/poll_duration"
android:layout_width="0dp"
2019-03-24 18:12:37 +01:00
android:layout_weight="2"
2019-03-24 16:38:12 +01:00
android:layout_height="wrap_content"/>
2019-03-23 17:23:02 +01:00
</LinearLayout>
</LinearLayout>