Vorolay

Additional

Language
Java
Version
1.0.1 (Dec 30, 2016)
Created
Dec 30, 2016
Updated
May 5, 2018
Owner
Daniil Jurjev (Quatja)
Contributor
Daniil Jurjev (Quatja)
1
Activity
Badge
Generate
Download
Source code
APK file

Commercial

Vorolay

VoronoiView is a view (ViewGroup) that allows you to add and display views inside Voronoi diagram regions. [Voronoi diagram] (https://en.wikipedia.org/wiki/Voronoi_diagram)


Screenshots

Import

Step 1. Add the JitPack repository to your build file

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

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

Step 2. Add the dependency

dependencies {
        compile 'com.github.Quatja:Vorolay:1.0.1'
}
---------



Then add your views to the VoronoiView

VoronoiView voronoiView = (VoronoiView) findViewById(R.id.voronoi);
LayoutInflater layoutInflater = getLayoutInflater();
for (int i = 0; i < 15; i++) {
    View view = layoutInflater.inflate(R.layout.item_voronoi, null, false);
    voronoiView.addView(view);
}

Now VoronoiView children will be displayed inside the diagram regions.