Home | History | Annotate | Download | only in layout-sw580dp-w1000dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4  * Copyright 2010, The Android Open Source Project
      5  *
      6  * Licensed under the Apache License, Version 2.0 (the "License");
      7  * you may not use this file except in compliance with the License.
      8  * You may obtain a copy of the License at
      9  *
     10  *      http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS,
     14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15  * See the License for the specific language governing permissions and
     16  * limitations under the License.
     17  */
     18 -->
     19 
     20 <!-- Note: padding might be controlled programatically -->
     21 <FrameLayout
     22     xmlns:android="http://schemas.android.com/apk/res/android"
     23     android:layout_width="match_parent"
     24     android:layout_height="wrap_content"
     25     android:paddingLeft="16dip">
     26 
     27     <com.android.contacts.detail.ActionsViewContainer
     28         android:id="@+id/actions_view_container"
     29         android:layout_width="match_parent"
     30         android:layout_height="wrap_content"
     31         android:minHeight="@dimen/detail_min_line_item_height"
     32         android:gravity="center_vertical"
     33         android:orientation="horizontal"
     34         android:focusable="true"
     35         android:background="?android:attr/selectableItemBackground"
     36         android:nextFocusRight="@+id/secondary_action_view_container">
     37 
     38         <!-- Note: padding might be controlled programatically -->
     39         <LinearLayout
     40             android:id="@+id/primary_action_view"
     41             android:layout_width="wrap_content"
     42             android:layout_height="wrap_content"
     43             android:layout_gravity="center_vertical"
     44             android:layout_weight="1"
     45             android:paddingLeft="8dip"
     46             android:orientation="vertical">
     47 
     48             <TextView
     49                 android:id="@+id/data"
     50                 android:layout_width="wrap_content"
     51                 android:layout_height="wrap_content"
     52                 android:textAppearance="?android:attr/textAppearanceMedium" />
     53 
     54             <TextView
     55                 android:id="@+id/footer"
     56                 android:layout_width="wrap_content"
     57                 android:layout_height="wrap_content"
     58                 android:textAppearance="?android:attr/textAppearanceSmall"
     59                 android:textColor="?android:attr/textColorSecondary"
     60                 android:visibility="gone" />
     61 
     62         </LinearLayout>
     63 
     64         <ImageView
     65             android:id="@+id/presence_icon"
     66             android:layout_width="wrap_content"
     67             android:layout_height="wrap_content"
     68             android:layout_marginRight="4dip"
     69             android:layout_gravity="center_vertical"
     70             android:scaleType="centerInside" />
     71 
     72         <TextView
     73             android:id="@+id/kind"
     74             android:layout_width="wrap_content"
     75             android:layout_height="wrap_content"
     76             android:layout_gravity="center_vertical"
     77             android:visibility="gone" />
     78 
     79         <TextView
     80             android:id="@+id/type"
     81             style="@style/ContactDetailItemType"
     82             android:layout_width="wrap_content"
     83             android:layout_height="wrap_content"
     84             android:layout_gravity="center_vertical"
     85             android:paddingRight="16dip" />
     86 
     87         <View
     88             android:id="@+id/primary_indicator"
     89             android:layout_width="16dip"
     90             android:layout_height="16dip"
     91             android:visibility="gone"
     92             android:layout_gravity="center_vertical"
     93             android:background="@drawable/ic_menu_mark" />
     94 
     95 
     96         <View
     97             android:id="@+id/vertical_divider"
     98             android:layout_width="1px"
     99             android:layout_height="match_parent"
    100             android:layout_marginTop="@dimen/detail_vertical_divider_vertical_margin"
    101             android:layout_marginBottom="@dimen/detail_vertical_divider_vertical_margin"
    102             android:background="?android:attr/dividerVertical" />
    103 
    104         <!-- Note: padding might be controlled programatically -->
    105         <FrameLayout
    106             android:id="@+id/secondary_action_view_container"
    107             android:layout_width="wrap_content"
    108             android:layout_height="match_parent"
    109             android:paddingLeft="@dimen/detail_item_icon_margin"
    110             android:paddingRight="@dimen/detail_item_icon_margin"
    111             android:duplicateParentState="false"
    112             android:focusable="true"
    113             android:background="?android:attr/selectableItemBackground"
    114             android:nextFocusLeft="@id/actions_view_container">
    115             <ImageView
    116                 android:id="@+id/secondary_action_button"
    117                 android:layout_width="32dip"
    118                 android:layout_height="match_parent"
    119                 android:layout_centerVertical="true"
    120                 android:gravity="center"
    121                 android:scaleType="center"
    122                 android:duplicateParentState="false" />
    123         </FrameLayout>
    124     </com.android.contacts.detail.ActionsViewContainer>
    125 </FrameLayout>
    126