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

82 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/SyncContainer" >
<TextView
style="@style/SyncTop"
android:text="@string/sync_title_connect" />
<ScrollView
style="@style/SyncMiddle" >
<LinearLayout
style="@style/SyncLayout.Vertical" >
<TextView
style="@style/SyncTextItem"
android:text="@string/sync_subtitle_account"
android:paddingBottom="@dimen/SyncSpace" />
<EditText android:id="@+id/usernameInput"
style="@style/SyncEditItem"
android:state_focused="true"
android:hint="@string/sync_input_username" />
<EditText android:id="@+id/passwordInput"
style="@style/SyncEditItem"
android:inputType="textPassword"
android:hint="@string/sync_input_password" />
<EditText android:id="@+id/keyInput"
style="@style/SyncEditItem"
android:hint="@string/sync_input_key" />
<TextView android:id="@+id/cred_error"
style="@style/SyncTextError"
android:text="@string/sync_invalidcreds_label" />
<CheckBox android:id="@+id/checkbox_server"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:text="@string/sync_checkbox_server" />
<EditText android:id="@+id/serverInput"
style="@style/SyncEditItem"
android:visibility="gone"
android:hint="@string/sync_input_server" />
<TextView android:id="@+id/server_error"
style="@style/SyncTextError"
android:text="@string/sync_invalidserver_label" />
</LinearLayout>
</ScrollView>
<LinearLayout
style="@style/SyncBottomContainer" >
<LinearLayout
style="@style/SyncBottom" >
<Button
android:id="@+id/accountCancelButton"
style="@style/SyncButton"
android:onClick="cancelClickHandler"
android:text="@string/sync_button_cancel" />
<Button
style="@style/SyncButton"
android:id="@+id/accountConnectButton"
android:onClick="connectClickHandler"
android:clickable="false"
android:enabled="false"
android:text="@string/sync_button_connect" />
</LinearLayout>
</LinearLayout>
</LinearLayout>