Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.79 KB

README_EN.md

File metadata and controls

45 lines (34 loc) · 1.79 KB

中文文档

Index

Features
Installion
Usage
[Usage Screenshot](https://github.com/boredream/BorePlugin#Usage Screenshot)
[Generation Rule](https://github.com/boredream/BorePlugin#Generation Rule)
Vertion

Features

auto create the "findViewById", "btn_submit.setOnClickListener" etc. code in Activity/Fragment or Adapter

if you have any question, you can make a issue~

Installion

Search "Layoutcreator" in Android Studio plugin repositories, then install it!

Usage

  1. create a Activity, then write the "onCreate" method and setContentView(R.layout.YOUR_LAYOUT)
  2. choose the layout name, then select "Generate"-"LayoutCreator"
    (or select "Code" - "LayoutCreator" in Menu bar
  3. then it will show a dialog with all views
  4. press "Confirm" to generate code

Usage Screenshot

Layout Creator

Generation Rule

  1. scan all views in layout witch only has the "id" attr
  2. all the views will show in the dialog, then you can rename it
  3. all the Button or the views whitch has clickable=true will generate "Clickc" code
  4. all the EditText will generate validate code
  5. the layout in will be scaned

Vertion

  • 1.0 init
  • 1.1 support Fragment and ViewHolder code
  • 1.2 add EditText validate code
  • 1.3 fix the bug: duplicate generate field
  • 1.4 add "select/unselect all"
    support difference type of name