Skip to content

Commit

Permalink
Final Touches
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosholban committed Mar 9, 2018
1 parent 572eca9 commit a8d23a4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Expand Up @@ -4,7 +4,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="dragosholban.com.androidpuzzlegame.MainActivity">
tools:context="dragosholban.com.androidpuzzlegame.MainActivity"
android:background="@drawable/table_background">

<GridView
android:id="@+id/grid"
Expand Down
21 changes: 17 additions & 4 deletions app/src/main/res/layout/activity_puzzle.xml
Expand Up @@ -4,18 +4,31 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="dragosholban.com.androidpuzzlegame.PuzzleActivity">
tools:context="dragosholban.com.androidpuzzlegame.PuzzleActivity"
android:background="@drawable/table_background">

<ImageView
android:id="@+id/imageView"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:alpha="1.0"
app:layout_constraintDimensionRatio="H,4:5"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/puzzle_frame" />

<ImageView
android:id="@+id/imageView"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
android:layout_marginTop="18dp"
android:scaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintDimensionRatio="H,4:5"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/grid_element.xml
Expand Up @@ -4,7 +4,7 @@
android:layout_height="match_parent"
android:gravity="center"
android:padding="2dp"
android:background="@color/colorPrimary"
android:background="@drawable/puzzle_frame"
>

<ImageView
Expand Down

0 comments on commit a8d23a4

Please sign in to comment.