GithubHelp home page GithubHelp logo

android-codegenerator-plugin-intellij's Introduction

Android Arsenal

Android Studio/IntelliJ IDEA Plugin for Android code generation

Plugin for generation of Android code from XML files (layouts, menus).

For more information please see the website

Or see the plugin in jetbrains repository.

Core Library

This plugin is based on a library: android-codegenerator-library. The library is responsible for:

  • extracting important information from XML files
  • generating Java code based on extracted information and templates

JetBrains Repository

You can install plugin from repository: Preferences/Settings->Plugins->Browse repositories... Then type in search: Android code Generator

Download & Installation

All available versions of plugin are in releases You can download zip file from latest release and install it manually in:
Preferences/Settings->Plugins->Install plugin from disk

Change notes

Version 1.6

  • ISSUE #11: Add Butter Knife support.

Version 1.5

  • ISSUE #19: Code generation dialog box is out of the screen!
  • ISSUE #13: Change Plugin name

Version 1.4

  • ISSUE #7: Android Studio throwing error when Android Designer editor is open.
  • ISSUE #8: Source path's on windows are too long.
  • ISSUE #9: Error when creating file on windows .
  • ISSUE #10: Adding github.io page link to Plugin description.

Version 1.3

  • Support for IntelliJ IDEA 14.

Version 1.2

  • ISSUE #2: Templates should be editable in PreferencesPages.
  • ISSUE #6: When plugin is about to override existing file content user should be informed.
  • ISSUE #5: Source path should be retrieved from project and there should be combo instead of text field.

Version 1.1

  • ISSUE #1: Editor should pops up when creating file.
  • ISSUE #3: Source path should be saved in persistence store.
  • ISSUE #4: Generate Code Menu Options should be available through editor.

Version 1.0

  • generating Activity Class code from layout
  • generating Fragment Class code from layout
  • generating Adapter Class code from item layout
  • generating Menu code from menu xml
  • creating files from code
  • preview screen with generated code that can be modified before creation of file
  • detection of project package

Developed By

Tomasz Morcinek - http://morcinek.co.uk

Follow me on Google+ Follow me on LinkedIn Checkout my Applications in Google Play

License

Copyright 2014 Tomasz Morcinek.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

android-codegenerator-plugin-intellij's People

Contributors

tmorcinek 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-codegenerator-plugin-intellij's Issues

Feature to edit ButterKnife Template

Right now I can edit the non-butterknife based templates in the settings. It would great if butterknife templates are also added to list of editable templates in the settings.

Add RecyclerAdapter

Hi,

please add to your lib RecyclerAdapter (plus variant with ButterKnife).

I know, that I can edit Adapter in Settings, but when you need use both, it's not much comfortable :)

Thanks :)

Naming fields reorder

Hi,

i have a suggestion for an enhancement. Could you add a feature to name fields in reverse order of words from names in XML?

For example, if a field in XML is called activity_login_button_check to name it in code checkButtonLoginActivity?

3Q

this is good job

Rework generation from template.

  • Ability to change fileName (The generated file does not correct after i edited the name in preview window #22)
  • Ability to declare new ${TEMPLATE_VALUE}

Android Code Generator' is compatible with IntelliJ IDEA only because it doesn't define any explicit module dependencies

After i upgrade my android studio to version Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 19, 2022
Runtime version: 11.0.12+7-b1504.28-7817840 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
it just tell "Plugin error: Plugin 'Android Code Generator' is compatible with IntelliJ IDEA only because it doesn't define any explicit module dependencies"
i can't use the plugin anymore wishing your help thks

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.