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 192181 bd20a12260ea
parent 192180 ae9db69edde3
child 192182 d9336eebf796
push id3513
push usermleibovic@mozilla.com
push date2014-04-30 22:52 +0000
treeherdermozilla-beta@d9336eebf796 [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>