Created
January 5, 2017 08:28
-
-
Save dharmakshetri/90b42140087548f7a135970a8752d977 to your computer and use it in GitHub Desktop.
This file contains hidden or 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="co.simplemathtest.MainActivity"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Find the angle between hour hand and minute hand" | |
android:layout_alignParentTop="true" | |
android:id="@+id/textView" /> | |
<TextView | |
android:text="Hour:" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/textView" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" | |
android:layout_marginLeft="19dp" | |
android:layout_marginStart="19dp" | |
android:layout_marginTop="37dp" | |
android:id="@+id/textView2" /> | |
<EditText | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:ems="10" | |
android:inputType="phone" | |
android:layout_below="@+id/textView" | |
android:layout_alignRight="@+id/textView" | |
android:layout_alignEnd="@+id/textView" | |
android:layout_marginTop="24dp" | |
android:id="@+id/editTextHour" /> | |
<TextView | |
android:text="Minute" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/editTextHour" | |
android:layout_alignRight="@+id/textView2" | |
android:layout_alignEnd="@+id/textView2" | |
android:layout_marginTop="15dp" | |
android:id="@+id/textView3" /> | |
<EditText | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:inputType="phone" | |
android:ems="10" | |
android:layout_below="@+id/editTextHour" | |
android:layout_alignRight="@+id/editTextHour" | |
android:layout_alignEnd="@+id/editTextHour" | |
android:id="@+id/editTextMinute" | |
android:numeric="integer" /> | |
<Button | |
android:text="Angle" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/editTextMinute" | |
android:layout_alignLeft="@+id/editTextMinute" | |
android:layout_alignStart="@+id/editTextMinute" | |
android:layout_marginLeft="10dp" | |
android:layout_marginStart="10dp" | |
android:layout_marginTop="38dp" | |
android:id="@+id/buttonFindAngle" | |
android:onClick="findAngle" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/buttonFindAngle" | |
android:layout_marginTop="42dp" | |
android:textSize="20sp" | |
android:textColor="@android:color/holo_orange_dark" | |
android:id="@+id/textViewOutput" /> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment