Skip to content

Commit a8d23a4

Browse files
committed
Final Touches
1 parent 572eca9 commit a8d23a4

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed
Loading
Loading

app/src/main/res/layout/activity_main.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7-
tools:context="dragosholban.com.androidpuzzlegame.MainActivity">
7+
tools:context="dragosholban.com.androidpuzzlegame.MainActivity"
8+
android:background="@drawable/table_background">
89

910
<GridView
1011
android:id="@+id/grid"

app/src/main/res/layout/activity_puzzle.xml

+17-4
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,31 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
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">
89

910
<ImageView
10-
android:id="@+id/imageView"
1111
android:layout_width="0dp"
1212
android:layout_height="0dp"
13-
android:layout_marginBottom="8dp"
1413
android:layout_marginEnd="8dp"
1514
android:layout_marginStart="8dp"
1615
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"
1730
android:scaleType="centerCrop"
18-
app:layout_constraintBottom_toBottomOf="parent"
31+
app:layout_constraintDimensionRatio="H,4:5"
1932
app:layout_constraintEnd_toEndOf="parent"
2033
app:layout_constraintLeft_toLeftOf="parent"
2134
app:layout_constraintRight_toRightOf="parent"

app/src/main/res/layout/grid_element.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
android:layout_height="match_parent"
55
android:gravity="center"
66
android:padding="2dp"
7-
android:background="@color/colorPrimary"
7+
android:background="@drawable/puzzle_frame"
88
>
99

1010
<ImageView

0 commit comments

Comments
 (0)