All Projects → Jamshid-M → Winterlayout

Jamshid-M / Winterlayout

WinterLayout with the help of y = a*sin(x) function

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Winterlayout

Idgen
Twitter Snowflake-alike ID generator for .Net
Stars: ✭ 581 (+2224%)
Mutual labels:  snowflake
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
Flexbox
CSS library for easier work with flex boxes
Stars: ✭ 17 (-32%)
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
Gonet
go分布式服务器,基于内存mmo
Stars: ✭ 804 (+3116%)
Mutual labels:  snowflake
Longshadow
Add a long shadow on any Android View
Stars: ✭ 562 (+2148%)
Mutual labels:  layout
Fluentlayout
Stars: ✭ 23 (-8%)
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
React X Ray
React CSS Layout Debugger
Stars: ✭ 579 (+2216%)
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
Tree layout
Algorithms to layout trees in a pretty manner.
Stars: ✭ 24 (-4%)
Mutual labels:  layout
Atomic Layout
Physical representation of layout composition to create declarative responsive layouts in React.
Stars: ✭ 920 (+3580%)
Mutual labels:  layout
Styled System
⬢ Style props for rapid UI development
Stars: ✭ 7,126 (+28404%)
Mutual labels:  layout

Android Arsenal

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

Also initialize layout from code and call setSnowSize method

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