diff options
author | Treeki <treeki@gmail.com> | 2014-02-18 02:54:06 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2014-02-18 02:54:06 +0100 |
commit | d57224505be243c80e9dd64e00f0a7c3a1d841f0 (patch) | |
tree | fe2b7d5cc9b7ca993b50f526f73bcb8716c0a60e /android/VulpIRC/src/main/res/layout | |
parent | 05568c427eff856d3049d4a18a707f1b0b358bd2 (diff) | |
download | bounce4-d57224505be243c80e9dd64e00f0a7c3a1d841f0.tar.gz bounce4-d57224505be243c80e9dd64e00f0a7c3a1d841f0.zip |
add Android client
Diffstat (limited to 'android/VulpIRC/src/main/res/layout')
3 files changed, 174 insertions, 0 deletions
diff --git a/android/VulpIRC/src/main/res/layout/activity_login.xml b/android/VulpIRC/src/main/res/layout/activity_login.xml new file mode 100644 index 0000000..d8e10bc --- /dev/null +++ b/android/VulpIRC/src/main/res/layout/activity_login.xml @@ -0,0 +1,111 @@ +<merge xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + tools:context=".LoginActivity"> + + <!-- Login progress --> + <LinearLayout + android:id="@+id/containerLoginStatus" + android:visibility="invisible" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:gravity="center_horizontal" + android:orientation="vertical"> + <ProgressBar style="?android:attr/progressBarStyleLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="8dp"/> + <TextView + android:id="@+id/loginStatus" + android:textAppearance="?android:attr/textAppearanceMedium" + android:fontFamily="sans-serif-light" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="16dp" + android:text="---" /> + <Button + android:id="@+id/buttonCancel" + android:text="Cancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + </LinearLayout> + + <!-- Login form --> + <ScrollView + android:id="@+id/containerLoginForm" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:visibility="invisible" + android:padding="12dp"> + + <RelativeLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <EditText + android:id="@+id/inputUsername" + android:singleLine="true" + android:maxLines="1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textNoSuggestions" + android:hint="Username" /> + + <EditText + android:id="@+id/inputPassword" + android:layout_below="@id/inputUsername" + android:layout_marginBottom="12dp" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:singleLine="true" + android:maxLines="1" + android:fontFamily="sans-serif" + android:hint="Password" + android:inputType="textPassword" /> + + <EditText + android:id="@+id/inputPort" + android:layout_below="@id/inputPassword" + android:layout_alignParentRight="true" + android:layout_width="120dp" + android:layout_height="wrap_content" + android:singleLine="true" + android:maxLines="1" + android:hint="Port" + android:inputType="number"/> + + <EditText + android:id="@+id/inputHostname" + android:layout_below="@id/inputPassword" + android:layout_toLeftOf="@id/inputPort" + android:layout_alignParentLeft="true" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:singleLine="true" + android:maxLines="1" + android:hint="Server address" + android:inputType=""/> + + <CheckBox + android:id="@+id/checkUseTls" + android:layout_below="@id/inputHostname" + android:layout_marginBottom="12dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Use secured connection (SSL/TLS)" + /> + + <Button android:id="@+id/buttonConnect" + android:layout_below="@id/checkUseTls" + android:layout_alignParentRight="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Connect" + android:paddingLeft="32dp" + android:paddingRight="32dp" /> + + </RelativeLayout> + + </ScrollView> +</merge> diff --git a/android/VulpIRC/src/main/res/layout/activity_main.xml b/android/VulpIRC/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..06c6ef5 --- /dev/null +++ b/android/VulpIRC/src/main/res/layout/activity_main.xml @@ -0,0 +1,40 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + tools:context=".MainActivity" + tools:ignore="MergeRootFrame" + android:background="#000000"> + <android.support.v4.widget.DrawerLayout + android:id="@+id/drawerLayout" + android:layout_width="match_parent" + android:layout_height="match_parent" + > + <android.support.v4.view.ViewPager + android:id="@+id/windowPager" + android:layout_width="300dp" + android:layout_height="match_parent" + android:layout_weight="1"> + </android.support.v4.view.ViewPager> + <ListView + android:id="@+id/windowList" + android:layout_width="160dp" + android:layout_height="match_parent" + android:layout_gravity="left" + > + + </ListView> +<!-- + <ListView + android:id="@+id/messagesList" + android:layout_width="300dp" + android:layout_height="match_parent" + android:layout_weight="1" + > + + </ListView> + --> + </android.support.v4.widget.DrawerLayout> +</LinearLayout> diff --git a/android/VulpIRC/src/main/res/layout/window_list_entry.xml b/android/VulpIRC/src/main/res/layout/window_list_entry.xml new file mode 100644 index 0000000..8fb74cf --- /dev/null +++ b/android/VulpIRC/src/main/res/layout/window_list_entry.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="32dp"> + + <ImageView + android:id="@+id/windowStatus" + android:layout_width="8dp" + android:layout_height="match_parent" + /> + + <TextView + android:id="@+id/windowName" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:paddingLeft="8dp" + android:text="test" + android:gravity="start|center_vertical" + /> + +</LinearLayout>
\ No newline at end of file |