All Projects → esafirm → android-ui-book

esafirm / android-ui-book

Licence: MIT License
UI Component Explorer for Android

Programming Languages

kotlin
9241 projects
shell
77523 projects

Projects that are alternatives of or similar to android-ui-book

MultiPy
MultiPy lets you conveniently keep track of your python scripts for personal use or showcase by loading and grouping them into categories. It allows you to either run each script individually or together with just one click.
Stars: ✭ 56 (+21.74%)
Mutual labels:  showcase
yiipowered
Yii powered websites showcase
Stars: ✭ 88 (+91.3%)
Mutual labels:  showcase
covid-19
COVID-19 World is yet another Project to build a Dashboard like app to showcase the data related to the COVID-19(Corona Virus).
Stars: ✭ 28 (-39.13%)
Mutual labels:  showcase
isopaint
Isometric Painting Tool on HTML5 canvas
Stars: ✭ 58 (+26.09%)
Mutual labels:  showcase
shellbear.me
Source code of my personal website and blog ✨
Stars: ✭ 177 (+284.78%)
Mutual labels:  showcase
sphinx-themes.org
A showcase for Sphinx documentation themes
Stars: ✭ 114 (+147.83%)
Mutual labels:  showcase
openui5-tour
OpenUI5 Tour enables an user-friendly way to showcase products and features in your website.
Stars: ✭ 21 (-54.35%)
Mutual labels:  showcase
cpp stm free
Composable monadic STM for C++ on Free monads
Stars: ✭ 46 (+0%)
Mutual labels:  showcase
showcase
Showcasing what can be done with Bastion
Stars: ✭ 19 (-58.7%)
Mutual labels:  showcase
MultiLamp
Android library to showcase/highlight the multiple views on same overlay
Stars: ✭ 235 (+410.87%)
Mutual labels:  showcase
showcase-template
A React Native template that helps developers to showcase their amazing libraries examples.
Stars: ✭ 50 (+8.7%)
Mutual labels:  showcase
telco-customer-churn-in-r-and-h2o
Showcase for using H2O and R for churn prediction (inspired by ZhouFang928 examples)
Stars: ✭ 59 (+28.26%)
Mutual labels:  showcase
hystrix-examples
Showcase for Netflix' Hystrix
Stars: ✭ 45 (-2.17%)
Mutual labels:  showcase
haxeflixel.com
haxeflixel.com docpad source
Stars: ✭ 57 (+23.91%)
Mutual labels:  showcase
widgets playground
Showcase example for https://github.com/therecipe/qt
Stars: ✭ 50 (+8.7%)
Mutual labels:  showcase
VinylShop
https://dribbble.com/shots/4996346-Vinyl-Shop-mobile-app
Stars: ✭ 30 (-34.78%)
Mutual labels:  showcase
ShowcaseView
ShowcaseView library for Android
Stars: ✭ 196 (+326.09%)
Mutual labels:  showcase
haxe
Qt binding for Haxe | Showcase example for https://github.com/therecipe/qt
Stars: ✭ 21 (-54.35%)
Mutual labels:  showcase
talks
Let's talk about ..
Stars: ✭ 13 (-71.74%)
Mutual labels:  showcase
showcase-app-react-native
Aplicativos nacionais feitos com React Native
Stars: ✭ 114 (+147.83%)
Mutual labels:  showcase

Android UI Book

Simple and extensible UI component explorer for Android

You can check the demo video here

Getting Started

Setup Module

Usually the UI component explorer is separated from the main app. So the first thing you should do is to create empty module with com.android.application plugin. After that:

In your root build.gradle

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

And in your project build.gradle

dependencies {
  implementation 'com.github.esafirm.android-ui-book:browser:x.y.z'
  kapt 'com.github.esafirm.android-ui-book:processors:x.y.z'	
}

change x.y.z to version in the release page

Create First Book

To create book simple creat an extension function that extend BookHost, return View and give the function @UIBook annotation. In this case I will create a Kotlin file with name Catalogue.kt and then create this function:

@UIBook(name = "TextView")
fun BookHost.createTextView(text: String): TextView {
  /**
  * This will draw text
  */
  return TextView(context).apply {
    this.text = text
    setTextColor(Color.RED)
  }
}

That's it now run the new module that you just created.

Advanced

For now, you can check :sample module for complete features.

Support

Buy Me a Coffee at ko-fi.com

License

Esa @ MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].