• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<FrameLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:background="#00000000">
22    <LinearLayout
23        android:id="@+id/widget_container"
24        android:orientation="horizontal"
25        android:layout_width="match_parent"
26        android:layout_height="match_parent">
27        <FrameLayout
28            android:layout_width="70dp"
29            android:layout_height="70dp"
30            android:layout_gravity="center_vertical">
31            <ImageView
32                android:id="@+id/image"
33                android:layout_width="match_parent"
34                android:layout_height="match_parent" />
35            <ImageButton
36                android:id="@+id/border"
37                android:background="@drawable/frame_thumbnail_contact_widget_holo"
38                android:layout_width="match_parent"
39                android:layout_height="match_parent" />
40        </FrameLayout>
41        <RelativeLayout
42            android:id="@+id/name_and_snippet_container"
43            android:layout_width="match_parent"
44            android:layout_height="match_parent"
45            android:layout_weight="1"
46            android:paddingTop="4dp"
47            android:paddingBottom="4dp"
48            android:paddingRight="4dp"
49            android:paddingLeft="43dp"
50            android:background="@drawable/bg_status_contact_widget">
51            <TextView
52                android:id="@+id/name_and_snippet"
53                android:layout_width="match_parent"
54                android:layout_height="match_parent"
55                android:layout_alignParentLeft="true"
56                android:layout_alignParentTop="true"
57                android:maxLines="3"
58                android:lineSpacingExtra="2sp"
59                android:textColor="#FFFFFFFF"
60                android:textSize="@dimen/widget_text_size_snippet" />
61            <TextView
62                android:id="@+id/name"
63                android:layout_width="match_parent"
64                android:layout_height="match_parent"
65                android:gravity="center"
66                android:textColor="#FFFFFFFF"
67                android:textSize="@dimen/widget_text_size_name" />
68        </RelativeLayout>
69    </LinearLayout>
70</FrameLayout>
71