Skip to content

Commit eb9a732

Browse files
oprisnikfacebook-github-bot
authored andcommitted
Showcase: Postprocessor example: use fitCenter
Summary: In order to test postprocessors, it makes sense to see the whole image. For example, for the circular postprocessor, the full circle should be visible independent of the image aspect ratio. Reviewed By: dmitry-voronkevich Differential Revision: D6247935 fbshipit-source-id: 6702f0f27033a8497d47ac5a182ae3119fb0aa8f
1 parent 17833c0 commit eb9a732

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/showcase/src/main/res/layout/fragment_imagepipeline_postprocessor.xml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<LinearLayout
33
xmlns:android="http://schemas.android.com/apk/res/android"
4+
xmlns:fresco="http://schemas.android.com/apk/res-auto"
45
android:layout_width="match_parent"
56
android:layout_height="match_parent"
67
android:layout_marginLeft="@dimen/activity_horizontal_margin"
@@ -25,6 +26,7 @@
2526
android:layout_marginTop="@dimen/margin_medium"
2627
android:background="@color/primary"
2728
android:padding="@dimen/padding_small"
29+
fresco:actualImageScaleType="fitCenter"
2830
/>
2931

3032
<Button

0 commit comments

Comments
 (0)