Android library for displaying text messages, notifications and alerts at the top or bottom of the screen. A great alternative for toast and snackbar alerts.
Android library for displaying text messages, notifications and alerts at the top or bottom of the screen. A great alternative for toast and snackbar alerts.
CookieBar is a lightweight UI/UX library for displaying an interactive message on the screen.
implementation 'org.aviran.cookiebar2:cookiebar2:1.1.5'CookieBar2 is now hosted in Maven Central, make sure you have mavenCentral() added to your repositories in build.gradle
buildscript {
...
repositories {
...
mavenCentral()
}
}Latest additions to CookieBar2:
CookieBar.build(activity) // Provide activity, using this@MainActivity / getActivity() or otherwise
.setTitle("TITLE") // String resources are also supported
.setMessage("MESSAGE") // i.e. R.string.message
.show() // Cookies are displayed at the top by defaultCookieBar.build(getactivty())
.setTitle("TITLE")
.setMessage("MESSAGE")
.setCookiePosition(CookieBar.BOTTOM) // Cookie will be displayed at the bottom
.show(); // of the screenCookieBar.build(activity)
.setTitle(R.string.title)
.setTitleColor(R.color.green)
.setIcon(R.drawable.icon)
.setIconAnimation(R.animator.spin)
.setMessage(R.string.message)
.setAction(R.string.action_text) {
// Action code - Do something
}
.setDuration(5000) // 5 seconds
.show()CookieBar.build(activity)
.setTitle(R.string.title)
.setMessage(R.string.message)
.setAnimationIn(android.R.anim.slide_in_left, android.R.anim.slide_in_left)
.setAnimationOut(android.R.anim.slide_out_right, android.R.anim.slide_out_right)
.show()CookieBar.dismiss(activity)
……Forked from the early code base of CookieBar, by Eric Liu.
Copyright 2018, Aviran Abady.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.No open issues yet, or sync has not completed.