Eclipse plugin for automatic generation of Android code from XML layout extended


There is new plugin available, please see Android Code Generator Plugin for Eclipse


    Eclipse Plugin for automatic android code generation has been extended, the release version is 1.2.0. Repository(Mercurial) with this project to clone is available on, you can download the plugin directly from /downloads/list.
    There are two versions of plugin available: .zip and .jar, with instruction how to used them.


    From the development point of view project structure has changed.

  • pom.xml file was edited so plugin could be generated independent of any IDE, just by running mvn package.
  • Project is now split into two modules:

    One module is responsible for plugin, the other for unit tests.

  • Utit test has been written to test most important part of the system.

New features

    1. Allowing plugin to be executed only on .xml files(do not show menu option otherwise)
    2. Allowing plugin to be invoked on multiple files
    3. Logging operations during plugin execution (could be seen in eclipse ‚Error Log’ – Windows -> Show View -> Error Log)
    4. Adding new property ‚Allow automatic type recognition’, that could be set in plugin preferences.
        This option allows automatic type recognition during selected resource parsing e.g.:


        In this case type will be recognized and following class will be generated:

        private ViewPager pager;
        	public void onCreate(Bundle savedInstanceState) {
        		pager = (ViewPager) findViewById(;
    5. Simplifying parsing of file types.xml
      • Now also following entries are accepted:

        	<type name="ListView" package="android.widget" />
        	<type name="android.widget.Button" />

        As you can see, package attribute is no longer required.

More on the project you can see on google.code, and also in my previous post: Eclipse plugin for automatic generation of Android code from XML layout file.



Wprowadź swoje dane lub kliknij jedną z tych ikon, aby się zalogować:


Komentujesz korzystając z konta Wyloguj /  Zmień )

Zdjęcie na Google+

Komentujesz korzystając z konta Google+. Wyloguj /  Zmień )

Zdjęcie z Twittera

Komentujesz korzystając z konta Twitter. Wyloguj /  Zmień )

Zdjęcie na Facebooku

Komentujesz korzystając z konta Facebook. Wyloguj /  Zmień )


Connecting to %s