Bug 975091 - Use wrap_content height params in PanelArticleItem (r=margaret)
authorLucas Rocha <lucasr@mozilla.com>
Tue, 25 Mar 2014 11:38:55 +0000
changeset 175130 9b5ee3b2432629763198978ca701731c4b3b9607
parent 175129 12ed290fc5e71071ff8d042bc72ede370ff3b4d1
child 175131 8ee507d0a33b5d3e911517a7e5cfc96840e0408c
push id5896
push userlrocha@mozilla.com
push dateTue, 25 Mar 2014 11:40:49 +0000
treeherderfx-team@9b5ee3b24326 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs975091
milestone31.0a1
Bug 975091 - Use wrap_content height params in PanelArticleItem (r=margaret)
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
@@ -16,28 +16,25 @@
     <LinearLayout android:id="@+id/title_desc_container"
                   android:layout_width="fill_parent"
                   android:layout_height="wrap_content"
                   android:paddingTop="5dip"
                   android:paddingBottom="5dip"
                   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:gravity="center_vertical"
+                  android:layout_height="wrap_content"
                   android:maxLength="1024"/>
 
     </LinearLayout>
 
 </merge>