Home | History | Annotate | Download | only in layout-sw580dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 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 <!--
     18   This is a header entry in the contact details list for when the contact has social updates. The
     19   entry shows the contact's basic info and maintains vertical padding to ensure that the first
     20   contact detail is visible (and below the tab carousel). The photo is not displayed here
     21   because it will be shown in the tab carousel.
     22 -->
     23 <LinearLayout
     24     xmlns:android="http://schemas.android.com/apk/res/android"
     25     xmlns:ex="http://schemas.android.com/apk/res/com.android.contacts"
     26     android:layout_width="match_parent"
     27     android:layout_height="wrap_content"
     28     android:orientation="vertical"
     29     android:layout_marginTop="30dip"
     30     android:paddingBottom="16dip">
     31 
     32     <!-- Add a first item that gives us enough space to show the carousel -->
     33     <view
     34         class="com.android.contacts.widget.ProportionalLayout"
     35         android:layout_width="match_parent"
     36         android:layout_height="wrap_content"
     37         ex:ratio="0.6667"
     38         ex:direction="widthToHeight">
     39 
     40         <!-- Put a dummy view here because the ProportionalLayout requires one -->
     41         <View
     42             android:layout_width="match_parent"
     43             android:layout_height="match_parent" />
     44 
     45     </view>
     46 
     47     <LinearLayout
     48         android:layout_width="match_parent"
     49         android:layout_height="wrap_content"
     50         android:orientation="horizontal"
     51         android:paddingTop="8dip"
     52         android:paddingRight="8dip">
     53 
     54         <TextView
     55             android:id="@+id/name"
     56             android:layout_width="0dip"
     57             android:layout_height="wrap_content"
     58             android:layout_weight="1"
     59             android:paddingLeft="8dip"
     60             android:paddingRight="24dip"
     61             android:textAppearance="?android:attr/textAppearanceLarge"
     62             android:textSize="@dimen/detail_header_name_text_size" />
     63 
     64         <include
     65             layout="@layout/favorites_star" />
     66 
     67     </LinearLayout>
     68 
     69     <TextView
     70         android:id="@+id/company"
     71         android:layout_width="match_parent"
     72         android:layout_height="wrap_content"
     73         android:paddingLeft="8dip"
     74         android:textAppearance="?android:attr/textAppearanceMedium"
     75         android:textColor="?android:attr/textColorSecondary" />
     76 
     77 </LinearLayout>
     78