diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-01-28 19:21:54 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-01-28 19:21:54 +0100 |
commit | 52da0fe7c9c68d4545f068fb84efbf0854c37392 (patch) | |
tree | 4c6bfae86fc90274b26e0c18ebd7793040663759 /res/layout | |
parent | 4f902d8210d50a586c7ece1bb7da2ab26fd18da5 (diff) |
account management
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/account_row.xml | 54 | ||||
-rw-r--r-- | res/layout/edit_account_dialog.xml | 143 | ||||
-rw-r--r-- | res/layout/manage_accounts.xml | 14 |
3 files changed, 211 insertions, 0 deletions
diff --git a/res/layout/account_row.xml b/res/layout/account_row.xml new file mode 100644 index 00000000..c10099dd --- /dev/null +++ b/res/layout/account_row.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="8dp"> + + + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:orientation="vertical"> + + <TextView + android:id="@+id/account_jid" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="inputmice@jabber.ccc.de" + android:textSize="20sp" + android:singleLine="true" + android:scrollHorizontally="false"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:paddingTop="3dp"> + + <TextView + android:id="@+id/textView2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Status: " + android:textStyle="bold" + android:textSize="14sp" /> + + <TextView + android:id="@+id/account_status" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="#669900" + android:text="Online" + android:textStyle="bold" + android:textSize="14sp"/> + + </LinearLayout> + + </LinearLayout> + + +</RelativeLayout> diff --git a/res/layout/edit_account_dialog.xml b/res/layout/edit_account_dialog.xml new file mode 100644 index 00000000..2d4de8af --- /dev/null +++ b/res/layout/edit_account_dialog.xml @@ -0,0 +1,143 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:padding="8dp"> + + <TextView + android:id="@+id/textView2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="14sp" + android:text="Jabber ID:" /> + + <EditText + android:id="@+id/account_username" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:inputType="textEmailAddress" + android:visibility="gone" + android:hint="Username"> + </EditText> + + <EditText + android:id="@+id/account_jid" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:inputType="textEmailAddress" + android:hint="username@jabber.example.com"> + + + </EditText> + + + <TextView + android:paddingTop="8dp" + android:id="@+id/textView1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Password:" + android:textSize="14sp"/> + + <EditText + android:id="@+id/account_password" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:inputType="textPassword" + android:hint="Password" + android:fontFamily="sans-serif" /> + + + <CheckBox + android:id="@+id/edit_account_register_new" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Register a new account on server"/> + + + <TextView + android:paddingTop="8dp" + android:id="@+id/account_confirm_password_desc" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Confirm password:" + android:textSize="14sp" + android:visibility="gone"/> + + <EditText + android:id="@+id/account_password_confirm2" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:inputType="textPassword" + android:hint="Confirm password" + android:visibility="gone" + android:fontFamily="sans-serif" /> + + <CheckBox + android:id="@+id/account_show_advanced" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Show advanced options" /> + + <RelativeLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:id="@+id/advanced_options" + android:visibility="gone"> + + <LinearLayout + android:id="@+id/server_input_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <TextView + android:paddingTop="8dp" + android:id="@+id/textView3" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Server:" + android:textSize="14sp"/> + + <EditText + android:id="@+id/account_server" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ems="10" + android:hint="Server" + android:inputType="textUri"/> + + </LinearLayout> + + <LinearLayout + android:layout_alignParentRight="true" + android:layout_width="144dp" + android:layout_height="wrap_content" + android:orientation="vertical" + android:layout_toRightOf="@+id/server_input_layout"> + + <TextView + android:paddingTop="8dp" + android:id="@+id/textView4" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Port:" + android:textSize="14sp"/> + + <EditText + android:id="@+id/editText3" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:ems="10" + android:hint="Port" + android:inputType="number" + android:text="5222"/> + + </LinearLayout> + </RelativeLayout> +</LinearLayout> diff --git a/res/layout/manage_accounts.xml b/res/layout/manage_accounts.xml new file mode 100644 index 00000000..0866477a --- /dev/null +++ b/res/layout/manage_accounts.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="fill_parent" + android:layout_height="fill_parent" > + + <ListView + android:id="@+id/account_list" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + tools:listitem="@layout/account_row"> + </ListView> + +</LinearLayout>
\ No newline at end of file |