|
4 | 4 | xmlns:tools="http://schemas.android.com/tools"
|
5 | 5 | android:layout_width="match_parent"
|
6 | 6 | android:layout_height="match_parent"
|
7 |
| - tools:context="dragosholban.com.androidpuzzlegame.PuzzleActivity"> |
| 7 | + tools:context="dragosholban.com.androidpuzzlegame.PuzzleActivity" |
| 8 | + android:background="@drawable/table_background"> |
8 | 9 |
|
9 | 10 | <ImageView
|
10 |
| - android:id="@+id/imageView" |
11 | 11 | android:layout_width="0dp"
|
12 | 12 | android:layout_height="0dp"
|
13 |
| - android:layout_marginBottom="8dp" |
14 | 13 | android:layout_marginEnd="8dp"
|
15 | 14 | android:layout_marginStart="8dp"
|
16 | 15 | android:layout_marginTop="8dp"
|
| 16 | + android:alpha="1.0" |
| 17 | + app:layout_constraintDimensionRatio="H,4:5" |
| 18 | + app:layout_constraintLeft_toLeftOf="parent" |
| 19 | + app:layout_constraintRight_toRightOf="parent" |
| 20 | + app:layout_constraintTop_toTopOf="parent" |
| 21 | + app:srcCompat="@drawable/puzzle_frame" /> |
| 22 | + |
| 23 | + <ImageView |
| 24 | + android:id="@+id/imageView" |
| 25 | + android:layout_width="0dp" |
| 26 | + android:layout_height="0dp" |
| 27 | + android:layout_marginEnd="16dp" |
| 28 | + android:layout_marginStart="16dp" |
| 29 | + android:layout_marginTop="18dp" |
17 | 30 | android:scaleType="centerCrop"
|
18 |
| - app:layout_constraintBottom_toBottomOf="parent" |
| 31 | + app:layout_constraintDimensionRatio="H,4:5" |
19 | 32 | app:layout_constraintEnd_toEndOf="parent"
|
20 | 33 | app:layout_constraintLeft_toLeftOf="parent"
|
21 | 34 | app:layout_constraintRight_toRightOf="parent"
|
|
0 commit comments