0% found this document useful (0 votes)
4 views2 pages

Android String to Binary Converter

This document describes an Android layout using RelativeLayout for a user interface that converts a string to binary. It includes TextViews for instructions and labels, EditTexts for user input and output, and Buttons for conversion and navigation. The layout is designed to be user-friendly with specified margins and alignments.

Uploaded by

dewot999
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Android String to Binary Converter

This document describes an Android layout using RelativeLayout for a user interface that converts a string to binary. It includes TextViews for instructions and labels, EditTexts for user input and output, and Buttons for conversion and navigation. The layout is designed to be user-friendly with specified margins and alignments.

Uploaded by

dewot999
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

<RelativeLayout

xmlns:android="[Link]
xmlns:tools="[Link]
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#F0FFFF">
<TextView
android:id="@+id/sayHi"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:text="Convert String to Binnary... "
android:textStyle="bold" />
<EditText
android:id="@+id/input"
android:layout_width="200px"
android:layout_height="30px"
android:layout_below="@+id/sayHi"
android:layout_centerHorizontal="true"
android:layout_marginTop="55dp"
android:gravity="center_horizontal" >
<requestFocus />
</EditText>
<TextView
android:id="@+id/IS"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/sayHi"
android:layout_below="@+id/sayHi"
android:layout_marginTop="25dp"
android:textStyle="bold"
android:text="Input String" />
<Button
android:id="@+id/convert"
android:layout_width="80px"
android:layout_height="50px"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="Convert"
android:textStyle="bold" />
<EditText
android:id="@+id/hasil"
android:layout_width="200px"
android:layout_height="30px"
android:layout_alignLeft="@+id/input"
android:layout_below="@+id/convert"
android:layout_marginTop="22dp"
android:gravity="center_horizontal" />
<Button
android:id="@+id/home"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignRight="@+id/hasil"
android:layout_below="@+id/hasil"
android:layout_marginTop="15dp"
android:text="Home" />
</RelativeLayout>

You might also like