Add circle button check box to all other variants of the MainActivity layout

This commit is contained in:
uykek 2020-08-09 08:28:33 +02:00
parent 98dc83a6c9
commit 6c46c78e49
3 changed files with 43 additions and 7 deletions

View file

@ -9,9 +9,6 @@
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto">
<androidx.coordinatorlayout.widget.CoordinatorLayout <androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:fitsSystemWindows="true" android:fitsSystemWindows="true"
tools:context="tu_darmstadt.sudoku.ui.MainActivity" tools:context="tu_darmstadt.sudoku.ui.MainActivity"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -81,8 +78,7 @@
android:onClick="onClick"/> android:onClick="onClick"/>
</RelativeLayout> </RelativeLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/scroller" android:layout_below="@+id/scroller"
@ -106,10 +102,21 @@
android:text="@string/difficulty_easy" android:text="@string/difficulty_easy"
android:textSize="@dimen/main_text_difficulty"/> android:textSize="@dimen/main_text_difficulty"/>
<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 <RatingBar
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:id="@+id/difficultyBar" android:id="@+id/difficultyBar"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:clickable="true" android:clickable="true"
@ -118,6 +125,8 @@
android:stepSize="1" android:stepSize="1"
style="@style/RatingBar"/> style="@style/RatingBar"/>
</LinearLayout>
<Button <Button
android:textColor="?attr/lightestFontColor" android:textColor="?attr/lightestFontColor"
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -104,6 +104,18 @@
android:text="@string/difficulty_easy" android:text="@string/difficulty_easy"
android:textSize="@dimen/main_text_difficulty"/> android:textSize="@dimen/main_text_difficulty"/>
<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 <RatingBar
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -116,6 +128,7 @@
android:scaleX="0.75" android:scaleX="0.75"
android:scaleY="0.75" android:scaleY="0.75"
style="@style/RatingBar"/> style="@style/RatingBar"/>
</LinearLayout>
<Button <Button
android:textColor="?attr/lightestFontColor" android:textColor="?attr/lightestFontColor"

View file

@ -107,6 +107,19 @@
android:text="@string/difficulty_easy" android:text="@string/difficulty_easy"
android:textSize="@dimen/main_text_difficulty"/> android:textSize="@dimen/main_text_difficulty"/>
<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:layout_gravity="center_horizontal"
android:button="@drawable/create_game_src" />
<RatingBar <RatingBar
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -121,6 +134,7 @@
android:paddingTop="70dp" android:paddingTop="70dp"
style="@style/RatingBar"/> style="@style/RatingBar"/>
</LinearLayout>
<Button <Button
android:textColor="?attr/lightestFontColor" android:textColor="?attr/lightestFontColor"
android:layout_width="match_parent" android:layout_width="match_parent"