res/layout/create_account.xml
author Da Risk <da_risk@beem-project.com>
Sat, 29 Sep 2012 05:22:11 +0200
changeset 996 476e8690b0ea
parent 995 6318bee856fd
child 1009 c76a6e4b37cf
permissions -rw-r--r--
Translate more strings for wizard and make error message multilines

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:layout_width="fill_parent" android:layout_height="fill_parent"
	android:orientation="vertical" >
	
	<ScrollView android:layout_width="fill_parent" android:layout_height="0dip"
	    android:layout_weight="1" >
	<LinearLayout android:layout_height="wrap_content" android:layout_width="fill_parent"
	    android:orientation="vertical" >
	    <ImageView android:id="@+id/logo"
		android:layout_width="fill_parent" android:layout_height="wrap_content"
		android:layout_marginTop="15dp"
		android:layout_marginBottom="30dp"
		android:src="@drawable/logo"/>
	   
	    <TextView
		android:layout_width="fill_parent" android:layout_height="wrap_content"
		android:text="@string/create_account_text"
		android:textSize="18sp"
		android:paddingBottom="10dip"
		android:focusable="true" />
		<TextView
			android:layout_width="fill_parent" android:layout_height="wrap_content"
			android:text="@string/create_account_username" style="@style/Label" />
		<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" 
		    android:orientation="horizontal">
			<EditText android:id="@+id/create_account_username"
				android:inputType="textEmailAddress" android:imeOptions="actionNext"
				android:layout_width="wrap_content" android:layout_height="wrap_content"
				android:singleLine="true"
				android:minWidth="120dp"
				android:hint="beem"
				android:contentDescription="@string/create_account_username"/>
			<TextView
				android:layout_width="wrap_content" android:layout_height="wrap_content"
				android:text=" @ " style="@style/Label" />
		<AutoCompleteTextView android:id="@+id/xmpp_server"
		    android:layout_width="wrap_content" android:layout_height="wrap_content"
			android:minWidth="160dp"
		    android:gravity="left"
		    android:hint="beem-project.com"
		    android:completionThreshold="1"
		    android:inputType="textNoSuggestions"
		    style="?android:attr/dropDownSpinnerStyle"/>
		</LinearLayout>
		<TextView
			android:layout_width="fill_parent" android:layout_height="wrap_content"
			android:text="@string/create_account_password" style="@style/Label" />
		<EditText android:id="@+id/create_account_password"
			android:layout_width="fill_parent" android:layout_height="wrap_content"
			android:inputType="textPassword" android:imeOptions="actionNext"
			android:singleLine="true"
			android:contentDescription="@string/create_account_password"/>
		<TextView
			android:layout_width="fill_parent" android:layout_height="wrap_content"
			android:text="@string/create_account_confirm_password" style="@style/Label" />
		<EditText android:id="@+id/create_account_confirm_password"
			android:layout_width="fill_parent" android:layout_height="wrap_content"
			android:inputType="textPassword" android:imeOptions="actionNext"
			android:singleLine="true"
			android:contentDescription="@string/create_account_confirm_password"/>
		<TextView android:id="@+id/error_label"
				android:layout_width="fill_parent" android:layout_height="wrap_content"
				android:textColor="@color/red" android:textStyle="bold"
				android:inputType="textMultiLine"
				style="@style/Label"/>
	</LinearLayout>
	</ScrollView>
	
	<RelativeLayout
	android:gravity="right|center_vertical"
	android:layout_height="wrap_content"
	android:layout_width="fill_parent"
	android:background="@drawable/bottombar" >
	<Button
	    android:id="@+id/next"
	    android:text="@string/Continue"
	    android:minWidth="100dp"
	    android:layout_height="wrap_content"
	    android:layout_width="wrap_content"
	    android:drawableRight="@drawable/button_indicator_next"
	    android:layout_alignParentRight="true"
	    android:layout_centerVertical="true"
	    android:enabled="false"
	    />
    </RelativeLayout>
	
</LinearLayout>