/
fragment_imagepipeline_region_decoding.xml
63 lines (55 loc) · 2.03 KB
/
fragment_imagepipeline_region_decoding.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical"
>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/drawee_view_full"
android:layout_width="match_parent"
android:layout_height="wrap_content"
fresco:viewAspectRatio="2"
fresco:actualImageScaleType="fitCenter"
/>
<com.facebook.fresco.samples.showcase.imagepipeline.widget.ResizableFrameLayout
android:id="@+id/frame_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="8dp"
android:minWidth="8dp"
android:background="#80ffffff"
>
<View
android:id="@+id/btn_resize"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="bottom|right"
android:background="@drawable/resize_outline"
tools:ignore="RtlHardcoded"
/>
</com.facebook.fresco.samples.showcase.imagepipeline.widget.ResizableFrameLayout>
</FrameLayout>
<TextView
android:id="@+id/text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/padding_medium"
android:gravity="center"
android:text="@string/imagepipeline_region_decoding_help"
android:textAppearance="?android:attr/textAppearanceSmall"
/>
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/drawee_view_region"
android:layout_width="match_parent"
android:layout_height="match_parent"
fresco:actualImageScaleType="fitCenter"
/>
</LinearLayout>