Bug 975091 - Use wrap_content height params in PanelArticleItem (r=margaret) a=lsblakk
authorLucas Rocha <lucasr@mozilla.com>
Tue, 25 Mar 2014 11:38:55 +0000
changeset 193206 bd20a12260ea5b7ae2cdccbac29fb631e4bde647
parent 193205 ae9db69edde343aea6b87925faa8a76041855754
child 193207 d9336eebf796e021100f8b3ae7eb2d3d8a642db0
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret, lsblakk
bugs975091
milestone30.0
Bug 975091 - Use wrap_content height params in PanelArticleItem (r=margaret) a=lsblakk
mobile/android/base/resources/layout/panel_article_item.xml
--- a/mobile/android/base/resources/layout/panel_article_item.xml
+++ b/mobile/android/base/resources/layout/panel_article_item.xml
@@ -15,27 +15,25 @@
     <LinearLayout android:id="@+id/title_desc_container"
                   android:layout_width="fill_parent"
                   android:layout_height="wrap_content"
                   android:paddingTop="15dip"
                   android:paddingBottom="15dip"
                   android:paddingLeft="10dip"
                   android:paddingRight="10dip"
                   android:minHeight="@dimen/page_row_height"
+                  android:gravity="center_vertical"
                   android:orientation="vertical">
 
         <TextView android:id="@+id/title"
                   style="@style/Widget.PanelItemView.Title"
                   android:layout_width="fill_parent"
-                  android:layout_height="0dp"
-                  android:layout_weight="1"
-                  android:gravity="center_vertical"/>
+                  android:layout_height="wrap_content"/>
 
         <TextView android:id="@+id/description"
                   style="@style/Widget.PanelItemView.Description"
                   android:layout_width="fill_parent"
-                  android:layout_height="0dp"
-                  android:layout_weight="2"
+                  android:layout_height="wrap_content"
                   android:maxLength="1024"/>
 
     </LinearLayout>
 
 </merge>