Adjusting the activity_daily_sudoku.xml and the strings.xml

Change and adjustment of the layout see MockUp 3

1.) Enlarge the stars and the text difficulty of the "DailySudokus"
2.) Adjusting the layout and changing the padding
3.) hyphen has been reduced to a suitable size
4.) Modify/add the output text for played games in strings.xml
This commit is contained in:
ErikWaegerle 2020-06-01 16:43:51 +02:00
parent c7f3db65f1
commit 87c2b09e18
2 changed files with 42 additions and 36 deletions

View file

@ -82,42 +82,44 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/first_diff_text" android:layout_below="@+id/first_diff_text"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginTop="30dp" android:layout_marginRight="10dp"
android:layout_marginBottom="31dp" android:layout_marginBottom="10dp"
android:numStars="4" android:numStars="4"
android:rating="2" /> android:scaleX="1.5"
android:scaleY="1.5" />
<TextView <TextView
android:id="@+id/first_diff_text" android:id="@+id/first_diff_text"
android:layout_width="match_parent" android:layout_width="fill_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:gravity="bottom|center|center_horizontal" android:gravity="center|center_horizontal"
android:text="diffi" android:text="diffi"
android:textSize="32dp" /> android:textSize="22sp" />
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>
<RelativeLayout <RelativeLayout
android:layout_width="0dp" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1"> android:layout_weight="1"
android:minHeight="5dp">
<View <View
android:layout_width="2dp" android:layout_width="1dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginTop="@dimen/activity_horizontal_margin" android:layout_marginTop="0dp"
android:layout_marginBottom="@dimen/activity_horizontal_margin" android:layout_marginBottom="50dp"
android:background="@color/colorPrimary" android:background="@color/colorPrimary"
android:foregroundGravity="center_vertical" /> android:foregroundGravity="center_vertical" />
@ -125,27 +127,30 @@
<LinearLayout <LinearLayout
android:layout_width="2dp" android:layout_width="2dp"
android:layout_height="fill_parent" android:layout_height="match_parent"
android:layout_weight="2" android:layout_weight="2"
android:orientation="vertical" android:orientation="vertical"
android:paddingTop="@dimen/activity_horizontal_margin" android:paddingTop="0dp"
android:weightSum="6"> android:weightSum="6">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="fill_parent"
android:layout_height="match_parent" android:layout_height="fill_parent"
android:layout_weight="1.0" android:layout_gravity="top"
android:layout_marginRight="0dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:orientation="vertical" android:orientation="vertical"
android:paddingTop="@dimen/activity_horizontal_margin" android:paddingTop="0dp"
android:weightSum="6"> android:weightSum="10">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginBottom="0dp" android:layout_marginBottom="0dp"
android:layout_weight="1" android:layout_weight="2"
android:text="@string/number_of_hints" /> android:text="@string/daily_number_of_hints" />
<TextView <TextView
android:id="@+id/numb_of_hints" android:id="@+id/numb_of_hints"
@ -160,8 +165,8 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_weight="1" android:layout_weight="2"
android:text="@string/number_of_games" /> android:text="@string/number_of_completed_games" />
<TextView <TextView
android:id="@+id/numb_of_total_games" android:id="@+id/numb_of_total_games"
@ -175,7 +180,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_weight="1" android:layout_weight="2"
android:text="@string/total_of_time" /> android:text="@string/total_of_time" />
<TextView <TextView
@ -201,12 +206,12 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="fill_parent" android:layout_width="wrap_content"
android:layout_height="0dp" android:layout_height="wrap_content"
android:layout_weight="1.0"> android:layout_weight="1.0">
<View <View
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="2dp" android:layout_height="2dp"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
@ -218,9 +223,9 @@
<ListView <ListView
android:id="@+id/sudoku_list" android:id="@+id/sudoku_list"
android:layout_width="match_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="270dp"
android:layout_weight="1" /> android:layout_weight="6" />
</LinearLayout> </LinearLayout>
@ -231,8 +236,8 @@
android:id="@+id/floatingActionButton" android:id="@+id/floatingActionButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="30dp" android:layout_marginEnd="20dp"
android:layout_marginRight="30dp" android:layout_marginRight="25dp"
android:layout_marginBottom="290dp" android:layout_marginBottom="290dp"
android:clickable="true" android:clickable="true"
android:onClick="onClick" android:onClick="onClick"

View file

@ -155,6 +155,7 @@
<!-- ### DailySudokuActivity ###--> <!-- ### DailySudokuActivity ###-->
<string name="finished_daily_sudoku">You have already solved the sudoku of the day</string> <string name="finished_daily_sudoku">You have already solved the sudoku of the day</string>
<string name="daily_number_of_hints">used hints</string> <string name="daily_number_of_hints">Used hints</string>
<string name="number_of_completed_games">Completed games</string>
</resources> </resources>