Skip to content

OpenBlocksTeam/blocks-view

Repository files navigation

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

About

A custom widget used to display blocks similar to MIT's Scratch and Sketchware, one of the module of openblocks-app.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages