Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2007 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 <ScrollView
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content">
     21     <LinearLayout
     22         android:layout_width="match_parent"
     23         android:layout_height="wrap_content"
     24         android:orientation="vertical"
     25         android:padding="20dip"
     26         android:layout_gravity="center_horizontal">
     27         <TextView
     28             android:id="@+id/prompt"
     29             android:layout_width="match_parent"
     30             android:layout_height="wrap_content"
     31             android:textStyle="bold"
     32             android:gravity="center_horizontal"
     33             android:paddingBottom="30dip" />
     34         <LinearLayout
     35             android:layout_width="match_parent"
     36             android:layout_height="wrap_content">
     37             <LinearLayout
     38                 android:id="@+id/normal_layout"
     39                 android:visibility="visible"
     40                 android:orientation="vertical"
     41                 android:layout_width="match_parent"
     42                 android:layout_marginLeft="10dip"
     43                 android:layout_marginRight="10dip"
     44                 android:layout_height="wrap_content">
     45                 <LinearLayout
     46                     android:id="@+id/input_restriction_info"
     47                     android:layout_width="wrap_content"
     48                     android:layout_height="wrap_content"
     49                     android:layout_marginLeft="4dip"
     50                     android:orientation="horizontal">
     51                     <TextView
     52                         android:id="@+id/input_type"
     53                         android:gravity="left"
     54                         android:textColor="@color/ltgrey"
     55                         android:layout_width="wrap_content"
     56                         android:layout_height="wrap_content" />
     57                     <TextView
     58                         android:id="@+id/num_of_chars"
     59                         android:textColor="@color/ltgrey"
     60                         android:layout_width="wrap_content"
     61                         android:layout_height="wrap_content"
     62                         android:layout_marginLeft="4dip" />
     63                 </LinearLayout>
     64                 <EditText
     65                     android:id="@+id/in_text"
     66                     android:layout_gravity="center_horizontal"
     67                     android:layout_marginBottom="20dip"
     68                     android:layout_width="match_parent"
     69                     android:layout_height="wrap_content" />
     70                 <Button
     71                     android:id="@+id/button_ok"
     72                     android:layout_gravity="center_horizontal"
     73                     android:layout_width="100sp"
     74                     android:layout_height="wrap_content"
     75                     android:textStyle="bold"
     76                     android:text="@string/button_ok" />
     77             </LinearLayout>
     78             <LinearLayout
     79                 android:id="@+id/yes_no_layout"
     80                 android:visibility="gone"
     81                 android:layout_width="match_parent"
     82                 android:layout_height="wrap_content"
     83                 android:gravity="center_horizontal">
     84                 <Button
     85                     android:id="@+id/button_yes"
     86                     android:layout_width="100sp"
     87                     android:layout_height="wrap_content"
     88                     android:textStyle="bold"
     89                     android:text="@string/button_yes" />
     90                 <Button
     91                     android:id="@+id/button_no"
     92                     android:layout_marginLeft="10dip"
     93                     android:layout_width="100sp"
     94                     android:layout_height="wrap_content"
     95                     android:textStyle="bold"
     96                     android:text="@string/button_no" />
     97             </LinearLayout>
     98         </LinearLayout>
     99     </LinearLayout>
    100 </ScrollView>
    101