kegs-android/res/layout/main.xml

75 lines
3.3 KiB
XML
Raw Normal View History

2012-08-07 00:04:38 +00:00
<?xml version="1.0" encoding="utf-8"?>
<com.froop.app.kegs.SpecialRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2012-08-07 00:04:38 +00:00
android:id="@+id/mainview"
android:layout_width="match_parent"
android:layout_height="match_parent">
2012-10-17 02:41:28 +00:00
<com.froop.app.kegs.KegsViewGL
2012-08-12 23:23:49 +00:00
android:id="@+id/kegsview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2012-08-12 23:23:49 +00:00
android:layout_centerHorizontal="true"
/>
2012-08-07 00:04:38 +00:00
2012-08-12 23:23:49 +00:00
<LinearLayout android:id="@+id/b1" android:layout_below="@id/kegsview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:visibility="gone"
2012-08-12 23:23:49 +00:00
android:gravity="center">
<Button android:id="@+id/key_escape" android:text="Esc" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left|bottom" android:layout_below="@id/kegsview" />
<Button android:id="@+id/key_return" android:text="Return" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left|bottom" android:layout_below="@id/kegsview" />
<Button android:id="@+id/key_tab" android:text="Tab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left|bottom" android:layout_below="@id/kegsview" />
2012-08-07 00:04:38 +00:00
</LinearLayout>
<LinearLayout android:id="@+id/b2" android:layout_below="@id/b1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:gravity="center">
2012-08-07 00:04:38 +00:00
<ToggleButton android:id="@+id/key_control"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|bottom"
android:textOn="Ctrl"
2012-08-12 23:23:49 +00:00
android:textOff="Ctrl" android:layout_below="@id/kegsview" />
2012-08-07 00:04:38 +00:00
2012-08-12 23:23:49 +00:00
<ToggleButton android:id="@+id/key_closed_apple"
2012-08-07 00:04:38 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|bottom"
2012-08-12 23:23:49 +00:00
android:textOn="Opt"
android:textOff="Opt" android:layout_below="@id/kegsview" />
2012-08-07 00:04:38 +00:00
2012-08-12 23:23:49 +00:00
<ToggleButton android:id="@+id/key_open_apple"
2012-08-07 00:04:38 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|bottom"
2012-08-12 23:23:49 +00:00
android:textOn="Cmd"
android:textOff="Cmd" android:layout_below="@id/kegsview" />
</LinearLayout>
<LinearLayout android:id="@+id/b3" android:layout_below="@id/b2"
2012-08-12 23:23:49 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
2012-08-12 23:23:49 +00:00
android:gravity="center">
2012-08-07 00:04:38 +00:00
2012-08-12 23:23:49 +00:00
<Button android:id="@+id/key_left" android:text="Left" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left|bottom" android:layout_below="@id/kegsview" />
2012-08-07 00:04:38 +00:00
2012-08-12 23:23:49 +00:00
<Button android:id="@+id/key_right" android:text="Right" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left|bottom" android:layout_below="@id/kegsview" />
2012-08-07 00:04:38 +00:00
2012-08-12 23:23:49 +00:00
<Button android:id="@+id/key_up" android:text="Up" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left|bottom" android:layout_below="@id/kegsview" />
2012-08-07 00:04:38 +00:00
2012-08-12 23:23:49 +00:00
<Button android:id="@+id/key_down" android:text="Down" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left|bottom" android:layout_below="@id/kegsview" />
2012-08-07 00:04:38 +00:00
</LinearLayout>
</com.froop.app.kegs.SpecialRelativeLayout>