diff options
author | Michael Kolb <kolby@google.com> | 2011-07-12 15:33:08 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-07-12 16:32:04 -0700 |
commit | 9ef259af433edc5aeb11b5d5d94dc9acc697c61e (patch) | |
tree | 132cb497cbdac4c0f5d90e3d3c3ce09756392e76 /src/com/android/browser/NavScreen.java | |
parent | 9cfe5244059ec719973fc465b5d2f536ea597bdf (diff) | |
download | packages_apps_Browser-9ef259af433edc5aeb11b5d5d94dc9acc697c61e.zip packages_apps_Browser-9ef259af433edc5aeb11b5d5d94dc9acc697c61e.tar.gz packages_apps_Browser-9ef259af433edc5aeb11b5d5d94dc9acc697c61e.tar.bz2 |
use screenshots for tab switcher
also removed the old tab switcher code
Change-Id: Id84ff64e42e5e1f70f55e136efdf84270c1a4b7b
Diffstat (limited to 'src/com/android/browser/NavScreen.java')
-rw-r--r-- | src/com/android/browser/NavScreen.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/com/android/browser/NavScreen.java b/src/com/android/browser/NavScreen.java index 43a38e0..9486a19 100644 --- a/src/com/android/browser/NavScreen.java +++ b/src/com/android/browser/NavScreen.java @@ -28,7 +28,6 @@ import android.view.ViewGroup; import android.webkit.WebView; import android.widget.BaseAdapter; import android.widget.FrameLayout; -import android.widget.Gallery; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.LinearLayout; @@ -58,9 +57,6 @@ public class NavScreen extends RelativeLayout ImageButton mCloseTab; NavTabGallery mScroller; - float mTabAspect = 0.66f; - int mTabWidth; - int mTabHeight; TabAdapter mAdapter; int mOrientation; @@ -200,25 +196,6 @@ public class NavScreen extends RelativeLayout mUi.hideNavScreen(animate); } - class TabGallery extends Gallery { - - public TabGallery(Context ctx) { - super(ctx); - setUnselectedAlpha(0.3f); - } - - @Override - protected ViewGroup.LayoutParams generateDefaultLayoutParams() { - return new Gallery.LayoutParams(mTabWidth, mTabHeight); - } - - @Override - protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) { - return generateDefaultLayoutParams(); - } - - } - class TabAdapter extends BaseAdapter { Context context; @@ -247,7 +224,6 @@ public class NavScreen extends RelativeLayout public View getView(final int position, View convertView, ViewGroup parent) { final NavTabView tabview = new NavTabView(mActivity); final Tab tab = getItem(position); - final BrowserWebView web = (BrowserWebView) tab.getWebView(); tabview.setWebView(mUi, tab); tabview.setOnClickListener(new OnClickListener() { @Override |