All Projects → MatteoBattilana → Weatherview

MatteoBattilana / Weatherview

Licence: apache-2.0
WeatherView is an Android Library let you make cool weather animations for your app

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Weatherview

Nearbyweather
NearbyWeather is an open source weather app for iOS, which uses the OpenWeatherMap API. With this project developers are invited to learn advanced iOS concepts, as well as to contribute further advancements. Fork this repo to get started.
Stars: ✭ 146 (-65.73%)
Mutual labels:  weather, opensource
Aospdeskclock
Fork of aosp deskclock: alarm,clock, timer,stopwatch
Stars: ✭ 28 (-93.43%)
Mutual labels:  opensource, android-studio
Weathericonview
Weather Icon View for Android applications
Stars: ✭ 206 (-51.64%)
Mutual labels:  weather, view
K4kotlin
A sweet, small set of Kotlin functions to reduce your android boilerplate code
Stars: ✭ 210 (-50.7%)
Mutual labels:  android-studio, library
Orionpreview
🅾️ OrionPreview is a simple animation with tanslation or scale views written in Java.
Stars: ✭ 335 (-21.36%)
Mutual labels:  opensource, library
Titled navigation bar
A beautiful and simple bottom navigation bar with smooth animation when switching selected item.
Stars: ✭ 232 (-45.54%)
Mutual labels:  android-studio, library
NearBeach
NearBeach is an open sourced project management tool, helping you keep track of your project. You can track requirements, projects and tasks
Stars: ✭ 97 (-77.23%)
Mutual labels:  opensource, beta
Image Comparison
Published on Maven Central and jCenter Java Library that compares 2 images with the same sizes and shows the differences visually by drawing rectangles. Some parts of the image can be excluded from the comparison. Can be used for automation qa tests.
Stars: ✭ 145 (-65.96%)
Mutual labels:  opensource, library
Co.revely.gradient
An Android library for easy gradient management
Stars: ✭ 298 (-30.05%)
Mutual labels:  opensource, library
Incrementproductview
Interesting concept of products incrementation
Stars: ✭ 262 (-38.5%)
Mutual labels:  library, view
Android Ratingreviews
Simple star rating system bars, a view similar to the ones seen on Google Playstore. ⭐🌟✨
Stars: ✭ 110 (-74.18%)
Mutual labels:  android-studio, view
Beam
✨ Expressive WebGL
Stars: ✭ 383 (-10.09%)
Mutual labels:  particles, library
The Freedom Wrapper Project
This is the Original Freedom Wrapper Project repository. It is developed and maintained by Matthew Benchimol. The Freedom Wrapper Project is an Open Source and Free Android source code project. The project has moved to an organization page at: https://github.com/The-Freedom-Wrapper-Project
Stars: ✭ 75 (-82.39%)
Mutual labels:  android-studio, opensource
Quietweather
☀️ Develop a weather wechat mini program application in two days - 两天撸一个天气应用微信小程序
Stars: ✭ 677 (+58.92%)
Mutual labels:  weather, opensource
Awesome Android
😎 A curated list of awesome Android resources
Stars: ✭ 26 (-93.9%)
Mutual labels:  android-studio, library
SPConfetti
Show the confetti only when the user is having fun, and if not having fun, don't show it.
Stars: ✭ 187 (-56.1%)
Mutual labels:  view, particles
Angular Open Source Starter
This is a starter project for creating open-source libraries for Angular. It is a full fledged Angular workspace with demo application and easy library addition. It is designed to be used for open-sourcing libraries on Github and has everything you'd need ready for CI, code coverage, SSR testing, StackBlitz demo deployment and more.
Stars: ✭ 120 (-71.83%)
Mutual labels:  opensource, library
Lib
🤖 Lets you focus on the stuff that matters
Stars: ✭ 142 (-66.67%)
Mutual labels:  opensource, library
FigmaConvertXib
FigmaConvertXib is a tool for exporting design elements from figma.com and generating files to a projects iOS .xib / Android .xml
Stars: ✭ 111 (-73.94%)
Mutual labels:  view, android-studio
Awesome Android Ui
😎 A curated list of awesome Android UI/UX libraries
Stars: ✭ 353 (-17.14%)
Mutual labels:  android-studio, library

Android Arsenal Android Gems

Get it on Google Play Watch the demo video


WeatherView

WeatherView is an Android Library that helps you make a cool weather animation for your app.
This library is based on the confetti library.

Setup

Android Studio / Gradle

Add the following dependency in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        //...
        maven { url = 'https://jitpack.io' }
    }
}

Add the dependency:

dependencies {
    implementation 'com.github.MatteoBattilana:WeatherView:3.0.0'
}

Simple usage

Simple use cases will look something like this:

Kotlin

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
	
	weather_view.setWeatherData(PrecipType.RAIN)
     }
 }

Java

public class Main2Activity extends AppCompatActivity
{
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        WeatherView weatherView = findViewById(R.id.weather_view);
        weatherView.setWeatherData(PrecipType.RAIN);
    }
}
<com.github.matteobattilana.weather.WeatherView
    android:id="@+id/weather_view"
    android:layout_width="0dp"
    android:layout_height="0dp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

For examples of usage, see the demo app.

Migrations

  • 1.2.0 to 2.0.0

    The library moved from the Leonids particle library to the Confetti library, so all methods have changed. The project is also written with Kotlin, so users with Kotlin can use Kotlin-specific features such as property access instead of setX(...)/getX(...) methods. The demo app's minimum API level is now 16, but the library itself still supports API 14 and up.

    Users that want more control over the particles can access the ConfettiManager instance and customize further, but the WeatherView has sensible default values for rain and snow. The WeatherView also enables users to specify a speed and angle rather than an x- and y-velocity.

  • 1.1.0 to 1.2.0

    Old Name New Name
    setLifeTime(int time) setCurrentLifeTime(int time)
    setFadeOutTime(int fadeOutTime) setCurrentFadeOutTime(int fadeOutTime)
    setParticles(int particles) setCurrentParticles(int particles)
    setAngle(int angle) setCurrentAngle(int angle)
    getLifeTime() getCurrentLifeTime()
    getFadeOutTime() getCurrentFadeOutTime()
    getParticles() getCurrentParticles()
    getAngle() getCurrentAngle()

    Since the modification exposed, now is possible to have more control of each single parameter. In the older version, the developer could set only the paramenter of the playing or setted animation. Please take a look to the wiki to discover more configuration options.

Screenshots

License details

Copyright 2019 Matteo Battilana

Licensed 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.0

Unless required by applicable law or agreed to in writing, software
distributed 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 and
limitations under the License.

The library is Free Software, you can use it, extended with no requirement to open source your changes. You can also make paid apps using it.

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