Vusik View

Additional

Language
Java
Version
N/A
Created
Jan 6, 2017
Updated
May 27, 2017 (Retired)
Owner
Chetan Kaushik (dynamitechetan)
Contributor
Chetan Kaushik (dynamitechetan)
1
Activity
Badge
Generate
Download
Source code
APK file

Commercial

VusikView

Min SDK 11

Screnshots

How to use

If you want use this library, you can download project and import it into your workspace and add the project as a library in your android project settings.

Using Gradle

you have to add these lines in your build.gradle file:

repositories {
        jcenter()
}

dependencies {
        compile 'dyanamitechetan.vusikview:vusikview:1.1'
}

or Using Maven:

<dependency>
  <groupId>dyanamitechetan.vusikview</groupId>
  <artifactId>vusikview</artifactId>
  <version>1.0</version>
  <type>pom</type>
</dependency>

BASIC USAGE

In XML

   <dyanamitechetan.vusikview.VusikView
        android:layout_width="match_parent"
        android:id="@+id/vusik"
        android:layout_height="match_parent"
        />

In Java

    vusikView = (VusikView) findViewById(R.id.vusik);
    vusikView.start();

Using own Images

    vusikView = (VusikView) findViewById(R.id.vusik);
    int[]  myImageList = new int[]{R.drawable.note1,R.drawable.note2,R.drawable.note4};
    vusikView
            .setImages(myImageList)
            .start();

Pause, Resume, Stop

    vusikView.pauseNotesFall();
    vusikView.resumeNotesFall();
    vusikView.stopNotesFall;

The VusikView have some custom attributes, to use them , you must add this line in your xml file in the first component:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >
</RelativeLayout>

Setting a fall speed

Default is 0.1
    <dyanamitechetan.vusikview.VusikView
        android:layout_width="match_parent"
        android:id="@+id/vusik"
        android:layout_height="350dp"
        app:fallSpeed="0.13"
        />

Setting Notes Count

Default is 25
 <dyanamitechetan.vusikview.VusikView
        android:layout_width="match_parent"
        android:id="@+id/vusik"
        android:layout_height="350dp"
        app:fallCount="40"
        />

License

Copyright (c) 2016 Chetan Kaushik

Licensed under the Apache License, Version 2.0