blob: 876e70bdaebe77347ffcb471e642edfd7e8a4a32 (
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
|
<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: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="A slightly more advanced example, this shows a circle that will move and scale with the image. (Due to a limitation in Android, this circle may disappear when it's larger than 2048px.)"
android:padding="10dp"
android:textSize="14sp"
android:textColor="#FFFFFF"/>
</RelativeLayout>
<com.davemorrissey.labs.subscaleview.sample.extension.views.CircleView
android:id="@+id/imageView"
android:layout_alignParentTop="true"
android:layout_above="@+id/text"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
|