Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2009 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 <RelativeLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     >
     22 
     23     <RelativeLayout
     24         android:id="@+id/corpus_selector_frame"
     25         android:layout_width="match_parent"
     26         android:layout_height="wrap_content"
     27         android:layout_below="@+id/corpus_selector_arrow"
     28         android:layout_alignParentLeft="true"
     29         android:layout_alignParentRight="true"
     30         android:paddingTop="22dip"
     31         android:paddingBottom="26dip"
     32         android:paddingLeft="4dip"
     33         android:paddingRight="4dip"
     34         android:background="@drawable/corpus_selector_bg"
     35         android:orientation="vertical"
     36         >
     37 
     38         <RelativeLayout
     39             android:id="@+id/corpus_selector_header"
     40             android:layout_width="match_parent"
     41             android:layout_height="wrap_content"
     42             android:layout_below="@+id/corpus_selector_arrow"
     43             android:layout_alignParentLeft="true"
     44             android:layout_alignParentRight="true"
     45             android:layout_alignParentTop="true"
     46             >
     47 
     48             <TextView
     49                 android:layout_width="wrap_content"
     50                 android:layout_height="wrap_content"
     51                 android:layout_alignParentLeft="true"
     52                 android:layout_centerVertical="true"
     53                 android:paddingLeft="16dip"
     54                 android:singleLine="true"
     55                 android:gravity="center_vertical|left"
     56                 android:textColor="@android:color/primary_text_light"
     57                 android:textSize="14dip"
     58                 android:text="@string/corpus_selection_heading"
     59             />
     60 
     61             <ImageView
     62                 android:id="@+id/corpus_edit_items"
     63                 android:layout_width="wrap_content"
     64                 android:layout_height="wrap_content"
     65                 android:layout_alignParentRight="true"
     66                 android:layout_centerVertical="true"
     67                 android:paddingLeft="6dip"
     68                 android:paddingTop="6dip"
     69                 android:paddingBottom="6dip"
     70                 android:paddingRight="6dip"
     71                 android:gravity="center_vertical|right"
     72                 android:singleLine="true"
     73                 android:clickable="true"
     74                 android:focusable="true"
     75                 android:src="@drawable/corpus_edit_icon"
     76                 android:background="@drawable/corpus_edit_items_bg"
     77             />
     78         </RelativeLayout>
     79 
     80         <GridView
     81             android:id="@+id/corpus_grid"
     82             android:layout_width="match_parent"
     83             android:layout_height="wrap_content"
     84             android:layout_below="@id/corpus_selector_header"
     85             android:layout_alignParentLeft="true"
     86             android:layout_alignParentRight="true"
     87             android:layout_marginTop="12dip"
     88             android:horizontalSpacing="2dip"
     89             android:verticalSpacing="4dip"
     90             android:numColumns="@integer/corpus_selection_dialog_columns"
     91             android:listSelector="@null"
     92             />
     93 
     94     </RelativeLayout>
     95 
     96     <ImageView
     97         android:id="@+id/corpus_selector_arrow"
     98         android:layout_width="wrap_content"
     99         android:layout_height="wrap_content"
    100         android:layout_alignParentTop="true"
    101         android:layout_alignParentLeft="true"
    102         android:layout_marginTop="44dip"
    103         android:layout_marginBottom="-9dip"
    104         android:layout_marginLeft="8.5dip"
    105         android:src="@drawable/corpus_selector_arrow_up"
    106         />
    107 
    108 </RelativeLayout>
    109