activity_main.xml (2769B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public 3 - License, v. 2.0. If a copy of the MPL was not distributed with this 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 5 6 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 7 xmlns:tools="http://schemas.android.com/tools" 8 android:layout_width="match_parent" 9 android:layout_height="match_parent" 10 android:orientation="vertical" 11 android:id="@+id/container" 12 tools:context="org.mozilla.samples.fxa.MainActivity"> 13 14 <LinearLayout 15 android:layout_width="match_parent" 16 android:layout_height="wrap_content" 17 android:layout_alignParentStart="true" 18 android:layout_alignParentTop="true" 19 android:orientation="vertical" 20 android:id="@+id/buttonList" 21 tools:context="org.mozilla.samples.fxa.MainActivity"> 22 23 <Button 24 android:id="@+id/buttonCustomTabs" 25 android:layout_width="wrap_content" 26 android:layout_height="wrap_content" 27 android:text="@string/sign_in_customtabs" 28 android:textAlignment="center" /> 29 30 <Button 31 android:id="@+id/buttonWebView" 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:text="@string/sign_in_webview" 35 android:textAlignment="center" /> 36 37 <Button 38 android:id="@+id/buttonPair" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:text="@string/sign_in_pair" 42 android:textAlignment="center" /> 43 44 <Button 45 android:id="@+id/buttonLogout" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:text="@string/log_out" 49 android:textAlignment="center" /> 50 </LinearLayout> 51 52 <CheckBox 53 android:id="@+id/checkboxKeys" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:layout_below="@+id/buttonList" 57 android:text="@string/wants_keys" /> 58 59 <TextView 60 android:id="@+id/txtView" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:layout_below="@+id/checkboxKeys" 64 android:layout_gravity="center" 65 android:text="" /> 66 67 <TextView 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" 70 android:id="@+id/scanresult" 71 android:textColor="#000" 72 android:layout_marginTop="10dp" 73 android:textAppearance="?android:attr/textAppearanceMedium" 74 android:text=""/> 75 76 </RelativeLayout>