diff options
Diffstat (limited to 'app/src/main/res')
| -rw-r--r-- | app/src/main/res/layout-land/activity_online_game.xml | 178 | ||||
| -rw-r--r-- | app/src/main/res/layout/activity_online_game.xml | 162 |
2 files changed, 231 insertions, 109 deletions
diff --git a/app/src/main/res/layout-land/activity_online_game.xml b/app/src/main/res/layout-land/activity_online_game.xml index 19ff086..9a47c20 100644 --- a/app/src/main/res/layout-land/activity_online_game.xml +++ b/app/src/main/res/layout-land/activity_online_game.xml @@ -45,6 +45,7 @@ android:layout_height="match_parent" android:orientation="vertical" android:background="@drawable/bg_rounded_grey" + android:paddingStart="40dp" android:layout_margin="5dp" android:layout_weight="1"> <LinearLayout @@ -52,82 +53,149 @@ android:layout_height="match_parent" android:layout_weight="1" android:padding="10dp"> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + + <TextView android:id="@+id/square0" - android:layout_margin="10dp" - android:layout_weight="1" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + android:layout_width="100dp" + android:layout_height="100dp" + android:layout_margin="5dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <TextView android:id="@+id/square1" - android:layout_margin="10dp" - android:layout_weight="1" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + android:layout_width="100dp" + android:layout_height="100dp" + android:layout_marginTop="5dp" + android:layout_marginBottom="5dp" + android:layout_marginStart="70dp" + android:layout_marginEnd="70dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <TextView android:id="@+id/square2" - android:layout_margin="10dp" - android:layout_weight="1" /> + android:layout_width="100dp" + android:layout_height="100dp" + android:layout_margin="5dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <!-- <ImageView--> + <!-- android:layout_width="match_parent"--> + <!-- android:layout_height="match_parent"--> + <!-- android:src="@mipmap/emptiness_foreground"--> + <!-- android:id="@+id/square0"--> + <!-- android:layout_marginTop="10dp"--> + <!-- android:layout_marginStart="10dp"--> + <!-- android:layout_marginEnd="10dp"--> + <!-- android:layout_marginBottom="5dp"--> + <!-- android:layout_weight="1" />--> + <!-- <ImageView--> + <!-- android:layout_width="match_parent"--> + <!-- android:layout_height="match_parent"--> + <!-- android:src="@mipmap/emptiness_foreground"--> + <!-- android:id="@+id/square1"--> + <!-- android:layout_marginTop="10dp"--> + <!-- android:layout_marginStart="10dp"--> + <!-- android:layout_marginEnd="10dp"--> + <!-- android:layout_marginBottom="5dp"--> + <!-- android:layout_weight="1" />--> + <!-- <ImageView--> + <!-- android:layout_width="match_parent"--> + <!-- android:layout_height="match_parent"--> + <!-- android:src="@mipmap/emptiness_foreground"--> + <!-- android:id="@+id/square2"--> + <!-- android:layout_marginTop="10dp"--> + <!-- android:layout_marginStart="10dp"--> + <!-- android:layout_marginEnd="10dp"--> + <!-- android:layout_marginBottom="5dp"--> + <!-- android:layout_weight="1" />--> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:padding="10dp"> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + <TextView android:id="@+id/square3" - android:layout_margin="10dp" - android:layout_weight="1" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + android:layout_width="100dp" + android:layout_height="100dp" + android:layout_margin="5dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <TextView android:id="@+id/square4" - android:layout_margin="10dp" - android:layout_weight="1" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + android:layout_width="100dp" + android:layout_height="100dp" + android:layout_marginTop="5dp" + android:layout_marginBottom="5dp" + android:layout_marginStart="70dp" + android:layout_marginEnd="70dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <TextView android:id="@+id/square5" - android:layout_margin="10dp" - android:layout_weight="1" /> + android:layout_width="100dp" + android:layout_height="100dp" + android:layout_margin="5dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:padding="10dp"> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + <TextView android:id="@+id/square6" - android:layout_margin="10dp" - android:layout_weight="1" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + android:layout_width="100dp" + android:layout_height="100dp" + android:layout_margin="5dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <TextView android:id="@+id/square7" - android:layout_margin="10dp" - android:layout_weight="1" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + android:layout_width="100dp" + android:layout_height="100dp" + android:layout_marginTop="5dp" + android:layout_marginBottom="5dp" + android:layout_marginStart="70dp" + android:layout_marginEnd="70dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <TextView android:id="@+id/square8" - android:layout_margin="10dp" - android:layout_weight="1" /> + android:layout_width="100dp" + android:layout_height="100dp" + android:layout_margin="5dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> </LinearLayout> </LinearLayout> </LinearLayout> -</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file +</androidx.constraintlayout.widget.ConstraintLayout> diff --git a/app/src/main/res/layout/activity_online_game.xml b/app/src/main/res/layout/activity_online_game.xml index d9ccef3..f361225 100644 --- a/app/src/main/res/layout/activity_online_game.xml +++ b/app/src/main/res/layout/activity_online_game.xml @@ -52,81 +52,135 @@ android:layout_height="match_parent" android:layout_weight="1" android:padding="10dp"> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + <TextView android:id="@+id/square0" - android:layout_margin="10dp" - android:layout_weight="1" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + android:layout_width="120dp" + android:layout_height="120dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:layout_marginStart="-5dp" + android:layout_marginEnd="5dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <TextView android:id="@+id/square1" - android:layout_margin="10dp" - android:layout_weight="1" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + android:layout_width="120dp" + android:layout_height="120dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <TextView android:id="@+id/square2" - android:layout_margin="10dp" - android:layout_weight="1" /> + android:layout_width="120dp" + android:layout_height="120dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:layout_marginStart="5dp" + android:layout_marginEnd="5dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:padding="10dp"> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + <TextView android:id="@+id/square3" - android:layout_margin="10dp" - android:layout_weight="1" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + android:layout_width="120dp" + android:layout_height="120dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:layout_marginStart="-5dp" + android:layout_marginEnd="5dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <TextView android:id="@+id/square4" - android:layout_margin="10dp" - android:layout_weight="1" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + android:layout_width="120dp" + android:layout_height="120dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <TextView android:id="@+id/square5" - android:layout_margin="10dp" - android:layout_weight="1" /> + android:layout_width="120dp" + android:layout_height="120dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:layout_marginStart="5dp" + android:layout_marginEnd="5dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:padding="10dp"> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + <TextView android:id="@+id/square6" - android:layout_margin="10dp" - android:layout_weight="1" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + android:layout_width="120dp" + android:layout_height="120dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:layout_marginStart="-5dp" + android:layout_marginEnd="5dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <TextView android:id="@+id/square7" - android:layout_margin="10dp" - android:layout_weight="1" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:src="@mipmap/emptiness_foreground" + android:layout_width="120dp" + android:layout_height="120dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> + <TextView android:id="@+id/square8" - android:layout_margin="10dp" - android:layout_weight="1" /> + android:layout_width="120dp" + android:layout_height="120dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:layout_marginStart="5dp" + android:layout_marginEnd="5dp" + android:background="@drawable/bg_rounded_blue" + android:gravity="center" + android:text="" + android:textAlignment="center" + android:textSize="60sp" /> </LinearLayout> </LinearLayout> </LinearLayout> |
