mobile/android/base/resources/layout/sync_setup_pair.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_setup_pair.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,89 @@
     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_pair" />
    1.15 +
    1.16 +  <ScrollView
    1.17 +    style="@style/SyncMiddle" >
    1.18 +
    1.19 +    <LinearLayout
    1.20 +      style="@style/SyncLayout.Vertical"
    1.21 +      android:gravity="center" >
    1.22 +      <TextView
    1.23 +        android:id="@+id/setup_subtitle"
    1.24 +        style="@style/SyncTextItem"
    1.25 +        android:text="@string/sync_subtitle_pair" />
    1.26 +
    1.27 +      <TextView
    1.28 +        style="@style/SyncLinkItem"
    1.29 +        android:paddingBottom="@dimen/SyncSpace"
    1.30 +        android:onClick="showClickHandler"
    1.31 +        android:text="@string/sync_link_show" />
    1.32 +
    1.33 +      <LinearLayout
    1.34 +        android:layout_width="wrap_content"
    1.35 +        android:layout_height="wrap_content"
    1.36 +        android:paddingBottom="@dimen/SyncSpace"
    1.37 +        android:gravity="center"
    1.38 +        android:orientation="vertical" >
    1.39 +
    1.40 +        <EditText
    1.41 +          android:id="@+id/pair_row1"
    1.42 +          style="@style/SyncEditPin"
    1.43 +          android:state_focused="true" />
    1.44 +        <EditText
    1.45 +          android:id="@+id/pair_row2"
    1.46 +          style="@style/SyncEditPin" />
    1.47 +        <EditText
    1.48 +          android:id="@+id/pair_row3"
    1.49 +          style="@style/SyncEditPin"
    1.50 +          android:imeOptions="actionDone|flagNoExtractUi" />
    1.51 +      </LinearLayout>
    1.52 +
    1.53 +      <LinearLayout
    1.54 +        android:id="@+id/pair_error"
    1.55 +        android:layout_width="wrap_content"
    1.56 +        android:layout_height="wrap_content"
    1.57 +        android:paddingBottom="@dimen/SyncSpace"
    1.58 +        android:gravity="center"
    1.59 +        android:orientation="horizontal"
    1.60 +        android:visibility="invisible" >
    1.61 +
    1.62 +        <TextView
    1.63 +          style="@style/SyncTextError"
    1.64 +          android:text="@string/sync_pair_tryagain"
    1.65 +          android:textSize="10dp" />
    1.66 +      </LinearLayout>
    1.67 +    </LinearLayout>
    1.68 +  </ScrollView>
    1.69 +
    1.70 +  <LinearLayout
    1.71 +    style="@style/SyncBottomContainer" >
    1.72 +
    1.73 +    <LinearLayout
    1.74 +      style="@style/SyncBottom"
    1.75 +      android:orientation="horizontal" >
    1.76 +
    1.77 +      <Button
    1.78 +        style="@style/SyncButton"
    1.79 +        android:onClick="cancelClickHandler"
    1.80 +        android:text="@string/sync_button_cancel" />
    1.81 +
    1.82 +      <Button
    1.83 +        android:id="@+id/pair_button_connect"
    1.84 +        style="@style/SyncButton"
    1.85 +        android:onClick="connectClickHandler"
    1.86 +        android:clickable="false"
    1.87 +        android:enabled="false"
    1.88 +        android:text="@string/sync_button_connect" />
    1.89 +    </LinearLayout>
    1.90 +
    1.91 +  </LinearLayout>
    1.92 +</LinearLayout>

mercurial