mobile/android/base/resources/layout/sync_account.xml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/resources/layout/sync_account.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,81 @@
     1.4 +<?xml version="1.0" encoding="utf-8"?>
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +
     1.9 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    1.10 +  style="@style/SyncContainer" >
    1.11 +
    1.12 +  <TextView
    1.13 +      style="@style/SyncTop"
    1.14 +      android:text="@string/sync_title_connect" />
    1.15 +
    1.16 +  <ScrollView
    1.17 +    style="@style/SyncMiddle" >
    1.18 +
    1.19 +	<LinearLayout
    1.20 +      style="@style/SyncLayout.Vertical" >
    1.21 +
    1.22 +	  <TextView
    1.23 +	    style="@style/SyncTextItem"
    1.24 +	    android:text="@string/sync_subtitle_account"
    1.25 +	    android:paddingBottom="@dimen/SyncSpace" />
    1.26 +
    1.27 +	  <EditText android:id="@+id/usernameInput"
    1.28 +	    style="@style/SyncEditItem"
    1.29 +      android:state_focused="true"
    1.30 +	    android:hint="@string/sync_input_username" />
    1.31 +
    1.32 +	  <EditText android:id="@+id/passwordInput"
    1.33 +	    style="@style/SyncEditItem"
    1.34 +	    android:inputType="textPassword"
    1.35 +	    android:hint="@string/sync_input_password" />
    1.36 +
    1.37 +	  <EditText android:id="@+id/keyInput"
    1.38 +	    style="@style/SyncEditItem"
    1.39 +	    android:hint="@string/sync_input_key" />
    1.40 +
    1.41 +	  <TextView android:id="@+id/cred_error"
    1.42 +	    style="@style/SyncTextError"
    1.43 +	    android:text="@string/sync_invalidcreds_label" />
    1.44 +
    1.45 +	  <CheckBox android:id="@+id/checkbox_server"
    1.46 +	    android:layout_width="wrap_content"
    1.47 +	    android:layout_height="wrap_content"
    1.48 +	    android:layout_gravity="left"
    1.49 +	    android:text="@string/sync_checkbox_server" />
    1.50 +
    1.51 +	  <EditText android:id="@+id/serverInput"
    1.52 +	    style="@style/SyncEditItem"
    1.53 +	    android:visibility="gone"
    1.54 +	    android:hint="@string/sync_input_server" />
    1.55 +
    1.56 +	  <TextView android:id="@+id/server_error"
    1.57 +	    style="@style/SyncTextError"
    1.58 +	    android:text="@string/sync_invalidserver_label" />
    1.59 +
    1.60 +	</LinearLayout>
    1.61 +  </ScrollView>
    1.62 +
    1.63 +  <LinearLayout
    1.64 +    style="@style/SyncBottomContainer" >
    1.65 +
    1.66 +    <LinearLayout
    1.67 +      style="@style/SyncBottom" >
    1.68 +      <Button
    1.69 +        android:id="@+id/accountCancelButton"
    1.70 +        style="@style/SyncButton"
    1.71 +        android:onClick="cancelClickHandler"
    1.72 +        android:text="@string/sync_button_cancel" />
    1.73 +
    1.74 +      <Button
    1.75 +        style="@style/SyncButton"
    1.76 +        android:id="@+id/accountConnectButton"
    1.77 +        android:onClick="connectClickHandler"
    1.78 +        android:clickable="false"
    1.79 +        android:enabled="false"
    1.80 +        android:text="@string/sync_button_connect" />
    1.81 +    </LinearLayout>
    1.82 +
    1.83 +  </LinearLayout>
    1.84 +</LinearLayout>

mercurial