jenly1314 / Giftsurfaceview
🌷 直播间送礼物拼图案动画控件
Stars: ✭ 228
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Giftsurfaceview
Diffy
🎞️💓🍿 Love streaming - It's always best to watch a movie together ! 🤗
Stars: ✭ 37 (-83.77%)
Mutual labels: room, live
Redis4cats
🔖 Redis client built on top of Cats Effect, Fs2 and Lettuce
Stars: ✭ 189 (-17.11%)
Mutual labels: effects
Xzs Mysql
学之思在线考试系统 - mysql版,支持多种题型:选择题、多选题、判断题、填空题、解答题以及数学公式,包含PC端、小程序端,扩展性强,部署方便(集成部署、前后端分离部署、docker部署)、界面设计友好、代码结构清晰
Stars: ✭ 192 (-15.79%)
Mutual labels: live
Nginx Rtmp Monitoring
real-time monitoring statistics dashboard for nginx rtmp module
Stars: ✭ 224 (-1.75%)
Mutual labels: live
Android Kotlin Mvi Cleanarchitecture
Android + Kotlin + Modularization + Gradle Depedency managment + Gradle written in Kotlin DSL + Custom Gradle Plugin + MVVM + MVI + Clean Architecture + Repository Pattern + Coroutines + Flows + Koin + Retrofit2 + ROOM + Kotlin-Android-Extension + KtLints
Stars: ✭ 187 (-17.98%)
Mutual labels: room
Mvvmframe
🏰 MVVMFrame for Android 是一个基于Google官方推出的Architecture Components dependencies(现在叫JetPack){ Lifecycle,LiveData,ViewModel,Room } 构建的快速开发框架。有了MVVMFrame的加持,从此构建一个MVVM模式的项目变得快捷简单。
Stars: ✭ 218 (-4.39%)
Mutual labels: room
Learningsystem
在线学习考试系统,集“学、练、考”一体(慕课网校+题库系统+在线考试+直播),多种界面风格可自由切换,电脑、手机、微信全支持,自带分享、分润模块,对接微信支付、支付宝支付。可私有化部署,收益全掌控;永久授权,终身享用。安装量超三万家。
Stars: ✭ 201 (-11.84%)
Mutual labels: live
Ffmpegandroid
android端基于FFmpeg实现音频剪切、拼接、转码、编解码;视频剪切、水印、截图、转码、编解码、转Gif动图;音视频合成与分离,配音;音视频解码、同步与播放;FFmpeg本地推流、H264与RTMP实时推流直播;FFmpeg滤镜:素描、色彩平衡、hue、lut、模糊、九宫格等;歌词解析与显示
Stars: ✭ 2,858 (+1153.51%)
Mutual labels: live
Conductormvp
Multi-project Clean Architecture MVP app in Kotlin using Conductor, Room, RxJava 2, Dagger 2 with custom scopes
Stars: ✭ 192 (-15.79%)
Mutual labels: room
Hls Vod
HTTP Live Streaming with on-the-fly encoding of any video file for Web/Apple TV/iPhone/iPad/iPod
Stars: ✭ 221 (-3.07%)
Mutual labels: live
Isaura
An attempt at making a aura thingie with a isoline shader.
Stars: ✭ 187 (-17.98%)
Mutual labels: effects
Jackknife
⚔️ 金轮法王,哦不,是轮子大师带你玩转Android,是时候尝试下MVVM了。这是一个Android应用开发全家桶库,支持Kotlin+MVVM+Dagger2+Retrofit架构。
Stars: ✭ 215 (-5.7%)
Mutual labels: live
Bilibililiverecorder
pure-java B站/Acfun/斗鱼/虎牙/快手/抖音/YY/战旗/花椒 直播视频录制。仅需Java环境即可运行
Stars: ✭ 195 (-14.47%)
Mutual labels: live
GiftSurfaceView
GiftSurfaceView 最初出自于2014年开发HalloStar项目时所写,主要用于HalloStar项目直播间的送礼物动画。现在想来,那夕阳下的奔跑,是我逝去的青春。因高仿全民TV项目时想起,所以抽空整理了下,以此记录。
Gif展示
引入
Maven:
<dependency>
<groupId>com.king.view</groupId>
<artifactId>giftsurfaceview</artifactId>
<version>1.1.0</version>
<type>pom</type>
</dependency>
Gradle:
compile 'com.king.view:giftsurfaceview:1.1.0'
Lvy:
<dependency org='com.king.view' name='giftsurfaceview' rev='1.1.0'>
<artifact name='$AID' ext='pom'></artifact>
</dependency>
如果Gradle出现compile失败的情况,可以在Project的build.gradle里面添加如下:(也可以使用上面的GitPack来complie)
allprojects {
repositories {
maven { url 'https://dl.bintray.com/jenly/maven' }
}
}
示例
public void updateGiftSurfaceView(int type){
frame.removeAllViews();
GiftSurfaceView giftSurfaceView = new GiftSurfaceView(context);
if(type == RANDOM){
giftSurfaceView.setImageResource(R.drawable.rose);
}else{
giftSurfaceView.setImageBitmap(bitmap,.5f);
}
giftSurfaceView.setPointScale(1,width/10,(int)(height/3.8f));
giftSurfaceView.setRunTime(10000);
try {
switch (type){
case RANDOM:
giftSurfaceView.setRandomPoint(9);
break;
case V:
giftSurfaceView.setListPoint(PointUtils.getListPointByResourceJson(context,ASSET_V),true);
break;
case HEART:
giftSurfaceView.setListPoint(PointUtils.getListPointByResourceJson(context,ASSET_HEART),true);
break;
case LOVE:
giftSurfaceView.setListPoint(PointUtils.getListPointByResourceJson(context,ASSET_LOVE));
break;
case SMILE:
giftSurfaceView.setListPoint(PointUtils.getListPointByResourceJson(context,ASSET_SMILE));
break;
case X:
giftSurfaceView.setListPoint(PointUtils.getListPointByResourceJson(context,ASSET_X));
break;
case V520:
giftSurfaceView.setListPoint(PointUtils.getListPointByResourceJson(context,ASSET_V520));
break;
case V1314:
giftSurfaceView.setRunTime(GiftSurfaceView.LONG_TIME);
giftSurfaceView.setListPoint(PointUtils.getListPointByResourceJson(context,ASSET_V1314));
break;
}
frame.addView(giftSurfaceView);
} catch (IOException e) {
e.printStackTrace();
}
}
以上为部分代码使用示例,更多详情请下载查看。
赞赏
如果您喜欢GiftSurfaceView,或感觉GiftSurfaceView帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 😃
您也可以扫描下面的二维码,请作者喝杯咖啡 ☕️
关于我
Name: Jenly
Email: jenly1314#gmail.com / jenly1314#vip.qq.com
CSDN: jenly121
Github: jenly1314
加入QQ群: 20867961
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].