TopNotifyView
一个Android平台的顶部通知/提示显示控件。
###截图
###快速开始
第1步
把模块 TopNotifyViewLibrary 作为你的项目依赖添加到工程中.
第2步
在需要调用的地方直接调用如下代码:
TopNiftyView.make(activity, messageContent, TopNiftyView.LENGTH_SHORT, marginTop)
//messageContent为消息内容,marginTop为距离主布局顶部的距离(单位为dp)(一般的自定义标题栏高度为48dp)
.setDuration(1500) //显示时间
.setBackground(0xff4dc64a) //背景
.setTextColor(0xffffffff) //文字颜色
.show(); //别忘了show出来~
项目使用Android Studio开发,Library需要引用com.android.support:appcompat-v7:22.2.0(你可以使用最新的版本)。
###License
The MIT License (MIT)
Copyright (c) 2015 Nereo
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.