OSDN Git Service

eclair snapshot
[android-x86/packages-apps-Browser.git] / res / layout / title_bar.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3    Copyright 2009, The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16 -->
17
18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19     android:layout_width="fill_parent"
20     android:layout_height="wrap_content"
21     android:orientation="vertical"
22     android:paddingLeft="8dip"
23     android:paddingRight="12dip"
24     android:paddingTop="2dip"
25     android:paddingBottom="1dip"
26     android:background="@drawable/search_plate_browser" >
27
28     <ProgressBar android:id="@+id/progress_horizontal"
29         style="?android:attr/progressBarStyleHorizontal"
30         android:layout_width="fill_parent"
31         android:layout_height="5dip"
32         android:max="100"
33         />
34
35     <LinearLayout
36         android:layout_width="fill_parent"
37         android:layout_height="wrap_content"
38         android:orientation="horizontal"
39         >
40
41         <LinearLayout android:id="@+id/title_bg"
42             android:background="@drawable/title_text"
43             android:layout_width="0dip"
44             android:layout_weight="1.0"
45             android:layout_height="wrap_content"
46             android:gravity="center_vertical"
47             android:orientation="horizontal"
48             >
49                 <ImageView android:id="@+id/favicon"
50                     android:layout_width="20dip"
51                     android:layout_height="20dip"
52                     android:layout_marginLeft="3dip"
53                     />
54                 <ImageView android:id="@+id/lock"
55                     android:layout_width="wrap_content"
56                     android:layout_height="wrap_content"
57                     android:layout_marginLeft="6dip"
58                     android:visibility="gone"
59                     />
60                 <TextView
61                     android:id="@+id/title"
62                     android:layout_height="wrap_content"
63                     android:layout_width="0dip"
64                     android:layout_weight="1.0"
65                     android:paddingLeft="8dip"
66                     android:paddingRight="6dip"
67                     android:textAppearance="?android:attr/textAppearanceMedium"
68                     android:textColor="@color/black"
69                     android:gravity="center_vertical"
70                     android:singleLine="true"
71                     android:ellipsize="end"
72                 />
73         </LinearLayout>
74         <ImageView
75             android:id="@+id/rt_btn"
76             android:layout_width="wrap_content"
77             android:layout_height="fill_parent"
78             android:layout_marginLeft="6dip"
79             android:scaleType="center"
80             android:layout_marginBottom="4dip"
81             android:background="@drawable/btn_bookmark"
82             android:src="@drawable/ic_btn_bookmarks"
83         />
84     </LinearLayout>
85 </LinearLayout>