88 lines
3.2 KiB
XML
88 lines
3.2 KiB
XML
|
|
<RelativeLayout xmlns:tools="http://schemas.android.com/tools"
|
||
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:contentDescription="@string/location"
|
||
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
||
|
|
android:paddingLeft="5dp"
|
||
|
|
android:paddingRight="5dp"
|
||
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
||
|
|
tools:context=".CommandActivity" >
|
||
|
|
|
||
|
|
<EditText
|
||
|
|
android:id="@+id/commandText"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="100dp"
|
||
|
|
android:layout_alignLeft="@+id/resultText"
|
||
|
|
android:layout_below="@+id/selectedDatabase"
|
||
|
|
android:layout_marginTop="36dp"
|
||
|
|
android:ems="10"
|
||
|
|
android:gravity="center_vertical|top"
|
||
|
|
android:hint="@string/Command"
|
||
|
|
android:inputType="textMultiLine" />
|
||
|
|
|
||
|
|
<EditText
|
||
|
|
android:id="@+id/resultText"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="200dp"
|
||
|
|
android:layout_above="@+id/showOutput"
|
||
|
|
android:layout_below="@+id/history"
|
||
|
|
android:layout_centerHorizontal="true"
|
||
|
|
android:ems="10"
|
||
|
|
android:gravity="center_vertical|top"
|
||
|
|
android:hint="@string/result"
|
||
|
|
android:textAppearance="?android:attr/textAppearanceSmallInverse"
|
||
|
|
android:textColor="#000000"
|
||
|
|
android:textSize="12sp"
|
||
|
|
android:typeface="monospace" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/selectedDatabase"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_alignLeft="@+id/resultText"
|
||
|
|
android:layout_alignParentTop="true"
|
||
|
|
android:text="@+id/selectedDatabase"
|
||
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/runCommand"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_alignRight="@+id/commandText"
|
||
|
|
android:layout_alignTop="@+id/selectedDatabase"
|
||
|
|
android:layout_marginLeft="15dp"
|
||
|
|
android:layout_toRightOf="@+id/selectedDatabase"
|
||
|
|
android:text="@string/go" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/history"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_alignBottom="@+id/location"
|
||
|
|
android:layout_alignLeft="@+id/runCommand"
|
||
|
|
android:layout_alignRight="@+id/commandText"
|
||
|
|
android:layout_below="@+id/commandText"
|
||
|
|
android:text="@string/history" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/showOutput"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_alignLeft="@+id/history"
|
||
|
|
android:layout_alignParentBottom="true"
|
||
|
|
android:layout_alignRight="@+id/resultText"
|
||
|
|
android:layout_marginBottom="2dp"
|
||
|
|
android:text="@string/showOutpunt" />
|
||
|
|
|
||
|
|
<ImageButton
|
||
|
|
android:id="@+id/location"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_alignLeft="@+id/commandText"
|
||
|
|
android:layout_below="@+id/commandText"
|
||
|
|
android:contentDescription="@string/location"
|
||
|
|
android:src="@drawable/location"
|
||
|
|
android:text="@string/location" />
|
||
|
|
|
||
|
|
</RelativeLayout>
|