diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/icon.png | bin | 0 -> 6094 bytes | |||
-rw-r--r-- | res/layout/host_editor.xml | 53 | ||||
-rw-r--r-- | res/layout/main.xml | 12 | ||||
-rw-r--r-- | res/layout/message_dialog.xml | 17 | ||||
-rw-r--r-- | res/layout/password_dialog.xml | 25 | ||||
-rw-r--r-- | res/layout/secure_shell.xml | 12 | ||||
-rw-r--r-- | res/values/colors.xml | 6 | ||||
-rw-r--r-- | res/values/strings.xml | 20 |
8 files changed, 145 insertions, 0 deletions
diff --git a/res/drawable/icon.png b/res/drawable/icon.png Binary files differnew file mode 100644 index 0000000..64e3601 --- /dev/null +++ b/res/drawable/icon.png diff --git a/res/layout/host_editor.xml b/res/layout/host_editor.xml new file mode 100644 index 0000000..98cd048 --- /dev/null +++ b/res/layout/host_editor.xml @@ -0,0 +1,53 @@ +<?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"> + + <TextView id="@+id/usernameLabel" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="Username:"/> + + <EditText id="@+id/username" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/usernameLabel"/> + + <TextView id="@+id/hostnameLabel" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/username" + android:text="Hostname:"/> + + <EditText id="@+id/hostname" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/hostnameLabel"/> + + <TextView id="@+id/portLabel" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/hostname" + android:text="Port:"/> + + <EditText id="@+id/port" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="22" + android:layout_below="@id/portLabel"/> + + <Button id="@+id/add" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/port" + android:layout_alignParentRight="true" + android:layout_marginLeft="10dip" + android:text="@string/button_add" /> + + <Button id="@+id/cancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toLeft="@id/add" + android:layout_alignTop="@id/add" + android:text="@string/button_cancel" /> +</RelativeLayout>
\ No newline at end of file diff --git a/res/layout/main.xml b/res/layout/main.xml new file mode 100644 index 0000000..37bd27a --- /dev/null +++ b/res/layout/main.xml @@ -0,0 +1,12 @@ +<?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" + > +<TextView id="@+id/shell" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="Hello World, SSH" + /> +</LinearLayout> diff --git a/res/layout/message_dialog.xml b/res/layout/message_dialog.xml new file mode 100644 index 0000000..8720d92 --- /dev/null +++ b/res/layout/message_dialog.xml @@ -0,0 +1,17 @@ +<?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"> + + <TextView id="@+id/message" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + <Button id="@+id/dismiss" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/message" + android:layout_alignParentRight="true" + android:layout_marginLeft="10dip" + android:text="@string/button_ok" /> +</RelativeLayout>
\ No newline at end of file diff --git a/res/layout/password_dialog.xml b/res/layout/password_dialog.xml new file mode 100644 index 0000000..40b0359 --- /dev/null +++ b/res/layout/password_dialog.xml @@ -0,0 +1,25 @@ +<?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"> + + <TextView id="@+id/passwordLabel" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="Password:"/> + + <EditText id="@+id/password" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/passwordLabel" + android:maxLines="1" + android:password="true"/> + + <Button id="@+id/ok" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/password" + android:layout_alignParentRight="true" + android:layout_marginLeft="10dip" + android:text="@string/button_ok" /> +</RelativeLayout>
\ No newline at end of file diff --git a/res/layout/secure_shell.xml b/res/layout/secure_shell.xml new file mode 100644 index 0000000..0f47c70 --- /dev/null +++ b/res/layout/secure_shell.xml @@ -0,0 +1,12 @@ +<?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"> + + <TextView id="@+id/output" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:textSize="8sp" + android:typeface="monospace" /> + +</RelativeLayout> diff --git a/res/values/colors.xml b/res/values/colors.xml new file mode 100644 index 0000000..5991902 --- /dev/null +++ b/res/values/colors.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <drawable name="blue">#770000ff</drawable> + <drawable name="even_stripe">#e5edfa</drawable> + <drawable name="odd_stripe">#ffffffff</drawable> +</resources>
\ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 0000000..8435af0 --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="app_name">Secure Shell</string> + + <string name="title_hosts_list">Hosts List</string> + <string name="title_host">Host</string> + <string name="title_shell">Secure Shell</string> + <string name="title_password">Input Password</string> + + + <string name="resolve_edit">Edit Host</string> + + <string name="menu_insert">Add Host</string> + <string name="menu_delete">Delete Host</string> + + <string name="button_ok">Ok</string> + <string name="button_add">Add</string> + <string name="button_cancel">Cancel</string> + <string name="button_change">Change</string> +</resources> |