Created
April 24, 2017 07:44
-
-
Save ssaurel/f87610e520225e58f72084446c4855fd to your computer and use it in GitHub Desktop.
MorseCode App Main Layout
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.morseconverter.MainActivity"> | |
<EditText | |
android:id="@+id/txt" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="70dp" | |
android:layout_centerHorizontal="true"/> | |
<LinearLayout | |
android:id="@+id/ctrls" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_centerHorizontal="true" | |
android:layout_below="@id/txt" | |
android:layout_marginTop="30dp" | |
android:orientation="horizontal"> | |
<Button | |
android:id="@+id/toAlphaBtn" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="To Alpha" | |
android:layout_marginRight="15dp"/> | |
<Button | |
android:id="@+id/toMorseBtn" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="To Morse"/> | |
</LinearLayout> | |
<TextView | |
android:id="@+id/result" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_centerHorizontal="true" | |
android:textSize="18sp" | |
android:layout_below="@id/ctrls" | |
android:layout_marginTop="50dp" | |
/> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1 STAR >:(