summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/layout/tab_view.xml18
-rw-r--r--src/com/android/browser/ActiveTabsPage.java6
2 files changed, 18 insertions, 6 deletions
diff --git a/res/layout/tab_view.xml b/res/layout/tab_view.xml
index 8f42937..167621e 100644
--- a/res/layout/tab_view.xml
+++ b/res/layout/tab_view.xml
@@ -24,8 +24,8 @@
<com.android.browser.FakeWebView android:id="@+id/screen_shot"
android:layout_width="40dip"
android:layout_height="40dip"
- android:layout_marginLeft="4dip"
- android:layout_marginRight="4dip"
+ android:layout_marginLeft="8dip"
+ android:layout_marginRight="8dip"
/>
<LinearLayout
android:layout_width="0dip"
@@ -50,11 +50,19 @@
android:ellipsize="end"
/>
</LinearLayout>
+ <View android:id="@+id/divider"
+ android:background="#ff313431"
+ android:layout_width="1dip"
+ android:layout_height="fill_parent"
+ android:layout_marginLeft="8dip"
+ android:layout_marginTop="5dip"
+ android:layout_marginBottom="5dip"
+ />
<ImageView android:id="@+id/close"
- android:src="@drawable/ic_close_tab"
+ android:src="@drawable/ic_btn_close_panel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginLeft="4dip"
- android:layout_marginRight="4dip"
+ android:layout_marginLeft="8dip"
+ android:layout_marginRight="8dip"
/>
</LinearLayout>
diff --git a/src/com/android/browser/ActiveTabsPage.java b/src/com/android/browser/ActiveTabsPage.java
index c1b402a..9837ad6 100644
--- a/src/com/android/browser/ActiveTabsPage.java
+++ b/src/com/android/browser/ActiveTabsPage.java
@@ -97,6 +97,7 @@ public class ActiveTabsPage extends LinearLayout {
FakeWebView webView
= (FakeWebView) convertView.findViewById(R.id.screen_shot);
View close = convertView.findViewById(R.id.close);
+ View divider = convertView.findViewById(R.id.divider);
final int tabCount = mControl.getTabCount();
if (tabCount < TabControl.MAX_TABS) {
@@ -104,15 +105,18 @@ public class ActiveTabsPage extends LinearLayout {
}
if (position == -1) {
title.setText(R.string.new_tab);
- url.setText(R.string.http);
+ url.setVisibility(View.GONE);
webView.setImageResource(R.drawable.ic_add_tab);
close.setVisibility(View.GONE);
+ divider.setVisibility(View.GONE);
} else {
TabControl.Tab tab = mControl.getTab(position);
mControl.populatePickerData(tab);
title.setText(tab.getTitle());
url.setText(tab.getUrl());
+ url.setVisibility(View.VISIBLE);
webView.setTab(tab);
+ divider.setVisibility(View.VISIBLE);
close.setVisibility(View.VISIBLE);
final int closePosition = position;
close.setOnClickListener(new View.OnClickListener() {