summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-04-09 17:20:03 -0700
committerMichael Kolb <kolby@google.com>2011-04-20 15:21:27 -0700
commitf205560dacc8a85f0443ca1949a68962404321e8 (patch)
tree37063ba6346e5ab4c52235e1361b892ac1081200 /res/layout
parentb3ad59f1127fb3db56714b1ae39466a379f672ee (diff)
downloadpackages_apps_Browser-f205560dacc8a85f0443ca1949a68962404321e8.zip
packages_apps_Browser-f205560dacc8a85f0443ca1949a68962404321e8.tar.gz
packages_apps_Browser-f205560dacc8a85f0443ca1949a68962404321e8.tar.bz2
new navscreen ui
Change-Id: Iedbdf5af5d3ee2fbdd6944c1689f6551b3af8d46
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/nav_screen.xml101
-rw-r--r--res/layout/nav_tab_view.xml70
2 files changed, 171 insertions, 0 deletions
diff --git a/res/layout/nav_screen.xml b/res/layout/nav_screen.xml
new file mode 100644
index 0000000..eb5059c
--- /dev/null
+++ b/res/layout/nav_screen.xml
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/nav_screen"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+ <LinearLayout
+ android:id="@+id/navtop"
+ android:layout_width="match_parent"
+ android:layout_height="44dip"
+ android:background="#80404040">
+ <ImageButton
+ android:id="@+id/newtab"
+ android:layout_width="0dip"
+ android:layout_weight="0.25"
+ android:layout_height="match_parent"
+ style="@style/HoloButton"
+ android:gravity="center_vertical"
+ android:src="@drawable/ic_new_window_holo_dark" />
+ <ImageButton
+ android:id="@+id/newincognito"
+ android:layout_width="0dip"
+ android:layout_weight="0.25"
+ android:layout_height="match_parent"
+ style="@style/HoloButton"
+ android:gravity="center_vertical"
+ android:src="@drawable/ic_new_incognito_holo_dark" />
+ <ImageButton
+ android:id="@+id/tabs"
+ android:layout_width="0dip"
+ android:layout_weight="0.25"
+ android:layout_height="match_parent"
+ style="@style/HoloButton"
+ android:gravity="center_vertical"
+ android:src="@drawable/ic_windows_holo_dark" />
+ <ImageButton
+ android:id="@+id/more"
+ android:layout_width="0dip"
+ android:layout_weight="0.25"
+ android:layout_height="match_parent"
+ style="@style/HoloButton"
+ android:gravity="center_vertical"
+ android:src="@*android:drawable/ic_menu_moreoverflow_normal_holo_dark" />
+ </LinearLayout>
+ <FrameLayout
+ android:id="@+id/galleryholder"
+ android:layout_width="match_parent"
+ android:layout_height="0dip"
+ android:layout_weight="1" />
+ <LinearLayout
+ android:id="@+id/navbar"
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="44dip"
+ android:background="#80404040">
+ <ImageButton
+ android:id="@+id/back"
+ android:layout_width="0dip"
+ android:layout_weight="0.25"
+ android:layout_height="match_parent"
+ android:src="@drawable/ic_back_holo_dark"
+ style="@style/HoloButton" />
+ <ImageButton
+ android:id="@+id/refresh"
+ android:layout_width="0dip"
+ android:layout_weight="0.25"
+ android:layout_height="match_parent"
+ android:src="@drawable/ic_refresh_holo_dark"
+ style="@style/HoloButton" />
+ <ImageButton
+ android:id="@+id/forward"
+ android:layout_width="0dip"
+ android:layout_weight="0.25"
+ android:layout_height="match_parent"
+ android:src="@drawable/ic_forward_holo_dark"
+ style="@style/HoloButton" />
+ <ImageButton
+ android:id="@+id/bookmarks"
+ android:layout_width="0dip"
+ android:layout_weight="0.25"
+ android:layout_height="match_parent"
+ android:src="@drawable/ic_bookmarks_history_holo_dark"
+ style="@style/HoloButton" />
+ </LinearLayout>
+</LinearLayout>
diff --git a/res/layout/nav_tab_view.xml b/res/layout/nav_tab_view.xml
new file mode 100644
index 0000000..549137e
--- /dev/null
+++ b/res/layout/nav_tab_view.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/tab_view"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:padding="4dip"
+ android:focusable="false"
+ android:background="@drawable/nav_tab_bg">
+ <LinearLayout
+ android:id="@+id/titlebar"
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="44dip" >
+ <ImageView
+ android:id="@+id/favicon"
+ android:layout_width="22dip"
+ android:layout_height="22dip"
+ android:layout_marginLeft="4dip"
+ android:layout_marginRight="4dip"
+ android:background="@color/white"
+ android:scaleType="center"
+ android:src="@drawable/app_web_browser_sm"
+ android:layout_gravity="center_vertical" />
+ <TextView
+ android:id="@+id/title"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.0"
+ android:textSize="14dip"
+ android:textColor="@color/white"
+ android:singleLine="true"
+ android:ellipsize="end"
+ android:lines="1"
+ android:scrollHorizontally="true"
+ android:hint="@string/search_hint"
+ android:layout_gravity="center_vertical" />
+ <ImageButton
+ android:id="@+id/closetab"
+ android:src="@drawable/ic_stop_holo_dark"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_gravity="center_vertical"
+ android:paddingLeft="4dip"
+ android:background="@drawable/bookmark_thumb_selector"
+ />
+ </LinearLayout>
+ <ImageView
+ android:id="@+id/content"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:adjustViewBounds="true"
+ android:scaleType="fitXY" />
+</LinearLayout> \ No newline at end of file