## PhoneGap Toast Plugin
### Usage:
Add the phonegap-toast.jar to your project in Eclipse. Right click on libs and select Build Path > Configure Build Path. Choose Java Build Path and select the Libraries tab. Click add Jars and select phonegap-toast.jar. If you are building an Android project from the command line jar files found in libs are automatically compiled in.
Add the PhoneGap Toast Plugin JS file along side your other assets and import.
<pre>
<script type="text/javascript" charset="utf-8" src="phonegap-toast.js"></script>
</pre>
Then you can use the plugin like so:
<pre>
window.plugins.ToastPlugin.show_long('Epic!');
</pre>
or
<pre>
window.plugins.ToastPlugin.show_short('Epic!');
</pre>
The long vs short correspond to the Android options: (http://developer.android.com/reference/android/widget/Toast.html#LENGTH_LONG)
(http://developer.android.com/reference/android/widget/Toast.html#LENGTH_SHORT)
## Licence ##
The MIT License
Copyright (c) 2011 Kevin Griffin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
维基百科跨平台web app客户端源代码 (152个子文件)
proguard.cfg 1KB
.classpath 387B
config 262B
app.css 5KB
qunit.css 4KB
description 73B
exclude 240B
spinner.gif 3KB
.gitignore 48B
AppDelegate.h 660B
HEAD 172B
HEAD 32B
HEAD 23B
index.html 5KB
index.html 699B
pack-d3c8c8ad75b3134d77620b9893e131656cdc8b50.idx 55KB
index 13KB
phonegap-1.2.0.jar 156KB
NearMeActivity.java 5KB
AppMenu.java 5KB
URLCache.java 4KB
RestJsonClient.java 2KB
WikiItemizedOverlay.java 2KB
ToastPlugin.java 1KB
SoftKeyBoard.java 1KB
NearMePlugin.java 1KB
GeoName.java 1KB
WikipediaActivity.java 1KB
Share.java 1KB
SelectTextPlugin.java 915B
ApplicationVersion.java 867B
phonegap-1.1.0.js 137KB
phonegap-1.1.0.js 123KB
qunit.js 40KB
zepto.min.js 17KB
mediawiki.js 10KB
main.js 7KB
webkit-sqlite.js 7KB
indexed-db.js 6KB
gears-sqlite.js 6KB
dom.js 5KB
propertiesFileReader-test.js 5KB
Lawnchair.js 5KB
search.js 5KB
URLCache.js 4KB
platform.js 4KB
settings.js 3KB
window-name.js 3KB
bookmarks.js 3KB
callbacks.js 3KB
URLCacheManager.js 3KB
l10n-setup.js 3KB
memory.js 3KB
jquery.localize.js 2KB
blackberry-persistent-storage.js 2KB
query.js 2KB
app_history.js 2KB
menu.android.js 2KB
propertiesFileReader.js 2KB
ie-userdata.js 2KB
cache.js 2KB
platform-stub.js 1KB
aggregation.js 1KB
pagination.js 1KB
softkeyboard.js 806B
phonegap-toast.js 771B
geo.js 752B
platform.js 518B
share.js 509B
platform.js 53B
AppDelegate.m 3KB
main.m 372B
master 172B
master 41B
README.md 2KB
README.md 2KB
README.md 2KB
pack-d3c8c8ad75b3134d77620b9893e131656cdc8b50.pack 2.61MB
packed-refs 161B
project.pbxproj 25KB
Wikipedia-iOS-Prefix.pch 157B
PhoneGap.plist 2KB
Wikipedia-iOS-Info.plist 1KB
microphone~ipad.png 385KB
microphone@2x.png 276KB
microphone.png 71KB
Default@2x.png 32KB
spr.png 23KB
record_button@2x.png 14KB
Default.png 13KB
stop_button@2x.png 13KB
record_button~ipad.png 7KB
stop_button~ipad.png 7KB
record_button.png 6KB
stop_button.png 5KB
icon@2x.png 5KB
icon-72.png 5KB
optionNearMe.png 5KB
optionSettings.png 4KB
optionViewHistory.png 4KB
共 152 条
- 1
- 2
shmilyxbq
- 粉丝: 7
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页