Added padding to MainActivity

This commit is contained in:
luca0N! 2021-03-14 15:08:41 -03:00
parent cff137eded
commit cf4ffba3d9
Signed by: luca0N
GPG Key ID: 2E7B4655CF16D7D6
2 changed files with 58 additions and 53 deletions

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>