Created
May 22, 2017 15:09
-
-
Save ssaurel/8a2256ce61137e145919a1545b16d139 to your computer and use it in GitHub Desktop.
Main Activity for the Roll Dice Game on the SSaurel's Channel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/activity_main" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
tools:context="com.ssaurel.dicer.MainActivity"> | |
<LinearLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="80dp" | |
android:orientation="horizontal" | |
android:layout_centerHorizontal="true"> | |
<ImageView | |
android:id="@+id/imageView1" | |
android:layout_width="100dp" | |
android:layout_height="100dp" | |
android:layout_marginRight="20dp" | |
android:src="@drawable/dice_2"/> | |
<ImageView | |
android:id="@+id/imageView2" | |
android:layout_width="100dp" | |
android:layout_height="100dp" | |
android:src="@drawable/dice_4"/> | |
</LinearLayout> | |
<Button | |
android:id="@+id/rollDices" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Roll Dices" | |
android:textSize="20sp" | |
android:layout_alignParentBottom="true" | |
android:layout_marginBottom="30dp" | |
android:layout_centerHorizontal="true"/> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment