summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2010-12-12 15:27:56 -0800
committerMichael Kolb <kolby@google.com>2010-12-13 10:07:11 -0800
commita0e2a75fdba703260c02838c96d9d4008e914a1d (patch)
tree4ada72dc729f04bf7d75858fb469df2b177d624f /res
parent81b6f83b7032f22fdaaa514afda2448f801b73da (diff)
downloadpackages_apps_Browser-a0e2a75fdba703260c02838c96d9d4008e914a1d.zip
packages_apps_Browser-a0e2a75fdba703260c02838c96d9d4008e914a1d.tar.gz
packages_apps_Browser-a0e2a75fdba703260c02838c96d9d4008e914a1d.tar.bz2
Add title bar indicator to tab
Bug: http://b/issue?id=3184567 When the url bar is scrolled off the screen, the current tab shows an indicator Change-Id: I5a1f11bac09304c81857496b4bb7662656ef225a
Diffstat (limited to 'res')
-rw-r--r--res/drawable-mdpi/ic_chevron.pngbin0 -> 159 bytes
-rw-r--r--res/layout/tab_title.xml18
2 files changed, 13 insertions, 5 deletions
diff --git a/res/drawable-mdpi/ic_chevron.png b/res/drawable-mdpi/ic_chevron.png
new file mode 100644
index 0000000..6804d75
--- /dev/null
+++ b/res/drawable-mdpi/ic_chevron.png
Binary files differ
diff --git a/res/layout/tab_title.xml b/res/layout/tab_title.xml
index e4a4e58..ce3f987 100644
--- a/res/layout/tab_title.xml
+++ b/res/layout/tab_title.xml
@@ -17,10 +17,18 @@
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
+ android:id="@+id/chevron"
+ android:layout_width="16dip"
+ android:layout_height="16dip"
+ android:layout_marginRight="4dip"
+ android:gravity="center_vertical"
+ android:src="@drawable/ic_chevron"
+ android:visibility="gone" />
+ <ImageView
android:id="@+id/incognito"
android:layout_width="16dip"
android:layout_height="16dip"
- android:layout_marginLeft="3dip"
+ android:layout_marginRight="16dip"
android:gravity="center_vertical"
android:src="@drawable/fav_incognito"
android:visibility="gone" />
@@ -28,19 +36,19 @@
android:id="@+id/favicon"
android:layout_width="20dip"
android:layout_height="20dip"
- android:layout_marginLeft="16dip" />
+ android:layout_marginRight="16dip" />
<ImageView
android:id="@+id/lock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginLeft="16dip"
+ android:layout_marginRight="16dip"
android:visibility="gone" />
<TextView
android:id="@+id/title"
android:layout_height="match_parent"
android:layout_width="0dip"
android:layout_weight="1.0"
- android:layout_marginLeft="16dip"
+ android:layout_marginRight="16dip"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/white"
android:gravity="center_vertical"
@@ -54,6 +62,6 @@
android:background="@drawable/browserbarbutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginLeft="16dip"
+ android:layout_marginRight="16dip"
android:src="@drawable/ic_tab_close" />
</merge>