Bug 833800: LinearLayout of android doesn't have the third constructor in pre-ICS. [r=margaret]

This commit is contained in:
Sriram Ramasubramanian 2013-09-18 10:00:37 -04:00
parent 689741bd5c
commit a3a1cdd9c4
2 changed files with 5 additions and 3 deletions

View File

@ -15,7 +15,7 @@ import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
/**
@ -24,7 +24,7 @@ import android.widget.TextView;
* If there is no valid url, a default string is shown at 50% opacity.
* This is denoted by the empty state.
*/
public class TopSitesGridItemView extends LinearLayout {
public class TopSitesGridItemView extends RelativeLayout {
private static final String LOGTAG = "GeckoTopSitesGridItemView";
// Empty state, to denote there is no valid url.

View File

@ -9,13 +9,15 @@
<org.mozilla.gecko.home.TopSitesThumbnailView
android:id="@+id/thumbnail"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
android:layout_alignParentTop="true"/>
<org.mozilla.gecko.home.FadedTextView
android:id="@+id/title"
style="@style/Widget.TopSitesGridItemTitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/thumbnail"
android:duplicateParentState="true"
android:drawablePadding="4dip"
gecko:fadeWidth="20dip"/>