aboutsummaryrefslogtreecommitdiffstats
path: root/main/res/layout/cachedetail_description_page.xml
blob: 4fa342d82924ff8669243312f35986cf2c12880b (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    tools:context=".CacheDetailActivity$DescriptionViewCreator" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="4dip" >

        <!-- Short description -->

        <cgeo.geocaching.ui.IndexOutOfBoundsAvoidingTextView
            android:id="@+id/shortdesc"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="12dip"
            android:layout_marginTop="12dip"
            android:linksClickable="true"
            android:textColor="?text_color"
            android:textColorLink="?text_color_link"
            android:textSize="14sp"
            android:visibility="gone" />

        <!-- Long description -->

        <cgeo.geocaching.ui.IndexOutOfBoundsAvoidingTextView
            android:id="@+id/longdesc"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="12dip"
            android:layout_marginTop="12dip"
            android:linksClickable="true"
            android:textColor="?text_color"
            android:textColorLink="?text_color_link"
            android:textSize="14sp"
            android:visibility="gone" />

        <Button
            android:id="@+id/show_description"
            style="@style/button_small"
            android:layout_marginBottom="36dip"
            android:layout_marginTop="12dip"
            android:text="@string/cache_description_long"
            android:visibility="gone" />

        <RelativeLayout
            android:id="@+id/loading"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:visibility="gone" >

            <ProgressBar
                style="?progressSpinnerLarge"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:gravity="center"
                android:indeterminate="true"
                android:indeterminateOnly="true" />
        </RelativeLayout>

        <!-- Hint and spoiler-images box -->

        <LinearLayout
            android:id="@+id/hint_box"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="12dip"
            android:orientation="vertical"
            android:visibility="gone" >

            <RelativeLayout style="@style/separator_horizontal_layout" >

                <View style="@style/separator_horizontal" />

                <TextView
                    style="@style/separator_horizontal_headline"
                    android:text="@string/cache_hint" />
            </RelativeLayout>

            <TextView
                android:id="@+id/hint"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="left"
                android:linksClickable="true"
                android:textColor="?text_color"
                android:textColorLink="?text_color_link"
                android:textSize="14sp" />

            <TextView
                android:id="@+id/hint_spoilerlink"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="left"
                android:layout_marginTop="6dip"
                android:drawableLeft="?log_img_icon"
                android:drawablePadding="3dip"
                android:text="@string/cache_menu_spoilers"
                android:textColor="?text_color"
                android:textSize="14sp" />
        </LinearLayout>

        <!-- Personal note box -->

        <LinearLayout
            android:id="@+id/personalnote_box"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="12dip"
            android:orientation="vertical" >

            <RelativeLayout style="@style/separator_horizontal_layout" >

                <View style="@style/separator_horizontal" />

                <TextView
                    style="@style/separator_horizontal_headline"
                    android:text="@string/cache_personal_note" />
            </RelativeLayout>

            <TextView
                android:id="@+id/personalnote"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:linksClickable="true"
                android:textColor="?text_color"
                android:textColorLink="?text_color_link"
                android:textSize="14sp" />

            <Button
                android:id="@+id/edit_personalnote"
                style="@style/button_small"
                android:text="@string/cache_personal_note_edit" />

            <Button
                android:id="@+id/upload_personalnote"
                style="@style/button_small"
                android:text="@string/cache_personal_note_upload" />
        </LinearLayout>
    </LinearLayout>

</ScrollView>