Bug 1388554 - Adjust smart folder icon size to prevent icon cropped. r?maliu,nechen
The size of smart folder icon should be identical to favicon in TwoLinePageRow.
Also change scaleType from 'center' to 'centerInside' to prevent icon cropped.
MozReview-Commit-ID: 62vazt7EW4B
--- a/mobile/android/app/src/photon/res/layout/home_smartfolder.xml
+++ b/mobile/android/app/src/photon/res/layout/home_smartfolder.xml
@@ -11,22 +11,22 @@
style="@style/Widget.RemoteTabsClientView"
android:gravity="center_vertical"
android:layout_width="match_parent"
android:layout_height="@dimen/home_header_item_height"
android:minHeight="@dimen/home_header_item_height">
<ImageView
android:id="@+id/device_type"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_width="@dimen/favicon_small_size"
+ android:layout_height="@dimen/favicon_small_size"
android:layout_margin="20dp"
- android:scaleType="center"
+ android:scaleType="centerInside"
android:layout_gravity="center_vertical"
- tools:src="@drawable/cloud"/>
+ tools:src="@drawable/icon_recent"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<org.mozilla.gecko.widget.FadedSingleColorTextView