Adapting the activity_main_menu.xml

A CheckBox was inserted here, as this is better than a button in our case.
Finally, the Checkbox was set up as a circle (vector file).
This commit is contained in:
ErikWaegerle 2020-07-22 01:51:35 +02:00
parent 5668b2a33f
commit 77520b0d72

View file

@ -8,7 +8,7 @@
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto">
<androidx.coordinatorlayout.widget.CoordinatorLayout
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
android:fitsSystemWindows="true"
tools:context="tu_darmstadt.sudoku.ui.MainActivity"
@ -103,15 +103,28 @@
android:text="@string/difficulty_easy"
android:textSize="@dimen/main_text_difficulty"/>
<RatingBar
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<CheckBox
android:id="@+id/circleButton"
android:layout_width="35dp"
android:layout_height="35dp"
android:button="@drawable/create_game_src" />
<RatingBar
android:id="@+id/difficultyBar"
style="@style/RatingBar"
android:layout_width="wrap_content"
android:layout_gravity="center_horizontal"
android:clickable="true"
android:numStars="3"
android:rating="1"
android:stepSize="1"
style="@style/RatingBar"/>
android:rating="0.5"
android:stepSize="1" />
</LinearLayout>
<Button
android:textColor="?attr/lightestFontColor"
@ -154,7 +167,7 @@
android:text="coachMark"
android:visibility="visible"
android:onClick="coachMark"/> -->
<!--
<!--
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
@ -219,12 +232,12 @@
android:capitalize="none"
android:clickable="false"/>
</LinearLayout>
-->
-->
</LinearLayout>
</LinearLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
<com.google.android.material.navigation.NavigationView
android:id="@+id/nav_view_main"