Jamshid-M / Winterlayout
WinterLayout with the help of y = a*sin(x) function
Stars: ✭ 25
Programming Languages
kotlin
9241 projects
Projects that are alternatives of or similar to Winterlayout
Paralayout
Paralayout is a set of simple, useful, and straightforward utilities that enable pixel-perfect layout in iOS. Your designers will love you.
Stars: ✭ 742 (+2868%)
Mutual labels: layout
Golden Layout
A multi window layout manager for webapps
Stars: ✭ 5,448 (+21692%)
Mutual labels: layout
Physicslayout
Android layout that simulates physics using JBox2D
Stars: ✭ 658 (+2532%)
Mutual labels: layout
Flex Layout Attribute
HTML layout helper based on CSS flexbox specification —
Stars: ✭ 705 (+2720%)
Mutual labels: layout
Greedo Layout For Ios
Full aspect ratio grid layout for iOS
Stars: ✭ 837 (+3248%)
Mutual labels: layout
Front End Daily Challenges
As of October 2020, 170+ works have been accomplished, challenge yourself each day!
Stars: ✭ 598 (+2292%)
Mutual labels: layout
Flex Layout
Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API
Stars: ✭ 5,705 (+22720%)
Mutual labels: layout
Statefullayout
Android layout to show template for loading, empty, error etc. states
Stars: ✭ 813 (+3152%)
Mutual labels: layout
Gojs
JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.
Stars: ✭ 5,739 (+22856%)
Mutual labels: layout
Windless
Windless makes it easy to implement invisible layout loading view.
Stars: ✭ 919 (+3576%)
Mutual labels: layout
Egjs Infinitegrid
A module used to arrange card elements including content infinitely on a grid layout.
Stars: ✭ 751 (+2904%)
Mutual labels: layout
Atomic Layout
Physical representation of layout composition to create declarative responsive layouts in React.
Stars: ✭ 920 (+3580%)
Mutual labels: layout
WinterLayout
Happy New Year 🎉 🎅 🎄
WinterLayout with the help of y = a*sin(x) function
Usage
Add jitpack in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency
dependencies {
implementation 'com.github.Jamshid-M:WinterLayout:1.0'
}
Include WinterLayout in your xml
<uz.jamshid.lib.WinterLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/winter"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:snowCount="100"
app:snowImage="@drawable/ic_snowflake"
app:minSize="20"
app:maxSize="30"
tools:context=".MainActivity">
/** other view components **/
</uz.jamshid.lib.WinterLayout>
Custom Field description
Because of library uses random values for size, amplitude and speed, user have to give range for every field
-
snowCount
number of snowflakes on layout -
minAmplitude
minimum range value for amplitude -
maxAmplitude
maximum range value for amplitude -
minSpeed
minimum speed range -
maxSpeed
maximum speed range -
minSize
minimum size range -
maxSize
maximum size range -
snowImage
reference to drawable, for customizing snowflake image
Starting and Stopping Winter
Give id for your WinterLayout and with the help of id find and use his startWinter and stopWinter methods
winter.startWinter()
There are two kind of stops
- Natural Stop
- Stop Immediately
winter.stopWinter() //stop naturally
winter.stopImmediately() //stop immediately
setSnowSize
method
Also initialize layout from code and call winter.setSnowSize(20)
This method accepts
- Snow Count
- bitmap (optional)
- minAmplitude (optional)
- maxAmplitude (optional)
- minSpeed (optional)
- maxSpeed (optional)
- minSize (optional)
- maxSize (optional)
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].