An intellij idea plugin to generate MultiType Item and ItemViewProvider easily.
Java
Latest commit 2ed1b21 Dec 15, 2016 @drakeet Supported MultiType v2.3.0
* Supported MultiType v2.3.0
* Changed the Action to the position after "Create Java Class Action"
Permalink
Failed to load latest commit information.
resources/META-INF
src
.gitattributes
.gitignore
LICENSE
MultiTypeTemplates-1.0.1.jar
MultiTypeTemplates-1.1.0.jar Supported MultiType v2.3.0 Dec 15, 2016
MultiTypeTemplates.iml
README.md Update README.md Oct 24, 2016
module_mutitypetemplates.xml
multitypetemplates.properties Hello world Oct 19, 2016
multitypetemplates.xml Hello world Oct 19, 2016

README.md

MultiTypeTemplates

An intellij idea plugin for Android to generate MultiType Item and ItemViewProvider easily.

Obtaining & Installation

Usage

Right click your packge/directory - New - MultiType Item, then input your name of Item to generate Item and ItemViewProvider files and codes.

Example: If you input "Category", it will generate the Category.java and CategoryViewProvider.java:

public class Category implements Item {

}
public class CategoryViewProvider
        extends ItemViewProvider<Category, CategoryViewProvider.ViewHolder> {

    @NonNull @Override protected ViewHolder onCreateViewHolder(
            @NonNull LayoutInflater inflater, @NonNull ViewGroup parent) {
        View root = inflater.inflate(R.layout.item_category, parent, false);
        return new ViewHolder(root);
    }


    @Override protected void onBindViewHolder(
            @NonNull ViewHolder holder, @NonNull Category category) {

    }


    static class ViewHolder extends RecyclerView.ViewHolder {

        ViewHolder(View itemView) {
            super(itemView);
        }
    }
}

Thanks