Added Android code
[wl-app.git] / Android / app / src / main / res / layout / fragment_web_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <RelativeLayout
3     android:id="@+id/activity_home"
4     xmlns:android="http://schemas.android.com/apk/res/android"
5     android:layout_width="match_parent"
6     android:layout_height="match_parent">
7
8     <LinearLayout
9         android:id="@+id/llButtonPanel"
10         android:layout_width="match_parent"
11         android:layout_height="wrap_content"
12         android:layout_alignParentBottom="true"
13         android:background="@color/colorPrimary"
14         android:orientation="horizontal"
15         android:paddingBottom="2dp"
16         android:paddingTop="2dp">
17
18         <Button
19             android:id="@+id/btnBack"
20             style="@style/FlatButton"
21             android:layout_width="match_parent"
22             android:layout_height="wrap_content"
23             android:layout_weight="1"
24             android:drawablePadding="2dp"
25             android:drawableTop="@drawable/ic_arrow_back_white_24dp"
26             android:enabled="false"
27             android:paddingTop="8dp"
28             android:text="@string/back"
29             android:textColor="@color/white"
30             android:textSize="9dp"/>
31
32
33         <Button
34             android:id="@+id/btnRefresh"
35             style="@style/FlatButton"
36             android:layout_width="match_parent"
37             android:layout_height="wrap_content"
38             android:layout_weight="1"
39             android:drawablePadding="2dp"
40             android:drawableTop="@drawable/ic_refresh_white_24dp"
41             android:paddingTop="8dp"
42             android:text="@string/refresh"
43             android:textColor="@color/white"
44             android:textSize="9dp"/>
45
46         <Button
47             android:id="@+id/btnNext"
48             style="@style/FlatButton"
49             android:layout_width="match_parent"
50             android:layout_height="wrap_content"
51             android:layout_weight="1"
52             android:drawablePadding="2dp"
53             android:drawableTop="@drawable/ic_arrow_forward_white_24dp"
54             android:enabled="false"
55             android:paddingTop="8dp"
56             android:text="@string/forward"
57             android:textColor="@color/white"
58             android:textSize="9dp"/>
59
60     </LinearLayout>
61
62     <WebView
63         android:id="@+id/wvAbout"
64         android:layout_width="match_parent"
65         android:layout_height="match_parent"
66         android:layout_above="@+id/llButtonPanel"/>
67
68     <TextView
69         android:id="@+id/tvPageError"
70         android:layout_width="match_parent"
71         android:layout_height="match_parent"
72         android:layout_above="@+id/llButtonPanel"
73         android:layout_centerInParent="true"
74         android:background="@color/white"
75         android:gravity="center"
76         android:text="@string/page_error"
77         android:textColor="@color/black"
78         android:visibility="gone"/>
79
80 </RelativeLayout>