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
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.