Phone UI title bar work
Updated progress bar to holo and below URL bar
Removed spinner
Swapped stop/bookmark with new assets
Wired up bookmark listener to change star state
Change-Id: Ie91ae446cc1c429ce4a1662cc337202aaf7877c3
diff --git a/res/layout/title_bar.xml b/res/layout/title_bar.xml
index f6d519f..99ac04d 100644
--- a/res/layout/title_bar.xml
+++ b/res/layout/title_bar.xml
@@ -18,25 +18,17 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingLeft="8dip"
- android:paddingRight="12dip"
- android:paddingTop="2dip"
- android:paddingBottom="1dip"
- android:background="@drawable/bg_urlbar" >
-
- <ProgressBar android:id="@+id/progress_horizontal"
- style="?android:attr/progressBarStyleHorizontal"
- android:layout_width="match_parent"
- android:layout_height="5dip"
- android:layout_marginLeft="1dip"
- android:max="100"
- />
+ android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
+ android:background="@drawable/bg_urlbar"
+ android:paddingLeft="4dip"
+ android:paddingRight="4dip"
+ android:paddingTop="2dip"
+ android:paddingBottom="1dip"
>
<LinearLayout android:id="@+id/title_bg"
@@ -51,12 +43,11 @@
<ImageView android:id="@+id/favicon"
android:layout_width="20dip"
android:layout_height="20dip"
- android:layout_marginLeft="3dip"
/>
<ImageView android:id="@+id/lock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginLeft="6dip"
+ android:layout_marginLeft="3dip"
android:visibility="gone"
/>
<com.android.browser.UrlInputView
@@ -81,24 +72,27 @@
</LinearLayout>
<ImageButton
android:id="@+id/stop"
- android:background="@drawable/stop_background"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:layout_marginBottom="4dip"
- android:src="@drawable/ic_btn_stop_v2"
+ style="@style/HoloButton"
+ android:src="@drawable/ic_stop_holo_dark"
android:visibility="gone"
/>
<ImageButton
android:id="@+id/bookmark"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:layout_marginLeft="-2dip"
- android:layout_marginTop="-6.5dip"
- android:layout_marginBottom="-2dip"
- android:layout_marginRight="-5dip"
- android:scaleType="center"
- android:background="@drawable/btn_bookmark"
- android:src="@drawable/ic_bookmark_on_holo_dark"
+ style="@style/HoloButton"
+ android:src="@drawable/btn_imageview_star"
/>
</LinearLayout>
+
+ <com.android.browser.PageProgressView
+ android:id="@+id/progress_horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="22dip"
+ android:background="@null"
+ android:src="@drawable/progress"
+ android:layout_marginTop="-11dip"
+ android:visibility="gone" />
</LinearLayout>