PageRenderTime 17ms CodeModel.GetById 8ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/WebVox/res/layout/tab_view.xml

http://eyes-free.googlecode.com/
XML | 73 lines | 56 code | 1 blank | 16 comment | 0 complexity | 0056f32b0f0e904ecaaa8e796a9cb15a MD5 | raw file
 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_height="wrap_content"
19    android:minHeight="?android:attr/listPreferredItemHeight"
20    android:layout_width="fill_parent"
21    android:orientation="horizontal"
22    android:gravity="center_vertical"
23    >
24    <!-- This ImageView has the same width as the ImageView in
25         tab_view_add_tab.xml. -->
26    <ImageView android:id="@+id/favicon"
27        android:layout_width="20dip"
28        android:layout_height="20dip"
29        android:layout_marginLeft="18dip"
30        android:layout_marginRight="18dip"
31        android:background="@drawable/fav_icn_background"
32        android:padding="2dip"/>
33    <LinearLayout
34        android:layout_width="0dip"
35        android:layout_height="wrap_content"
36        android:layout_weight="1"
37        android:orientation="vertical"
38        >
39        <TextView android:id="@+id/title"
40            android:layout_width="fill_parent"
41            android:layout_height="wrap_content"
42            android:textAppearance="?android:attr/textAppearanceMedium"
43            android:maxLines="1"
44            android:singleLine="true"
45            android:ellipsize="end"
46            />
47        <TextView android:id="@+id/url"
48            android:layout_width="fill_parent"
49            android:layout_height="wrap_content"
50            android:textAppearance="?android:attr/textAppearanceSmall"
51            android:maxLines="1"
52            android:singleLine="true"
53            android:ellipsize="end"
54            />
55    </LinearLayout>
56    <View android:id="@+id/divider"
57        android:background="#ff313431"
58        android:layout_width="1dip"
59        android:layout_height="fill_parent"
60        android:layout_marginLeft="8dip"
61        android:layout_marginTop="5dip"
62        android:layout_marginBottom="5dip"
63        />
64    <view class="com.marvin.webvox.ActiveTabsPage$CloseHolder" android:id="@+id/close"
65        android:layout_width="wrap_content"
66        android:layout_height="fill_parent"
67        android:paddingLeft="18dip"
68        android:paddingRight="18dip"
69        android:background="@drawable/close_background"
70        android:src="@drawable/btn_close_window"
71        android:scaleType="center"
72        />
73</LinearLayout>