Bug 721354 - Move view attributes to layout file (r=blassey) a=akeybl
authorLucas Rocha <lucasr@mozilla.com>
Fri, 27 Jan 2012 10:08:21 +0000
changeset 84320 c63bfe36d8b88c76538860a3260cc1886136be56
parent 84319 8ba82b64addf6a1fec72b6e33c8f0996a50bab19
child 84321 e691991b6b25430cb29472ecb39dc17eb0bc5d39
push id793
push userblassey@mozilla.com
push dateMon, 30 Jan 2012 06:08:40 +0000
treeherdermozilla-aurora@0d888e276c9f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey, akeybl
bugs721354
milestone11.0a2
Bug 721354 - Move view attributes to layout file (r=blassey) a=akeybl
mobile/android/base/AboutHomeContent.java
mobile/android/base/resources/layout/abouthome_content.xml
--- a/mobile/android/base/AboutHomeContent.java
+++ b/mobile/android/base/AboutHomeContent.java
@@ -108,18 +108,16 @@ public class AboutHomeContent extends Sc
     protected LinearLayout mLastTabsLayout;
 
     public interface UriLoadCallback {
         public void callback(String uriSpec);
     }
 
     public AboutHomeContent(Context context) {
         super(context);
-        setScrollContainer(true);
-        setBackgroundResource(R.drawable.abouthome_bg_repeat);
         mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
     }
 
     @Override
     protected void onFinishInflate() {
         super.onFinishInflate();
         synchronized (this) {
             if (mTopSitesGrid != null && mAddonsLayout != null && mLastTabsLayout != null)
--- a/mobile/android/base/resources/layout/abouthome_content.xml
+++ b/mobile/android/base/resources/layout/abouthome_content.xml
@@ -1,10 +1,12 @@
 <?xml version="1.0" encoding="utf-8"?>
-<merge xmlns:android="http://schemas.android.com/apk/res/android">
+<merge xmlns:android="http://schemas.android.com/apk/res/android"
+       android:isScrollContainer="false"
+       android:background="@drawable/abouthome_bg_repeat">
 
     <LinearLayout android:layout_width="fill_parent"
                   android:orientation="vertical"
                   android:layout_height="fill_parent"
                   android:background="@drawable/abouthome_bg_repeat">
 
         <RelativeLayout android:id="@+id/top_sites"
                         android:layout_width="fill_parent"