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