All Projects → iglaweb → Ferris Wheel

iglaweb / Ferris Wheel

Licence: apache-2.0
Simple android library to present an animated ferris wheel

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Ferris Wheel

VisualDebugger
The most elegant and easiest way to visual you data in playground
Stars: ✭ 22 (-92.86%)
Mutual labels:  drawing
Circularprogressbar
A subclass of {android.view.View} class for creating a custom circular progressBar
Stars: ✭ 255 (-17.21%)
Mutual labels:  customview
Go Chart
go chart is a basic charting library in go.
Stars: ✭ 3,254 (+956.49%)
Mutual labels:  drawing
desert
A fast (?) random sampling drawing library
Stars: ✭ 61 (-80.19%)
Mutual labels:  drawing
pencil-scribbles
Create pencil effect drawings from pictures using R
Stars: ✭ 30 (-90.26%)
Mutual labels:  drawing
Colorslider
🎨 Snapchat-style color picker in Swift
Stars: ✭ 258 (-16.23%)
Mutual labels:  drawing
CustomEditText
Simple Custom EditText for Android like Instagram
Stars: ✭ 23 (-92.53%)
Mutual labels:  customview
Luxor.jl
Simple drawings using vector graphics; Cairo "for tourists!"
Stars: ✭ 293 (-4.87%)
Mutual labels:  drawing
rnote
A simple drawing application to create handwritten notes.
Stars: ✭ 1,538 (+399.35%)
Mutual labels:  drawing
Showcaseview
🔦The ShowcaseView library is designed to highlight and showcase specific parts of apps to the user with an attractive and flat overlay.
Stars: ✭ 281 (-8.77%)
Mutual labels:  customview
FuncMorph
Crazy figures and animations with Haskell
Stars: ✭ 30 (-90.26%)
Mutual labels:  drawing
AsyPad
A simple drawing tool that can convert diagrams into Asymptote code.
Stars: ✭ 18 (-94.16%)
Mutual labels:  drawing
Shelfview Ios
iOS custom view to display books on shelf
Stars: ✭ 260 (-15.58%)
Mutual labels:  customview
JQScrollNumberLabel
JQScrollNumberLabel:仿tumblr热度滚动数字条数, 一个显示数字的控件,当你改变其数字时,能够有滚动的动画,同时动画和位数可以限制,动态创建和实例化可选,字体样式自定义等。
Stars: ✭ 29 (-90.58%)
Mutual labels:  customview
Gromit Mpx
Gromit-MPX is an on-screen annotation tool that works with any Unix desktop environment under X11 as well as Wayland.
Stars: ✭ 287 (-6.82%)
Mutual labels:  drawing
kImageAnnotator
Tool for annotating images
Stars: ✭ 55 (-82.14%)
Mutual labels:  drawing
Tinyengine
Tiny OpenGL Wrapper / 3D Engine in C++
Stars: ✭ 251 (-18.51%)
Mutual labels:  drawing
Drawkit
Vector and illustration framework for macOS
Stars: ✭ 299 (-2.92%)
Mutual labels:  drawing
Tart
Tart - draw ASCII art in the terminal with your mouse!
Stars: ✭ 296 (-3.9%)
Mutual labels:  drawing
Ypdrawsignatureview
Capture signature view in Swift and export it as a vector graphics or bitmap
Stars: ✭ 279 (-9.42%)
Mutual labels:  drawing

Ferris Wheel View

Android Arsenal Build Status Download License

image

Overview

An Android Library used to implement an animated Ferris Wheel in android.

  • API SDK 15+
  • Written in Kotlin
  • Supports landscape mode
  • Lightweight view with 1 drawable inside, uses canvas 2D drawing technique

Preview-demo Monochrome-sample
Inspired by the one-color Planet Coaster loading screen

Mentions

Sample Project

For more information how to use the library in Kotlin/Java checkout Sample App in repository.

Quick Setup

Include library

Using Gradle

FerrisWheelView is distributed using jcenter.

repositories { 
    jcenter()
}
dependencies {
    implementation 'ru.github.igla:ferriswheel:1.2'
}

Or Maven

<dependency>
  <groupId>ru.github.igla</groupId>
  <artifactId>ferriswheel</artifactId>
  <version>1.2</version>
  <type>pom</type>
</dependency>

Usage

Add widget in your xml layout like this:

    <ru.github.igla.ferriswheel.FerrisWheelView
        android:id="@+id/ferrisWheelView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center"
        app:fwv_cabinsNumber="8"
        app:fwv_rotateSpeed="6" />

To start animation you need only call this method:

    ferrisWheelView.startAnimation()

Or you can stop/pause/resume animation by the following methods:

    ferrisWheelView.stopAnimation()
    ferrisWheelView.pauseAnimation()
    ferrisWheelView.resumeAnimation()

Attributes

attr format default description
fwv_cabinSize dimension 42dp the size of each cabin
fwv_cabinsNumber integer 8 the number of cabins on the wheel
fwv_isClockwise boolean true toogle the rotate direction
fwv_isAutoRotate boolean true start rotating wheel automatically after initialization
fwv_rotateSpeed integer 6 wheel speed rotation measured in degrees
fwv_startAngle float 0 angle at which wheel will start to rotate
fwv_wheelStrokeColor color #73302b #73302b with this color the wheel will be filled
fwv_baseStrokeColor color #666666 #666666 with this color the wheel base will be filled
fwv_cabinFillColor color array with this color the cabin will be filled
fwv_cabinLineStrokeColor color #000000 #000000 with this color the cabin line will be filled

Issues

If you find any problems or would like to suggest a feature, please feel free to file an issue

License

Copyright 2018 Igor Lashkov

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