blob: 0f70519e9e643721da63750b22a391bf9504b3d9 [file] [log] [blame]
Leon Scroggins81db3662009-06-04 17:45:11 -04001<?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:fitsSystemWindows="true"
19 android:orientation="horizontal"
20 android:layout_width="fill_parent"
21 android:background="@drawable/background_titlebar"
22 android:layout_height="45dip">
23 <ImageView android:id="@+id/favicon"
24 android:layout_height="20dip"
25 android:layout_width="20dip"
26 android:layout_marginLeft="6dip"
27 android:layout_marginRight="6dip"
28 android:layout_gravity="center_vertical"
29 />
30 <!-- layout which contains the title, progress bar, and url -->
31 <LinearLayout
32 android:orientation="vertical"
33 android:layout_width="0dip"
34 android:layout_weight="1"
35 android:layout_height="wrap_content">
36 <!-- This part contains the favicon and the progress bar -->
37 <RelativeLayout
38 android:layout_marginTop="3dip"
39 android:layout_height="wrap_content"
40 android:layout_width="fill_parent"
41 >
42 <LinearLayout
43 android:orientation="horizontal"
44 android:layout_marginTop="3dip"
45 android:layout_width="fill_parent"
46 android:layout_height="wrap_content">
47 <ProgressBar android:id="@+id/progress_horizontal"
48 style="?android:attr/progressBarStyleHorizontal"
49 android:layout_width="0dip"
50 android:layout_weight="1"
51 android:layout_height="wrap_content"
52 android:max="100" />
53 <ProgressBar android:id="@+id/progress_circular"
54 style="?android:attr/progressBarStyleSmallTitle"
55 android:layout_marginLeft="3dip"
56 android:layout_gravity="center_vertical"
57 android:max="100"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content" />
60 </LinearLayout>
61 <!-- need to make this no wider than the horizontal progress bar -->
Leon Scroggins81db3662009-06-04 17:45:11 -040062 <TextView android:id="@+id/title"
63 android:layout_height="wrap_content"
64 android:layout_width="wrap_content"
65 android:layout_marginLeft="6dip"
Leon Scrogginse4b3bda2009-06-09 15:46:41 -040066 android:layout_marginTop="4dip"
Leon Scroggins81db3662009-06-04 17:45:11 -040067 android:textSize="14dip"
Leon Scrogginse4b3bda2009-06-09 15:46:41 -040068 android:textColor="@color/white"
Leon Scroggins81db3662009-06-04 17:45:11 -040069 android:textStyle="bold"
70 android:singleLine="true"
71 />
Leon Scrogginse4b3bda2009-06-09 15:46:41 -040072 <TextView android:id="@+id/url"
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:layout_marginLeft="6dip"
76 android:layout_below="@id/title"
77 android:textSize="12dip"
78 android:textColor="@color/white"
79 android:singleLine="true"
80 />
Leon Scroggins81db3662009-06-04 17:45:11 -040081 <ImageView android:id="@+id/lock_icon"
82 android:layout_height="wrap_content"
83 android:layout_width="wrap_content"
84 android:layout_alignBottom="@id/title"
85 android:layout_alignParentRight="true"
86 android:visibility="gone"/>
87 </RelativeLayout>
88 </LinearLayout>
Leon Scroggins81db3662009-06-04 17:45:11 -040089 <!-- These buttons will change look/functionality -->
Leon Scrogginse4b3bda2009-06-09 15:46:41 -040090 <ImageView android:id="@+id/lft_button"
Leon Scroggins81db3662009-06-04 17:45:11 -040091 android:layout_width="52dip"
92 android:layout_height="wrap_content"
Leon Scrogginse4b3bda2009-06-09 15:46:41 -040093 android:layout_gravity="center_vertical"
94 android:src="@android:drawable/btn_star"/>
Leon Scroggins81db3662009-06-04 17:45:11 -040095 <!-- divider -->
96 <View android:id="@+id/divider"
97 android:layout_height="fill_parent"
98 android:layout_width="2dip"
99 android:background="@drawable/button_line"/>
Leon Scrogginse4b3bda2009-06-09 15:46:41 -0400100 <ImageView android:id="@+id/rt_button"
Leon Scroggins81db3662009-06-04 17:45:11 -0400101 android:layout_width="52dip"
102 android:layout_height="wrap_content"
Leon Scrogginse4b3bda2009-06-09 15:46:41 -0400103 android:layout_gravity="center_vertical"
104 android:src="@*android:drawable/btn_browser_zoom_page_overview"/>
Leon Scroggins81db3662009-06-04 17:45:11 -0400105</LinearLayout>