diff --git a/mobile/android/base/GeckoViewsFactory.java b/mobile/android/base/GeckoViewsFactory.java index 5aa8a30c5f89..c87332bab726 100644 --- a/mobile/android/base/GeckoViewsFactory.java +++ b/mobile/android/base/GeckoViewsFactory.java @@ -5,6 +5,7 @@ package org.mozilla.gecko; import org.mozilla.gecko.gfx.LayerView; +import org.mozilla.gecko.widget.ThumbnailView; import android.content.Context; import android.text.TextUtils; @@ -110,6 +111,8 @@ public final class GeckoViewsFactory implements LayoutInflater.Factory { return new GeckoTextSwitcher(context, attrs); else if (TextUtils.equals(viewName, "TextView")) return new GeckoTextView(context, attrs); + else if (TextUtils.equals(viewName, "widget.ThumbnailView")) + return new ThumbnailView(context, attrs); else Log.d(LOGTAG, "Warning: unknown custom view: " + viewName); } diff --git a/mobile/android/base/Makefile.in b/mobile/android/base/Makefile.in index 3483786dd676..a226320d35e8 100644 --- a/mobile/android/base/Makefile.in +++ b/mobile/android/base/Makefile.in @@ -183,6 +183,7 @@ FENNEC_JAVA_FILES = \ ui/SimpleScaleGestureDetector.java \ ui/SubdocumentScrollHelper.java \ widget/DateTimePicker.java \ + widget/ThumbnailView.java \ GeckoNetworkManager.java \ GeckoScreenOrientationListener.java \ UpdateService.java \ diff --git a/mobile/android/base/resources/layout-xlarge-v11/tabs_row.xml b/mobile/android/base/resources/layout-xlarge-v11/tabs_row.xml index e95264390e11..d433d715adaf 100644 --- a/mobile/android/base/resources/layout-xlarge-v11/tabs_row.xml +++ b/mobile/android/base/resources/layout-xlarge-v11/tabs_row.xml @@ -22,15 +22,14 @@ android:layout_weight="1.0" android:layout_margin="10dip"> - + android:src="@drawable/tab_thumbnail_default"/> - + android:src="@drawable/tab_thumbnail_default"/>