Cue

Additional

Language
Java
Version
N/A
Created
Jan 28, 2018
Updated
Mar 10, 2018
Owner
Akshay sharma (akshay2211)
Contributors
Akshay sharma (akshay2211)
JKaiss
edthegamer
3
Activity
Badge
Generate
Download
Source code

Show card

Cue

Library to create fully customizable Bootstrap styled alerts

Demo

Usage

Add in app build.gradle

        allprojects {
            repositories {
                maven {
                    url "https://jitpack.io"
                }
            }
        }

Basic usage

        Cue.init()
                .with(MainActivity.this)
                .setMessage("This is a sample Toast - Check it out")
                .setType(Type.PRIMARY)
                .show();

Types can be

    PRIMARY, SUCCESS, SECONDARY, DANGER, WARNING, INFO, LIGHT, DARK, CUSTOM

Custom usage

        Cue.init()
                .with(MainActivity.this)
                .setMessage("This is a sample Toast - Check it out")
                .setGravity(Gravity.CENTER_VERTICAL | Gravity.BOTTOM)
                .setType(Type.CUSTOM)
                .setDuration(Duration.LONG)
                .setBorderWidth(5)
                .setCornerRadius(10)
                .setCustomFontColor(Color.parseColor("#fd79a8"),
                        Color.parseColor("#ffffff"),
                        Color.parseColor("#e84393"))
                .setFontFace("fonts/custom_font.ttf")
                .setPadding(30)
                .setTextSize(20)
                .setTextGravity(Gravity.CENTER)
                .setHideToast(true)
                .show();

Download

or grab via Gradle:

        compile 'com.fxn769:cue:1.1'

or Maven:

        <dependency>
          <groupId>com.fxn769</groupId>
          <artifactId>cue</artifactId>
          <version>1.1</version>
          <type>pom</type>
        </dependency>

or ivy:

        <dependency org='com.fxn769' name='cue' rev='1.1'>
          <artifact name='cue' ext='pom' ></artifact>
        </dependency>

Snapshots of the development version are available in Sonatype's snapshots repository.

License

Licensed under the Apache License, Version 2.0, click here for the full license.

Author & support

This project was created by Akshay Sharma.

If you appreciate my work, consider buying me a cup of ☕️ to keep me recharged 🤘 by PayPal

I love using my work and I'm available for contract work. Freelancing helps to maintain and keep my open source projects up to date!