Compare commits

...

2 Commits

Author SHA1 Message Date
luca0N! d40b0709a5
Added missing exception file 2021-03-14 15:09:05 -03:00
luca0N! cf4ffba3d9
Added padding to MainActivity 2021-03-14 15:08:41 -03:00
3 changed files with 84 additions and 53 deletions

View File

@ -0,0 +1,26 @@
/*
Pluck: an open source trivia game for Android
Copyright (C) 2021 Joguitos do luca0N!
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.
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 <https://www.gnu.org/licenses/>.
This game is a fork of LibreTrivia, and its source code is available at
<https://github.com/tryton-vanmeer/LibreTrivia>.
Contact us at <joguitos+pluck@luca0n.com>.
*/
package com.luca0n.joguitos.pluck.exceptions;
public class InvalidServerResponseException extends Exception {}

View File

@ -23,68 +23,68 @@ Contact us at <joguitos+pluck@luca0n.com>.
-->
<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:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="io.github.trytonvanmeer.libretrivia.activities.MainActivity">
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"
tools:context="io.github.trytonvanmeer.libretrivia.activities.MainActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/margin_default"
android:padding="@dimen/padding_default"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent">
<!-- Select Amount -->
<TextView
style="@style/TextLabel"
android:labelFor="@id/spinner_number"
android:text="@string/ui_amount" />
<!-- Select Amount -->
<TextView
style="@style/TextLabel"
android:labelFor="@id/spinner_number"
android:text="@string/ui_amount" />
<Spinner
android:id="@+id/spinner_number"
style="@style/Spinner" />
<Spinner
android:id="@+id/spinner_number"
style="@style/Spinner" />
<!-- Select Category Spinner -->
<TextView
style="@style/TextLabel"
android:labelFor="@id/spinner_category"
android:text="@string/ui_category" />
<!-- Select Category Spinner -->
<TextView
style="@style/TextLabel"
android:labelFor="@id/spinner_category"
android:text="@string/ui_category" />
<Spinner
android:id="@+id/spinner_category"
style="@style/Spinner" />
<Spinner
android:id="@+id/spinner_category"
style="@style/Spinner" />
<!-- Select Difficulty Spinner -->
<TextView
style="@style/TextLabel"
android:labelFor="@id/spinner_difficulty"
android:text="@string/ui_difficulty" />
<!-- Select Difficulty Spinner -->
<TextView
style="@style/TextLabel"
android:labelFor="@id/spinner_difficulty"
android:text="@string/ui_difficulty" />
<Spinner
android:id="@+id/spinner_difficulty"
style="@style/Spinner" />
<Spinner
android:id="@+id/spinner_difficulty"
style="@style/Spinner" />
<!-- Play Button -->
<Button
android:id="@+id/button_play"
style="@style/Button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/ui_start_game"
android:textSize="24sp" />
<!-- Play Button -->
<Button
android:id="@+id/button_play"
style="@style/Button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/ui_start_game"
android:textSize="24sp" />
</LinearLayout>
</ScrollView>
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="margin_default">8dp</dimen>
<dimen name="padding_default">12dp</dimen>
</resources>