Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 1.17 KB

README.md

File metadata and controls

33 lines (27 loc) · 1.17 KB

Blocks View

A custom widget library for android used to display blocks of codes similar to Sketchware and Scratch.

This project is very experimental, and is not suitable for production usage.

Features

  • Blocks
  • Nested Blocks
  • Parameter Blocks
  • String, Integer, Boolean, and Other Fields
  • Custom blocks
  • Drag blocks
  • Drop blocks (TODO)

Sample

Using

We currently haven't published this library into any platforms yet because it's still in development, if you want to try it, just clone this project into your project directory, then create a new module, select gradle project, and select the folder that you cloned this repository into (make sure to pick :lib).

Basic usage:

<com.openblocks.blocks.view.BlocksView
    android:id="@+id/blocks_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

With this, you will be greeted with the demo blocks (as shown in sample).