Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 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: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 Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 62 | <TextView android:id="@+id/title" |
| 63 | android:layout_height="wrap_content" |
| 64 | android:layout_width="wrap_content" |
| 65 | android:layout_marginLeft="6dip" |
Leon Scroggins | e4b3bda | 2009-06-09 15:46:41 -0400 | [diff] [blame^] | 66 | android:layout_marginTop="4dip" |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 67 | android:textSize="14dip" |
Leon Scroggins | e4b3bda | 2009-06-09 15:46:41 -0400 | [diff] [blame^] | 68 | android:textColor="@color/white" |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 69 | android:textStyle="bold" |
| 70 | android:singleLine="true" |
| 71 | /> |
Leon Scroggins | e4b3bda | 2009-06-09 15:46:41 -0400 | [diff] [blame^] | 72 | <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 Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 81 | <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 Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 89 | <!-- These buttons will change look/functionality --> |
Leon Scroggins | e4b3bda | 2009-06-09 15:46:41 -0400 | [diff] [blame^] | 90 | <ImageView android:id="@+id/lft_button" |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 91 | android:layout_width="52dip" |
| 92 | android:layout_height="wrap_content" |
Leon Scroggins | e4b3bda | 2009-06-09 15:46:41 -0400 | [diff] [blame^] | 93 | android:layout_gravity="center_vertical" |
| 94 | android:src="@android:drawable/btn_star"/> |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 95 | <!-- 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 Scroggins | e4b3bda | 2009-06-09 15:46:41 -0400 | [diff] [blame^] | 100 | <ImageView android:id="@+id/rt_button" |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 101 | android:layout_width="52dip" |
| 102 | android:layout_height="wrap_content" |
Leon Scroggins | e4b3bda | 2009-06-09 15:46:41 -0400 | [diff] [blame^] | 103 | android:layout_gravity="center_vertical" |
| 104 | android:src="@*android:drawable/btn_browser_zoom_page_overview"/> |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 105 | </LinearLayout> |