4 Star 6 Fork 1

sleepingAnt / TopNotifyView

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

TopNotifyView

一个Android平台的顶部通知/提示显示控件。

###截图 Example


###快速开始

  • 第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.

空文件

简介

一个Android平台的顶部通知/提示显示控件。 展开 收起
Android
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Android
1
https://gitee.com/ant/TopNotifyView.git
git@gitee.com:ant/TopNotifyView.git
ant
TopNotifyView
TopNotifyView
master

搜索帮助