Bug 1278725 - Restore original "up" arrow scaling r?liuche
Before introducing the folder count, the bookmark folder icon
was set as the drawable on a TextView. This actually resulted
in scaling that doesn't preserve the aspect ratio. To reproduce
this in the new ImageView (added when we switched to a two-line
folder layout), we simply need to set the icon size explicitly
and scale to fit the whole area (as opposed to setting two
constraints and fitting while preserving aspect ratio).
The folder/reading-list icons are unaffected as they already
have the expected aspect-ratio, the back-arrow is now scaled
as expected.
MozReview-Commit-ID: Fl5JY3Lznau
--- a/mobile/android/base/resources/layout/two_line_folder_row.xml
+++ b/mobile/android/base/resources/layout/two_line_folder_row.xml
@@ -6,18 +6,18 @@
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:gecko="http://schemas.android.com/apk/res-auto"
tools:context=".BrowserApp">
<ImageView android:id="@+id/icon"
android:src="@drawable/folder_closed"
android:layout_width="24dp"
- android:layout_height="24dp"
- android:scaleType="fitCenter"
+ android:layout_height="18dp"
+ android:scaleType="fitXY"
android:layout_margin="20dp"/>
<LinearLayout android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"
android:paddingRight="10dp"
android:orientation="vertical">