Bug 1278725 - Restore original "up" arrow scaling r?liuche draft
authorAndrzej Hunt <ahunt@mozilla.com>
Thu, 09 Jun 2016 10:32:24 -0700
changeset 377127 566f318a981e35bef57b66ea41ce627e90d21788
parent 377076 fae4bb6ae895ac8dd29da4242db79942c7f17ba1
child 523317 73c8929f0c86e57fe80e52463298688198f4cd9a
push id20754
push userahunt@mozilla.com
push dateThu, 09 Jun 2016 17:32:52 +0000
reviewersliuche
bugs1278725
milestone50.0a1
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
mobile/android/base/resources/layout/two_line_folder_row.xml
--- 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">