This repository has been archived by the owner on Dec 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
android.xml
131 lines (129 loc) · 4.01 KB
/
android.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
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
<android>
<!--
Name: ShowTitle
Description:
Turn on/off the title bar at the top of the screen.
Default: false
-->
<preference name="ShowTitle" value="true|false"/>
<!--
Name: SetFullscreen
Default: false
Notes: Deprecated, use Fullscreen instead.
-->
<preference name="SetFullscreen" value="true|false"/>
<!--
Name: DisallowOverscroll
Description:
Set to true to disable the user from over scrolling the content.
Default: false
Compatibility: Gingerbread+
-->
<preference name="DisallowOverscroll" value="true|false"/>
<!--
Name: SplashScreenDelay
Description:
The amount of time the splash screen image is displayed, measured in milliseconds.
Default: 3000
Notes: a value of 0 disables splash screen
-->
<preference name="SplashScreenDelay" value="_any_milliseconds_"/>
<!--
Name: SplashScreen
Description:
The name of the file minus its extension in the res/drawable directory to be used as the splash screen image.
Default: n/a
-->
<preference name="SplashScreen" value="_any_resource_"/>
<!--
Name: BackgroundColor
Default: 0, which is black.
Description:
Sets the webview's background color. Used for when the webview isn't loaded, or the loaded page has a transparent background.
Details:
Color is represented by the algorithm: (alpha << 24) | (red << 16) | (green << 8) | blue
Where alpha, red, green, and blue are integers of the color value from 0 to 255.
Peach at 50% opacity would be represented as:
(ceil(255 / 2) << 24) | (255 << 16) | (229 << 8) | 180 = 2147476916
-->
<preference name="BackgroundColor" value="_any_number_"/>
<!--
Name: KeepRunning
Description:
Determines whether the application stays running in the background even after a pause event fires. Note: setting this to false will not kill the app after a pause event, it will only halt execution of code in the cordova webview while the app is in the background.
Default: true
-->
<preference name="KeepRunning" value="true|false"/>
<!--
Name: LoadingDialog
Description:
Show a loading dialog for the first page of your app.
Default: n/a
Details:
Set to a string with the title and message of the dialog seperated by a comma.
Loading,Please wait!!
Will show this dialog:
[ Loading ]
Please Wait!!
[*]
-->
<preference name="LoadingDialog" value="_any_string_"/>
<!--
Name: LoadingPageDialog
Description:
Show a loading dialog for each subsequent page of your app.
Default: n/a
Details:
Set to a string with the title and message of the dialog seperated by a comma.
Loading,Please wait!!
Will show this dialog:
[ Loading ]
Please Wait!!
[*]
-->
<preference name="LoadingPageDialog" value="_any_string_"/>
<!--
Name: errorUrl
Description:
Show an error page at url when an error occurs.
Default: n/a
-->
<preference name="errorUrl" value="_any_valid_uri_"/>
<!--
Name: url
Description:
Some kind of url override? Not sure.
Reference:
public void loadUrl(String url) {
if (url.equals("about:blank") || url.startsWith("javascript:")) {
this.loadUrlNow(url);
}
else {
String initUrl = this.getProperty("url", null);
// If first page of app, then set URL to load to be the one passed in
if (initUrl == null) {
this.loadUrlIntoView(url);
}
// Otherwise use the URL specified in the activity's extras bundle
else {
this.loadUrlIntoView(initUrl);
}
}
}
-->
<preference name="url" value=""/>
<!--
Name: LoadUrlTimeoutValue
Description:
When loading a page, the amount of time to wait before throwing a timeout error.
Default: 20000
-->
<preference name="LoadUrlTimeoutValue" value="_any_milliseconds_"/>
<!--
Name: Fullscreen
Description:
Set to true to hide the status bar at the top of the device and make your app full screen.
Default: false
-->
<preference name="Fullscreen" value="true|false"/>
</android>