Bug 1299201 - prototype: show 2 lines for Activity Stream topsites titles
MozReview-Commit-ID: 1vorSYZORw8
--- a/mobile/android/base/resources/layout/activity_stream_topsites_card.xml
+++ b/mobile/android/base/resources/layout/activity_stream_topsites_card.xml
@@ -23,18 +23,19 @@
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:ellipsize="end"
android:gravity="center"
- android:lines="1"
- android:padding="4dp"
+ android:lines="2"
+ android:paddingLeft="4dp"
+ android:paddingRight="4dp"
android:textColor="@android:color/black"
tools:text="Lorem Ipsum here is a title"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"/>
<ImageView
android:id="@+id/menu_button"
android:layout_width="wrap_content"
--- a/mobile/android/base/resources/values/dimens.xml
+++ b/mobile/android/base/resources/values/dimens.xml
@@ -215,14 +215,14 @@
<item name="match_parent" type="dimen">-1</item>
<item name="wrap_content" type="dimen">-2</item>
<item name="tab_strip_content_start" type="dimen">12dp</item>
<item name="firstrun_tab_strip_content_start" type="dimen">15dp</item>
<item name="notification_media_cover" type="dimen">128dp</item>
- <item name="activity_stream_topsites_cardheight" type="dimen">115dp</item>
+ <item name="activity_stream_topsites_cardheight" type="dimen">127dp</item>
<item name="activity_stream_topsites_page_padding" type="dimen">4dp</item>
<!-- page height must equal card_height + 2 * page_padding
unfortunately Android doesn't allow for arithmetic in xml attributes -->
- <item name="activity_stream_topsites_page_height" type="dimen">123dp</item>
+ <item name="activity_stream_topsites_page_height" type="dimen">135dp</item>
</resources>