/
fragment_help.xml
59 lines (51 loc) · 2.04 KB
/
fragment_help.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
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="org.eclipse.paho.android.sample.activity.HelpFragment">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
android:src="@drawable/paho_logo_full"
android:layout_alignParentTop="true"
android:padding="10dp"
android:contentDescription="@string/help_paho" />
<TextView
android:id="@+id/label"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:textSize="30sp"
android:text="@string/help_title"
android:textStyle="bold"
android:layout_alignBottom="@+id/imageView"
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/help_paho_website"
android:id="@+id/websiteButton"
android:layout_marginTop="24dp"
android:layout_below="@+id/label"
android:layout_centerHorizontal="true" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/help_email_button"
android:id="@+id/feedbackButton"
android:layout_below="@+id/websiteButton"
android:layout_centerHorizontal="true" />
<Switch
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/help_enable_logging"
android:id="@+id/enable_logging_switch"
android:checked="false"
android:layout_marginTop="12dp"
android:layout_below="@+id/feedbackButton"
android:layout_centerHorizontal="true" />
</RelativeLayout>