Mochiziku / sketchware-blocks-view

A custom widget used to display and parse sketchware blocks from a data/logic file, one of the module of openblocks-app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sketchware Blocks View

A very simple custom widget 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.SketchwareBlocksView
    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 and parse sketchware blocks from a data/logic file, one of the module of openblocks-app.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Java 100.0%