android浮动通知插件,TopNotifyView

TopNotifyView

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

###截图

8a42a36dadef0ce5d87b6c446f3d4429.gif

###快速开始

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值