Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2012 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <!-- Adapted from frameworks/base/core/res/res/layout/alert_dialog_holo.xml.  We
     18    want a dialog, but it must be its own activity so we can launch the soft
     19    keyboard on it.  A regular dialog will not work since it would be launched from
     20    the IME. -->
     21 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android">
     22     <LinearLayout
     23          android:layout_width="match_parent"
     24          android:layout_height="wrap_content"
     25          android:layout_marginStart="8dip"
     26          android:layout_marginEnd="8dip"
     27          android:orientation="vertical">
     28         <LinearLayout
     29              android:layout_width="match_parent"
     30              android:layout_height="wrap_content"
     31              android:orientation="vertical">
     32             <View android:layout_width="match_parent"
     33                 android:layout_height="2dip"
     34                 android:visibility="gone"
     35                 android:background="@android:color/holo_blue_light" />
     36             <TextView
     37                 style="?android:attr/windowTitleStyle"
     38                 android:singleLine="true"
     39                 android:ellipsize="end"
     40                 android:layout_width="match_parent"
     41                 android:layout_height="wrap_content"
     42                 android:minHeight="64dip"
     43                 android:layout_marginLeft="16dip"
     44                 android:layout_marginRight="16dip"
     45                 android:gravity="center_vertical|left"
     46                 android:text="@string/research_feedback_dialog_title" />
     47             <View
     48                 android:layout_width="match_parent"
     49                 android:layout_height="2dip"
     50                 android:background="@android:color/holo_blue_light" />
     51         </LinearLayout>
     52 
     53         <EditText
     54             android:id="@+id/research_feedback_contents"
     55             android:layout_height="wrap_content"
     56             android:layout_width="match_parent"
     57             android:layout_gravity="fill_horizontal|center_vertical"
     58             android:layout_marginLeft="8dip"
     59             android:layout_marginRight="8dip"
     60             android:layout_marginBottom="8dip"
     61             android:layout_marginTop="8dip"
     62             android:minLines="2"
     63             android:scrollbars="vertical"
     64             android:hint="@string/research_feedback_hint"
     65             android:inputType="textMultiLine|textCapSentences">
     66             <requestFocus />
     67         </EditText>
     68         <CheckBox
     69             android:id="@+id/research_feedback_include_account_name"
     70             android:layout_height="wrap_content"
     71             android:layout_width="match_parent"
     72             android:layout_marginLeft="16dip"
     73             android:layout_marginRight="16dip"
     74             android:layout_marginBottom="8dip"
     75             android:checked="false"
     76             android:text="@string/research_feedback_include_account_name_label" />
     77         <CheckBox
     78             android:id="@+id/research_feedback_include_recording_checkbox"
     79             android:layout_height="wrap_content"
     80             android:layout_width="match_parent"
     81             android:layout_marginLeft="16dip"
     82             android:layout_marginRight="16dip"
     83             android:layout_marginBottom="8dip"
     84             android:checked="false"
     85             android:text="@string/research_feedback_include_recording_label" />
     86         <LinearLayout
     87             android:layout_width="match_parent"
     88             android:layout_height="wrap_content"
     89             android:orientation="vertical"
     90             android:divider="?android:attr/dividerHorizontal"
     91             android:showDividers="beginning"
     92             android:dividerPadding="0dip">
     93             <LinearLayout
     94                 style="?android:attr/buttonBarStyle"
     95                 android:layout_width="match_parent"
     96                 android:layout_height="wrap_content"
     97                 android:orientation="horizontal"
     98                 android:layoutDirection="locale"
     99                 android:measureWithLargestChild="true">
    100                 <Button
    101                     android:id="@+id/research_feedback_cancel_button"
    102                     android:layout_width="wrap_content"
    103                     android:layout_gravity="left"
    104                     android:layout_weight="1"
    105                     android:maxLines="2"
    106                     style="?android:attr/buttonBarButtonStyle"
    107                     android:textSize="14sp"
    108                     android:text="@string/research_feedback_cancel"
    109                     android:layout_height="wrap_content" />
    110                 <Button
    111                     android:id="@+id/research_feedback_send_button"
    112                     android:layout_width="wrap_content"
    113                     android:layout_gravity="right"
    114                     android:layout_weight="1"
    115                     android:maxLines="2"
    116                     style="?android:attr/buttonBarButtonStyle"
    117                     android:textSize="14sp"
    118                     android:text="@string/research_feedback_send"
    119                     android:layout_height="wrap_content" />
    120             </LinearLayout>
    121         </LinearLayout>
    122     </LinearLayout>
    123 </ScrollView>
    124