aboutsummaryrefslogtreecommitdiff
path: root/sample/res/layout/extension_pin_fragment.xml
blob: 982e96f3844f66bc852cd7805a3025c82a6e761c (plain)
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
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/content"
            android:layout_width="match_parent"
            android:layout_height="match_parent" >

    <RelativeLayout
            android:id="@+id/text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:background="#333">
        <ImageView
                android:id="@+id/previous"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:layout_centerVertical="true"
                android:background="@drawable/buttonstate_transparent"
                android:visibility="invisible"
                android:paddingLeft="8dp"
                android:paddingRight="8dp"
                android:paddingTop="18dp"
                android:paddingBottom="18dp"
                android:src="@drawable/previous"/>

        <ImageView
                android:id="@+id/next"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:background="@drawable/buttonstate_transparent"
                android:paddingLeft="8dp"
                android:paddingRight="8dp"
                android:paddingTop="18dp"
                android:paddingBottom="18dp"
                android:src="@drawable/next"/>

        <TextView
                android:id="@+id/note"
                android:layout_height="wrap_content"
                android:layout_width="match_parent"
                android:layout_toLeftOf="@id/next"
                android:layout_toRightOf="@id/previous"
                android:layout_centerVertical="true"
                android:text="This view class extends the image view, and adds a pin anchored to a point on the image."
                android:padding="10dp"
                android:textSize="14sp"
                android:textColor="#FFFFFF"/>

    </RelativeLayout>

    <com.davemorrissey.labs.subscaleview.sample.extension.views.PinView
            android:id="@+id/imageView"
            android:layout_alignParentTop="true"
            android:layout_above="@+id/text"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>

</RelativeLayout>