GithubHelp home page GithubHelp logo

androidviewgenerator's Introduction

AndroidViewGenerator

ButterKnife这样强大的注解库出来之后,使用注解进行UI开发已经非常普遍。但考虑到效率、学习成本等问题,findViewById方式仍然是不错的选择。

本项目针对日常开发中遇到的UI相关的繁琐操作进行自动化实现,降低开发者在这方面所需要的精力。

###主要功能

  1. 支持为Activity、Fragment以及任意类(比如自定义View)从Layout文件生成View实例并初始化;
  2. 支持为Adapter生成ViewHolder模板;
  3. 支持为View添加监听;
  4. 支持增量式修改(考虑到实例化的View会被使用,因此不支持View删除);

###演示 AndroidViewGenerator演示 加载不出来的可以看这个 链接

###安装

  1. 这里下载,选择Android Studio -> Preferences -> Plugins -> Install plugin from disk... -> 选择下载的jar包 -> 点击OK,重启即可;
  2. 选择Android Studio -> Preferences -> Plugins -> Browse repositories... -> 搜索 "Android View Generator",安装即可。

#TODO

  1. 变量、实例化增量式修改; —— Done
  2. 监听、View增加增量式修改;—— Done
  3. 支持ViewHolder的生成;—— Done

#感谢 本项目基于 android-butterknife-zelezny 改造。因此特别感谢:@Avast。

androidviewgenerator's People

Contributors

qianyuebits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

androidviewgenerator's Issues

无法使用该插件

在plugins的repo里没有搜索到AndroidViewGenerator,只有Android Code Generator.
下载了Jar包到本地,放到了C:\Users\HEcom.AndroidStudio2.0\config\plugins下。
然后Install from Disk...

加载不进来,提示:
Fail to load plugin descriptor from file AndroidViewGenerator.jar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.