Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2014 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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:layout_width="match_parent"
     19     android:layout_height="match_parent">
     20 
     21     <ImageView android:id="@+id/full_screenshot"
     22         android:layout_width="match_parent"
     23         android:layout_height="match_parent"
     24         android:visibility="invisible"/>
     25 
     26     <com.android.test.voiceinteraction.AssistVisualizer android:id="@+id/assist_visualizer"
     27             android:layout_width="match_parent"
     28             android:layout_height="match_parent" />
     29 
     30     <FrameLayout android:layout_width="match_parent"
     31         android:layout_height="match_parent"
     32         android:fitsSystemWindows="true">
     33 
     34         <LinearLayout
     35                 android:layout_width="match_parent"
     36                 android:layout_height="wrap_content"
     37                 android:layout_gravity="top"
     38                 android:orientation="vertical"
     39                 android:background="#ffffffff"
     40                 android:elevation="8dp"
     41                 >
     42             <LinearLayout android:id="@+id/top_content"
     43                 android:layout_width="match_parent"
     44                 android:layout_height="wrap_content"
     45                 android:orientation="horizontal"
     46                 >
     47                 <ImageView android:id="@+id/screenshot"
     48                     android:layout_width="wrap_content"
     49                     android:layout_height="46dp"
     50                     android:adjustViewBounds="true" />
     51                 <View android:layout_width="0dp"
     52                     android:layout_height="0dp"
     53                     android:layout_weight="1" />
     54                 <CheckBox android:id="@+id/show_options"
     55                     android:layout_width="wrap_content"
     56                     android:layout_height="wrap_content" />
     57                 <Button android:id="@+id/do_tree"
     58                     android:layout_width="wrap_content"
     59                     android:layout_height="wrap_content"
     60                     android:text="@string/tree" />
     61                 <Button android:id="@+id/do_text"
     62                     android:layout_width="wrap_content"
     63                     android:layout_height="wrap_content"
     64                     android:text="@string/text" />
     65                 <Button android:id="@+id/start"
     66                     android:layout_width="wrap_content"
     67                     android:layout_height="wrap_content"
     68                     android:text="@string/start" />
     69             </LinearLayout>
     70             <LinearLayout android:id="@+id/options"
     71                 android:layout_width="match_parent"
     72                 android:layout_height="wrap_content"
     73                 android:orientation="vertical"
     74                 >
     75                 <CheckBox android:id="@+id/disallow_structure"
     76                     android:layout_width="wrap_content"
     77                     android:layout_height="wrap_content"
     78                     android:text="Disallow context" />
     79                 <CheckBox android:id="@+id/disallow_screenshot"
     80                     android:layout_width="wrap_content"
     81                     android:layout_height="wrap_content"
     82                     android:text="Disallow screenshot" />
     83                 <TextView android:id="@+id/options_text"
     84                     android:layout_width="match_parent"
     85                     android:layout_height="wrap_content"
     86                     android:layout_marginTop="16dp"
     87                     android:layout_marginBottom="16dp"
     88                     android:textAppearance="?android:attr/textAppearanceMedium" />
     89             </LinearLayout>
     90         </LinearLayout>
     91 
     92         <LinearLayout android:id="@+id/bottom_content"
     93             android:layout_width="match_parent"
     94             android:layout_height="wrap_content"
     95             android:layout_gravity="bottom"
     96             android:orientation="vertical"
     97             android:background="#ffffffff"
     98             android:elevation="8dp"
     99             >
    100 
    101             <TextView android:id="@+id/text"
    102                 android:layout_width="match_parent"
    103                 android:layout_height="wrap_content"
    104                 android:layout_marginBottom="16dp"
    105                 android:textAppearance="?android:attr/textAppearanceMedium" />
    106 
    107             <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"
    108                     android:orientation="horizontal">
    109                 <Button android:id="@+id/confirm"
    110                     android:layout_width="wrap_content"
    111                     android:layout_height="wrap_content"
    112                     android:text="@string/confirm" />
    113                 <Button android:id="@+id/complete"
    114                     android:layout_width="wrap_content"
    115                     android:layout_height="wrap_content"
    116                     android:text="@string/complete" />
    117                 <Button android:id="@+id/abort"
    118                     android:layout_width="wrap_content"
    119                     android:layout_height="wrap_content"
    120                     android:text="@string/abort" />
    121             </LinearLayout>
    122 
    123         </LinearLayout>
    124     </FrameLayout>
    125 </FrameLayout>
    126