Home

Awesome

LovelyToast

Make u Toast become lovely and alive,

preview

gif gif gif gif

Dependency(引入)

dependencies {
	compile 'com.ljs.lovelytoast:LovelyToast:1.0.0'
}

This Demo

this demo download

Usage (用法)

LovelyToast.makeText(mActivity.this, " SUCCESS!!", LovelyToast.LENGTH_SHORT,
                        LovelyToast.SUCCESS);

LovelyToast.makeText(mActivity.this, " Hi guys !",LovelyToast.LENGTH_SHORT , LovelyToast.SUCCESS, LovelyToast.SCALE , LovelyToast.RIGHT);

public static void makeText(Context context, String msg, int length, int type, @Nullable int showanim, @Nullable int leftorright)

parms

type :(六种Toast类型分别)

showanim :(三种Toast展示动画)

leftorright:(二种动画位置)

custom style

LovelyToast.makeText(mActivity.this, " hi guys",LovelyToast.LENGTH_SHORT, LovelyToast.SUCCESS, R.style.customanim , LovelyToast.RIGHT)
//引用自定义写的toast展示与退出动画,必须是R.style下的文件
<style name="customanim">
        <item name="android:windowEnterAnimation">@anim/toast_enter</item>
        <item name="android:windowExitAnimation">@anim/toast_out</item>
    </style>

Thanks

https://github.com/geftimov/android-pathview

###Contributors I want to update this Toast and make it better. So any help will be appreciated. Make and pull - request and we can discuss it.

Licence

This Licence, don't need a Public Licence!i don't care! If u like the LovelyToast, give me a star, don't be such a dick, u just do what u want to do. (不需要licence,大家想怎么用怎么用,给个star即可,thanks!! )