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" |
Leon Scroggins | 1f005d3 | 2009-08-10 17:36:42 -0400 | [diff] [blame] | 21 | android:background="@drawable/tab_selected" |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 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 --> |
Leon Scroggins | 1f005d3 | 2009-08-10 17:36:42 -0400 | [diff] [blame] | 37 | <LinearLayout |
| 38 | android:orientation="vertical" |
| 39 | android:layout_marginTop="0dip" |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 40 | android:layout_height="wrap_content" |
| 41 | android:layout_width="fill_parent" |
| 42 | > |
Leon Scroggins | 1f005d3 | 2009-08-10 17:36:42 -0400 | [diff] [blame] | 43 | <!-- need to make this no wider than the horizontal progress bar --> |
| 44 | <TextView android:id="@+id/title" |
| 45 | android:layout_height="wrap_content" |
| 46 | android:layout_width="wrap_content" |
| 47 | android:layout_marginLeft="6dip" |
| 48 | android:layout_marginTop="0dip" |
| 49 | android:textSize="14dip" |
| 50 | android:textColor="@color/white" |
| 51 | android:textStyle="bold" |
| 52 | android:singleLine="true" |
| 53 | android:padding="0dip" |
| 54 | /> |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 55 | <LinearLayout |
| 56 | android:orientation="horizontal" |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 57 | android:layout_width="fill_parent" |
| 58 | android:layout_height="wrap_content"> |
Leon Scroggins | 1f005d3 | 2009-08-10 17:36:42 -0400 | [diff] [blame] | 59 | <TextView android:id="@+id/url" |
| 60 | android:layout_width="wrap_content" |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 61 | android:layout_height="wrap_content" |
Leon Scroggins | 1f005d3 | 2009-08-10 17:36:42 -0400 | [diff] [blame] | 62 | android:layout_marginLeft="6dip" |
| 63 | android:textSize="11dip" |
| 64 | android:padding="0dip" |
| 65 | android:textColor="@color/white" |
| 66 | android:singleLine="true" |
| 67 | /> |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 68 | <ProgressBar android:id="@+id/progress_circular" |
| 69 | style="?android:attr/progressBarStyleSmallTitle" |
| 70 | android:layout_marginLeft="3dip" |
| 71 | android:layout_gravity="center_vertical" |
| 72 | android:max="100" |
| 73 | android:layout_width="wrap_content" |
| 74 | android:layout_height="wrap_content" /> |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 75 | <ImageView android:id="@+id/lock_icon" |
| 76 | android:layout_height="wrap_content" |
| 77 | android:layout_width="wrap_content" |
| 78 | android:layout_alignBottom="@id/title" |
| 79 | android:layout_alignParentRight="true" |
| 80 | android:visibility="gone"/> |
Leon Scroggins | 1f005d3 | 2009-08-10 17:36:42 -0400 | [diff] [blame] | 81 | </LinearLayout> |
| 82 | <ProgressBar android:id="@+id/progress_horizontal" |
| 83 | style="?android:attr/progressBarStyleHorizontal" |
| 84 | android:layout_width="fill_parent" |
| 85 | android:layout_weight="1" |
| 86 | android:layout_height="5dip" |
| 87 | android:max="100" /> |
| 88 | </LinearLayout> |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 89 | </LinearLayout> |
Leon Scroggins | 1f005d3 | 2009-08-10 17:36:42 -0400 | [diff] [blame] | 90 | <!-- This buttons will change look/functionality --> |
Leon Scroggins | e4b3bda | 2009-06-09 15:46:41 -0400 | [diff] [blame] | 91 | <ImageView android:id="@+id/rt_button" |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 92 | android:layout_width="52dip" |
| 93 | android:layout_height="wrap_content" |
Leon Scroggins | e4b3bda | 2009-06-09 15:46:41 -0400 | [diff] [blame] | 94 | android:layout_gravity="center_vertical" |
Leon Scroggins | 1f005d3 | 2009-08-10 17:36:42 -0400 | [diff] [blame] | 95 | android:src="@drawable/ic_close_tab"/> |
Leon Scroggins | 81db366 | 2009-06-04 17:45:11 -0400 | [diff] [blame] | 96 | </LinearLayout> |