一个Android平台的顶部通知/提示显示控件。
###截图
###快速开始
第1步
把模块 TopNotifyViewLibrary
作为你的项目依赖添加到工程中.
第2步 在需要调用的地方直接调用如下代码:
TopNiftyView.make(activity, messageContent, TopNiftyView.LENGTH_SHORT, marginTop)
//messageContent为消息内容,marginTop为距离主布局顶部的距离(单位为dp)(一般的自定义标题栏高度为48dp)
.setDuration(1500) //显示时间
.setBackground(0xff4dc64a) //背景
.setTextColor(0xffffffff) //文字颜色
.show(); //别忘了show出来~
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。