Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
145 (https://github.com/jcmore2/BannerTime/stargazers?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2527) 8
(https://github.com/jcmore2/BannerTime/watchers?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2527) 31
(https://github.com/jcmore2/BannerTime/network?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2527) 0
(https://github.com/jcmore2/BannerTime/issues?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2527)
(https://facebook.com/sharer.php?
General u=https://android-
Category
arsenal.com/details/1/2527)
Free (/free)
Tag
(https://twitter.com/intent/twe
arsenal.com/details/1/2527&text=The%20An
Dialogs (/tag/30)
License %20Dialogs%20-%20BannerTime
Apache License, Version 2.0 (http://opensource.org/licenses/Apache-2.0?utm_source=android-arsenal.co
(http://news.ycombinator.com/submitlink
m&utm_medium=referral&utm_campaign=2527)
arsenal.com/details/1/2527&t=The%20Andro
Min SDK
14 (Android 4.0–4.0.2 Ice Cream Sandwich) (/api?level=14)
Registered
%20Dialogs%2
Sep 21, 2015
Favorites
(https://plus.google.com/share?
6 url=https://android-
Link arsenal.com/details/1/2527)
https://github.com/jcmore2/BannerTime (https://github.com/jcmore2/BannerTime?utm_source=android-ar
(https://reddit.com/subm
senal.com&utm_medium=referral&utm_campaign=2527)
arsenal.com/details/1/2527&title=The%20An
See also
AndroidTabbedDialog (/details/1/3318)
Pop (/details/1/3400) %20Dialogs%
Selection Dialogs (/details/1/3651)
DialogAlchemy (/details/1/3741)
DistilledViewPrefs (/details/1/2567)
Additional
Language
Java
Version
N/A (https://github.com/jcmore2/BannerTime/releases?utm_source=android-arsenal.com&utm_medium=r
eferral&utm_campaign=2527)
Created
Sep 15, 2015
Updated
Nov 23, 2015 (Retired)
Owner
Juan Carlos Moreno (jcmore2) (/user/jcmore2)
Contributor
1 (https://github.com/jcmore2/BannerTime/graphs/contributors?utm_source=android-arsenal.com&utm_m
edium=referral&utm_campaign=2527)
Activity
Badge
Generate
Download
Source code
APK file
Promotion
BannerTime
(https://github.com/jcmore2/BannerTime/raw/master/raw/sample.png?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2527)
(https://github.com/jcmore2/BannerTime/raw/master/raw/bannertime.gif?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2527)
Usage
compile 'com.jcmore2.bannertime:bannertime:1.1.1'
If you don´t want to use Picasso Library (You may notice that you are not be able to use
"imageBanner()" and "imageBannerPlaceholder()" methods):
compile ('com.jcmore2.bannertime:bannertime:1.1.1') {
exclude module: 'picasso'
}
@Override
protected void onResume() {
super.onResume();
BannerTime.init(this)
.shownTime(4000)
.hiddenTime(3000)
.imageBanner("http://pre03.deviantart.net/2aa0/th/pre/f/2012/321/d/1/af
.withKOButton()
.withKOButton()
.show();
}
(https://github.com/jcmore2/BannerTime/raw/master/raw/default.gif?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2527)
@Override
public void onDismiss() {
Toast.makeText(mContext, "onDismiss", Toast.LENGTH_SHORT).show();
@Override
public void onClickOk() {
Toast.makeText(mContext, "onClickOk", Toast.LENGTH_SHORT).show();
@Override
public void onClickKO() {
Toast.makeText(mContext, "onClickKO", Toast.LENGTH_SHORT).show();
@Override
public void onClickImage() {
Toast.makeText(mContext, "onClickImage", Toast.LENGTH_SHORT).show()
}
});
BannerTime.init(this)
.shownTime(4000)
.hiddenTime(3000)
.withView(contentView)
.setGravity(BannerTime.TOP)
.show();
(https://github.com/jcmore2/BannerTime/raw/master/raw/custom.gif?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2527)
@Override
protected void onPause() {
super.onPause();
BannerTime.onPause();
}
Libraries Used
License