mobile/android/base/crashreporter/res/layout/crash_reporter.xml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/crashreporter/res/layout/crash_reporter.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,126 @@
     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 +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    1.10 +            android:layout_width="fill_parent"
    1.11 +            android:layout_height="fill_parent"
    1.12 +            android:fillViewport="true">
    1.13 +
    1.14 +    <LinearLayout android:layout_width="fill_parent"
    1.15 +                  android:layout_height="wrap_content"
    1.16 +                  android:orientation="vertical"
    1.17 +                  android:background="@color/background_normal">
    1.18 +        
    1.19 +        <LinearLayout android:layout_width="fill_parent"
    1.20 +                      android:layout_height="0dp"
    1.21 +                      android:orientation="vertical"
    1.22 +                      android:padding="10dp"
    1.23 +                      android:layout_weight="1">
    1.24 +
    1.25 +            <TextView android:layout_width="wrap_content"
    1.26 +                      android:layout_height="wrap_content"
    1.27 +                      android:padding="10dip"
    1.28 +                      android:textSize="30sp"
    1.29 +                      android:textColor="#000"
    1.30 +                      android:layout_gravity="center_horizontal"
    1.31 +                      android:fontFamily="sans-serif-light"
    1.32 +                      android:text="@string/crash_sorry"/>
    1.33 +
    1.34 +            <TextView android:layout_width="wrap_content"
    1.35 +                      android:layout_height="wrap_content"
    1.36 +                      android:padding="10dip"
    1.37 +                      android:textAppearance="@style/TextAppearance"
    1.38 +                      android:text="@string/crash_message2"/>
    1.39 +
    1.40 +            <CheckBox android:id="@+id/send_report"
    1.41 +                      android:layout_width="wrap_content"
    1.42 +                      android:layout_height="wrap_content"
    1.43 +                      android:checked="true"
    1.44 +                      android:textColor="@color/primary_text"
    1.45 +                      android:layout_marginBottom="10dp"
    1.46 +                      android:text="@string/crash_send_report_message3"/>
    1.47 +
    1.48 +            <EditText android:id="@+id/comment"
    1.49 +                      style="@style/CrashReporter.EditText"
    1.50 +                      android:layout_width="fill_parent"
    1.51 +                      android:layout_height="wrap_content"
    1.52 +                      android:ems="10"
    1.53 +                      android:inputType="textMultiLine"
    1.54 +                      android:lines="5"
    1.55 +                      android:gravity="top"
    1.56 +                      android:layout_marginLeft="8dp"
    1.57 +                      android:layout_marginRight="8dp"
    1.58 +                      android:layout_marginBottom="10dp"
    1.59 +                      android:hint="@string/crash_comment" />
    1.60 +
    1.61 +            <CheckBox android:id="@+id/include_url"
    1.62 +                      android:layout_width="wrap_content"
    1.63 +                      android:layout_height="wrap_content"
    1.64 +                      android:textColor="@color/primary_text"
    1.65 +                      android:textAppearance="@style/TextAppearance"
    1.66 +                      android:layout_marginBottom="10dp"
    1.67 +                      android:text="@string/crash_include_url2"/>
    1.68 +
    1.69 +            <CheckBox android:id="@+id/allow_contact"
    1.70 +                      android:layout_width="wrap_content"
    1.71 +                      android:layout_height="wrap_content"
    1.72 +                      android:textColor="@color/primary_text"
    1.73 +                      android:textAppearance="@style/TextAppearance"
    1.74 +                      android:layout_marginBottom="10dp"
    1.75 +                      android:text="@string/crash_allow_contact2"/>
    1.76 +
    1.77 +            <org.mozilla.gecko.widget.ClickableWhenDisabledEditText
    1.78 +                    android:id="@+id/email"
    1.79 +                    style="@style/CrashReporter.EditText"
    1.80 +                    android:layout_width="fill_parent"
    1.81 +                    android:layout_height="wrap_content"
    1.82 +                    android:ems="10"
    1.83 +                    android:inputType="textEmailAddress"
    1.84 +                    android:layout_marginLeft="8dp"
    1.85 +                    android:layout_marginRight="8dp"
    1.86 +                    android:enabled="false"
    1.87 +                    android:clickable="true"
    1.88 +                    android:hint="@string/crash_email" />
    1.89 +
    1.90 +        </LinearLayout>
    1.91 +        
    1.92 +        <View android:layout_width="fill_parent"
    1.93 +              android:layout_height="1dp"
    1.94 +              android:background="#999" />
    1.95 +
    1.96 +        <LinearLayout android:layout_width="fill_parent"
    1.97 +                      android:layout_height="wrap_content"
    1.98 +                      android:orientation="horizontal"
    1.99 +                      android:layout_gravity="bottom">
   1.100 +
   1.101 +            <Button android:id="@+id/close"
   1.102 +                    android:layout_width="0dp"
   1.103 +                    android:layout_height="wrap_content"
   1.104 +                    android:layout_weight="1.0"
   1.105 +                    android:padding="15dp"
   1.106 +                    android:onClick="onCloseClick"
   1.107 +                    android:text="@string/crash_close_label"
   1.108 +                    android:textAppearance="?android:attr/textAppearance"
   1.109 +                    android:background="@drawable/action_bar_button"/>
   1.110 +
   1.111 +            <View android:layout_width="1dp"
   1.112 +                  android:layout_height="fill_parent"
   1.113 +                  android:background="#999" />
   1.114 +        
   1.115 +            <Button android:id="@+id/restart"
   1.116 +                    android:layout_width="0dp"
   1.117 +                    android:layout_height="wrap_content"
   1.118 +                    android:layout_weight="1.0"
   1.119 +                    android:padding="15dp"
   1.120 +                    android:onClick="onRestartClick"
   1.121 +                    android:text="@string/crash_restart_label"
   1.122 +                    android:textAppearance="?android:attr/textAppearance"
   1.123 +                    android:background="@drawable/action_bar_button"/>
   1.124 +
   1.125 +        </LinearLayout>
   1.126 +   
   1.127 +    </LinearLayout>
   1.128 +
   1.129 +</ScrollView>

mercurial