- Notifications
You must be signed in to change notification settings - Fork0
EmojiRainLayout is a customizable Android layout that allows developers to create a fun and interactive rain effect of emojis on the screen.
License
AndroidWithRossyn/RainView-DropingDrawables
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Give a surprise to your users on Christmas Day by dropping emojis!
How to use the RainLayout:
RainLayout is a custom Android view that creates a delightful emoji rain effect on your screen.
Add EmojiRainLayout to your layout XML:
<com.youpackage.EmojiRainLayoutandroid:id="@+id/emojiRainLayout"android:layout_width="match_parent"android:layout_height="match_parent"/>
In your Activity or Fragment:
val emojiRainLayout:EmojiRainLayout= findViewById(R.id.emojiRainLayout)// Add emojisemojiRainLayout.addEmoji(R.drawable.emoji_heart)emojiRainLayout.addEmoji(R.drawable.emoji_smile)// Customize (optional)emojiRainLayout.per=10// Number of emojis per dropemojiRainLayout.duration=5000// Total duration in millisecondsemojiRainLayout.dropDuration=2000// Duration of each emoji's fallemojiRainLayout.dropFrequency=300// Time between emoji drops// Start the rainemojiRainLayout.startDropping()// Stop the rain (when needed)emojiRainLayout.stopDropping()
per
: Number of drawable per drop cycleduration
: Total duration of the rain effectdropDuration
: Duration of each drawable's falling animationdropFrequency
: Time interval between drawable drops
Enjoy the rain Effact in your app! 🎉
- per
- How many emojis will dropping in each flow, default 6
- duration
- The total duration of the animation, default 8000ms
- dropDuration
- The average dropping duration for a specific emoji, default 2400ms
- dropFrequency
- The interval between two flows, default 500ms
Config in layout.EmojiRainLayout
inherits fromConstraintLayout
.
Elevate your Android app to the next level with our state-of-the-art solutions! Contact us today and let’s create something extraordinary!
Note:
Please review ourCode of Conduct before using this project.
Support it by joining stargazers for this repository. ⭐
Also,follow me on GitHub for my next creations! 🤩
Your support transforms caffeine into code! ✨
🚀 Faster Updates | 🔍 Better Documentation | 🛠️ More Features |
Why Support?
Every contribution helps me dedicate more time to creating high-quality open source Code. Your support directly translates to better software for everyone!
Copyright: ~ Rossyn~ Rohitraj KhorwalLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.
About
EmojiRainLayout is a customizable Android layout that allows developers to create a fun and interactive rain effect of emojis on the screen.
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.