mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 833800: LinearLayout of android doesn't have the third constructor in pre-ICS. [r=margaret]
This commit is contained in:
parent
689741bd5c
commit
a3a1cdd9c4
@ -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.
|
||||
|
@ -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"/>
|
||||
|
Loading…
Reference in New Issue
Block a user