Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2010 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 <!-- Non-xlarge -->
     18 
     19 <LinearLayout
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:id="@+id/invite_section"
     22     android:orientation="vertical"
     23     android:layout_width="match_parent"
     24     android:layout_height="wrap_content"
     25     >
     26 
     27     <RelativeLayout
     28          android:layout_width="match_parent"
     29          android:layout_height="wrap_content"
     30          >
     31 
     32         <TextView
     33              android:layout_width="wrap_content"
     34              android:layout_height="wrap_content"
     35              android:singleLine="true"
     36              android:ellipsize="end"
     37              android:text="@string/message_view_invite_title"
     38              android:textAppearance="?android:attr/textAppearanceSmall"
     39              android:drawableLeft="@drawable/ic_badge_invite_holo_light"
     40              android:layout_marginLeft="12dip"
     41              android:layout_alignParentLeft="true"
     42              android:layout_centerVertical="true"
     43              />
     44 
     45         <Button
     46              android:id="@+id/invite_link"
     47              android:layout_width="wrap_content"
     48              android:layout_height="wrap_content"
     49              android:singleLine="true"
     50              android:ellipsize="end"
     51              android:text="@string/message_view_invite_view"
     52              android:textAppearance="?android:attr/textAppearanceSmall"
     53              android:layout_marginRight="3dip"
     54              android:layout_alignParentRight="true"
     55              android:layout_centerVertical="true"
     56              />
     57     </RelativeLayout>
     58 
     59     <!-- Divider -->
     60     <View
     61          android:layout_width="match_parent"
     62          android:layout_height="1px"
     63          android:background="#ff808080"
     64          />
     65 
     66     <TextView
     67          android:id="@+id/invite_info"
     68          android:layout_height="wrap_content"
     69          android:layout_width="match_parent"
     70          android:layout_marginTop="4dip"
     71          android:layout_marginLeft="12dip"
     72          android:layout_marginRight="6dip"
     73          android:singleLine="true"
     74          android:ellipsize="end"
     75          android:text="@string/message_view_invite_text"
     76          android:textAppearance="?android:attr/textAppearanceSmall"
     77          />
     78 
     79     <LinearLayout
     80          android:layout_width="match_parent"
     81          android:layout_height="44dip"
     82          android:orientation="horizontal"
     83          android:gravity="center_vertical"
     84          android:layout_marginLeft="12dip"
     85          android:layout_marginRight="6dip"
     86          >
     87 
     88         <TextView
     89              android:id="@+id/accept"
     90              android:layout_width="0dip"
     91              android:layout_height="wrap_content"
     92              android:layout_weight="1"
     93              android:layout_marginRight="6dip"
     94              android:text="@string/message_view_invite_accept"
     95              android:singleLine="true"
     96              android:textAppearance="?android:attr/textAppearanceSmall"
     97              android:drawableLeft="@drawable/btn_yes_off"
     98              android:gravity="center_vertical"
     99              android:focusable="true"
    100              />
    101 
    102         <TextView
    103              android:id="@+id/maybe"
    104              android:layout_width="0dip"
    105              android:layout_height="wrap_content"
    106              android:layout_weight="1"
    107              android:layout_marginRight="6dip"
    108              android:text="@string/message_view_invite_maybe"
    109              android:singleLine="true"
    110              android:textAppearance="?android:attr/textAppearanceSmall"
    111              android:drawableLeft="@drawable/btn_maybe_off"
    112              android:gravity="center_vertical"
    113              android:focusable="true"
    114              />
    115 
    116         <TextView
    117              android:id="@+id/decline"
    118              android:layout_width="0dip"
    119              android:layout_height="wrap_content"
    120              android:layout_weight="1"
    121              android:text="@string/message_view_invite_decline"
    122              android:singleLine="true"
    123              android:textAppearance="?android:attr/textAppearanceSmall"
    124              android:drawableLeft="@drawable/btn_no_off"
    125              android:gravity="center_vertical"
    126              android:focusable="true"
    127              />
    128 
    129     </LinearLayout>
    130 </LinearLayout>
    131