Skip to content

Instantly share code, notes, and snippets.

@copyninja
Created October 6, 2010 06:11
Show Gist options
  • Save copyninja/612907 to your computer and use it in GitHub Desktop.
Save copyninja/612907 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<EditText android:id="@+id/string"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:singleLine="false"/>
<RadioGroup android:id="@+id/algorithm"
android:layout_below="@id/string"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<RadioButton android:id="@+id/md5"
android:checked="false"
android:text="MD5"/>
<RadioButton android:id="@+id/sha1"
android:checked="false"
android:text="SHA-1"/>
<RadioButton android:id="@+id/sha256"
android:checked="false"
android:text="SHA-256"/>
<RadioButton android:id="@+id/sha512"
android:checked="false"
android:text="SHA-512"/>
</RadioGroup>
<Button android:id="@+id/generate"
android:layout_below="@id/algorithm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Generate Hash"
android:gravity="center"/>
<TextView android:id="@+id/hash"
android:layout_below="@id/generate"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:typeface="serif"
android:lines="30"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment