aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/anim/fade_out.xml8
-rw-r--r--res/anim/fade_stay_hidden.xml7
-rw-r--r--res/anim/slide_left_in.xml4
-rw-r--r--res/anim/slide_left_out.xml4
-rw-r--r--res/anim/slide_right_in.xml4
-rw-r--r--res/anim/slide_right_out.xml4
-rw-r--r--res/layout/act_console.xml34
-rw-r--r--res/layout/act_frontpage.xml29
-rw-r--r--res/layout/act_hosteditor.xml98
-rw-r--r--res/layout/item_host.xml57
-rw-r--r--res/layout/item_terminal.xml26
-rw-r--r--res/values/arrays.xml10
-rw-r--r--res/values/strings.xml5
13 files changed, 289 insertions, 1 deletions
diff --git a/res/anim/fade_out.xml b/res/anim/fade_out.xml
new file mode 100644
index 0000000..9ff8724
--- /dev/null
+++ b/res/anim/fade_out.xml
@@ -0,0 +1,8 @@
+ <alpha
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:fromAlpha="1.0"
+ android:toAlpha="0.0"
+ android:duration="500"
+ android:startOffset="1000"
+ android:fillAfter="true"
+ />
diff --git a/res/anim/fade_stay_hidden.xml b/res/anim/fade_stay_hidden.xml
new file mode 100644
index 0000000..bfda0d3
--- /dev/null
+++ b/res/anim/fade_stay_hidden.xml
@@ -0,0 +1,7 @@
+ <alpha
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:fromAlpha="0.0"
+ android:toAlpha="0.0"
+ android:duration="500"
+ android:fillAfter="true"
+ />
diff --git a/res/anim/slide_left_in.xml b/res/anim/slide_left_in.xml
new file mode 100644
index 0000000..0d9353a
--- /dev/null
+++ b/res/anim/slide_left_in.xml
@@ -0,0 +1,4 @@
+<set xmlns:android="http://schemas.android.com/apk/res/android">
+ <translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="300"/>
+ <!-- <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" /> -->
+</set>
diff --git a/res/anim/slide_left_out.xml b/res/anim/slide_left_out.xml
new file mode 100644
index 0000000..e0e4285
--- /dev/null
+++ b/res/anim/slide_left_out.xml
@@ -0,0 +1,4 @@
+<set xmlns:android="http://schemas.android.com/apk/res/android">
+ <translate android:fromXDelta="0" android:toXDelta="-100%p" android:duration="300"/>
+ <!-- <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" /> -->
+</set>
diff --git a/res/anim/slide_right_in.xml b/res/anim/slide_right_in.xml
new file mode 100644
index 0000000..3f93df3
--- /dev/null
+++ b/res/anim/slide_right_in.xml
@@ -0,0 +1,4 @@
+<set xmlns:android="http://schemas.android.com/apk/res/android">
+ <translate android:fromXDelta="-100%p" android:toXDelta="0" android:duration="300"/>
+ <!-- <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" /> -->
+</set>
diff --git a/res/anim/slide_right_out.xml b/res/anim/slide_right_out.xml
new file mode 100644
index 0000000..f8df69a
--- /dev/null
+++ b/res/anim/slide_right_out.xml
@@ -0,0 +1,4 @@
+<set xmlns:android="http://schemas.android.com/apk/res/android">
+ <translate android:fromXDelta="0" android:toXDelta="100%p" android:duration="300"/>
+ <!-- <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" /> -->
+</set>
diff --git a/res/layout/act_console.xml b/res/layout/act_console.xml
new file mode 100644
index 0000000..9fb738c
--- /dev/null
+++ b/res/layout/act_console.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/console_flip"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+
+ <!--
+ <TextView
+ android:background="#ff880000"
+ android:text="1"
+ android:textSize="50pt"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ />
+
+ <TextView
+ android:background="#ff008800"
+ android:text="2"
+ android:textSize="50pt"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ />
+
+ <TextView
+ android:background="#ff000088"
+ android:text="3"
+ android:textSize="50pt"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ />
+ -->
+
+</ViewFlipper> \ No newline at end of file
diff --git a/res/layout/act_frontpage.xml b/res/layout/act_frontpage.xml
new file mode 100644
index 0000000..299de53
--- /dev/null
+++ b/res/layout/act_frontpage.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+
+ <ListView android:id="@+id/front_hostlist"
+ android:layout_width="fill_parent"
+ android:layout_height="0dip"
+ android:layout_weight="1"
+ />
+
+
+ <FrameLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:padding="5dip"
+ >
+
+ <EditText android:id="@+id/front_quickconnect"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:hint="user@hostname"
+ />
+
+ </FrameLayout>
+
+</LinearLayout>
diff --git a/res/layout/act_hosteditor.xml b/res/layout/act_hosteditor.xml
new file mode 100644
index 0000000..2f18eee
--- /dev/null
+++ b/res/layout/act_hosteditor.xml
@@ -0,0 +1,98 @@
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+
+<LinearLayout
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+
+<TableLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ >
+
+ <TableRow>
+ <TextView android:text="Nickname:" android:textSize="18dip" android:layout_width="140dip" android:paddingRight="10dip" android:gravity="right" />
+ <EditText android:id="@+id/edit_nickname" android:text="user@hostname" android:layout_width="320dip" />
+ </TableRow>
+
+ <TableRow>
+ <TextView android:text="Username:" android:textSize="18dip" android:paddingRight="10dip" android:gravity="right" />
+ <EditText android:id="@+id/edit_username" android:layout_width="240dip" android:layout_height="wrap_content" android:text="root" />
+ </TableRow>
+
+ <TableRow>
+ <TextView android:text="Host:" android:textSize="18dip" android:paddingRight="10dip" android:gravity="right" />
+ <EditText android:id="@+id/edit_hostname" android:text="bigserver.example.com" />
+ </TableRow>
+
+</TableLayout>
+
+<TableLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ >
+
+ <TableRow>
+ <TextView android:text="Port:" android:textSize="18dip" android:layout_width="140dip" android:paddingRight="10dip" android:gravity="right" />
+ <EditText android:id="@+id/edit_port" android:layout_width="120dip" android:layout_height="wrap_content" android:text="22" />
+ </TableRow>
+
+</TableLayout>
+
+<TableLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ >
+
+
+<!--
+ <TableRow>
+ <TextView android:text="Password:" android:textSize="18dip" android:paddingRight="10dip" android:gravity="right" />
+ <EditText android:text="youfail" android:password="true" />
+ </TableRow>
+
+ <TableRow>
+ <FrameLayout />
+ <TextView android:text="All passwords are encrypted with your\nphone's IMEI before storage"
+ android:paddingBottom="10dip"
+ android:paddingLeft="20dip"
+ android:textAppearance="?android:attr/textAppearanceSmall" />
+ </TableRow>
+ -->
+
+
+ <TableRow>
+ <TextView android:text="Emulation:" android:layout_width="140dip" android:textSize="18dip" android:paddingRight="10dip" android:gravity="right" />
+ <Spinner android:id="@+id/edit_emulation" android:entries="@array/list_emulation_modes" />
+ </TableRow>
+
+ <TableRow>
+ <FrameLayout />
+ <TextView android:text="Terminal emulation mode to request\nfor any console sessions"
+ android:paddingBottom="10dip"
+ android:paddingLeft="20dip"
+ android:textAppearance="?android:attr/textAppearanceSmall" />
+ </TableRow>
+
+ <TableRow>
+ <TextView android:text="Scrollback:" android:textSize="18dip" android:paddingRight="10dip" android:gravity="right" />
+ <EditText android:id="@+id/edit_scrollback" android:text="140" />
+ </TableRow>
+
+ <TableRow>
+ <FrameLayout />
+ <TextView android:text="Length of scrollback buffer in rows to\nallocate in local phone memory"
+ android:paddingBottom="10dip"
+ android:paddingLeft="20dip"
+ android:textAppearance="?android:attr/textAppearanceSmall" />
+ </TableRow>
+
+</TableLayout>
+
+</LinearLayout>
+
+</ScrollView>
diff --git a/res/layout/item_host.xml b/res/layout/item_host.xml
new file mode 100644
index 0000000..b11dc05
--- /dev/null
+++ b/res/layout/item_host.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:padding="10dip"
+ >
+
+ <ImageView
+ android:id="@+id/host_connected"
+ android:src="@android:drawable/presence_online"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:paddingTop="5dip"
+ />
+
+ <!--
+
+ <TextView android:id="@+id/host_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ />
+
+ <TextView android:id="@+id/host_caption"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:layout_below="@id/host_title"
+ />
+
+ -->
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ >
+
+ <TextView android:id="@+id/host_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ />
+
+ <TextView android:id="@+id/host_caption"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingLeft="10dip"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ />
+
+
+ </LinearLayout>
+
+</RelativeLayout> \ No newline at end of file
diff --git a/res/layout/item_terminal.xml b/res/layout/item_terminal.xml
new file mode 100644
index 0000000..406ddd4
--- /dev/null
+++ b/res/layout/item_terminal.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:gravity="center"
+ >
+
+ <TextView
+ android:id="@+id/terminal_overlay"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:background="#aa000000"
+ android:padding="10dip"
+ />
+
+ </LinearLayout>
+
+</RelativeLayout> \ No newline at end of file
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
new file mode 100644
index 0000000..c1cdefe
--- /dev/null
+++ b/res/values/arrays.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string-array name="list_emulation_modes">
+ <item>screen</item>
+ <item>vt100</item>
+ <item>xterm</item>
+ </string-array>
+
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 6c11b04..d4056aa 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -29,6 +29,9 @@
<string name="alert_disconnect_msg">Connection Lost</string>
- <string name="msg_copyright">Copyright &#169; 2007, Kenny Root http://the-b.org/</string>
+ <string name="msg_copyright">Copyright &#169; 2007-2008 Kenny Root http://the-b.org/, Jeffrey Sharkey http://jsharkey.org/</string>
<string name="msg_version">v1.0</string>
+
+
+
</resources>