Add this URL to your Eclipse Installation to reach this solution's update site.
Please expand on it @ https://github.com/Yinten/AndroidRadTools and check in and
Right click an android XML layout, go to Fast Layout -> Generate Activity. It'll generate those tedious findViewById declarations. For the layout below, it produces:
private EditText addmanualname;
private EditText addmanualnumber;
private EditText addmanualemail;
private EditText addmanualmessage;
private EditText addmanualaddress;
private Button addmanualcontinueButton;
private Button addmanualbackButton;
addmanualname = (EditText) findViewById(R.id.addmanualname);
addmanualnumber = (EditText) findViewById(R.id.addmanualnumber);
addmanualemail = (EditText) findViewById(R.id.addmanualemail);
addmanualmessage = (EditText) findViewById(R.id.addmanualmessage);
addmanualaddress = (EditText) findViewById(R.id.addmanualaddress);
addmanualcontinueButton = (Button) findViewById(R.id.addmanualcontinueButton);
addmanualbackButton = (Button) findViewById(R.id.addmanualbackButton);
<?xml version="1.0" encoding="utf-8"?>
Unsuccessful Installs in the last 7 Days: 0
By adding the following code below to your website you will be able to add an install button for Lazy Android.HTML Code:
Submitted by jim vell on Thu, 2015-11-05 05:52
Hi. Just came across this. (havnt been active lately) but this is a handy, quick/dirty way to generate code on the go...
How about adding support for event handlers per resid var generated, but in a more robust way.
which ever res is generated attach an option beside it so developer can select which event listener to attach to this res view.
(Optional) Present this option as a Dialog in Preview mode before code is generated
This way (while coding) we wont need to do this manually ourselves.
Another macro addition would serve for quicker code generation less extra time spent to attach the listener to the generated view.
Submitted by Marco Schmitz on Thu, 2012-10-11 05:15
I'd like to install this one, but I am stuck with the error
Unable to read repository at [LazyAndroidUpdateSite].
[LazyAndroidUpdateSite] is not a valid repository location.
Submitted by Ryan Mattison on Thu, 2014-03-27 03:30
Updated, nothing has changed --- can use on all eclipse versions & download again.
Submitted by Justin Buser on Tue, 2012-06-26 23:06
I didn't actually install or try it but I did watch the demonstration video. I prefer to do most of my layouts programmatic-ally but I do occasionally use xml layouts. Not really often enough where something like this would be useful for me but it did make me think about it a bit. I think if you were able to alter it a bit so someone would right click on a layout and click generate activity and then have the standard create class / package dialog pop up it would be pretty handy. Basically it would be just like creating a new class, except after you picked the name/package you would end up with a new activity class preloaded with your variables / oncreate function / listeners for buttons / lists / etc... You could even have it generate custom view instances per each internal layout...
Anyway, it's a good start, I'll be keeping an eye on your progress...
Submitted by Ryan Winsauer on Sat, 2012-06-09 08:18
Thanks for spending your time on this and sharing it with the community.
Submitted by Gareth Murfin on Fri, 2012-05-25 10:08
Thanks for this amazing plugin, it removes a HUGE HUGE amount of tedium from android coding, good work Ive just saved myself tons of time!
Submitted by Tomas Prochazka on Sat, 2011-10-15 05:43
Great plugin! More like this.
I only would prefer call it directly from code, like quick action (like "Generate toString()") if cursor will be on layout reference or open dialog with layout search.
Submitted by Ryan Mattison on Thu, 2014-03-27 03:31
I just got back into it a little bit, but source is here if you have ideas to add.
Submitted by Ryan Mattison on Tue, 2011-12-06 07:37
Thanks a ton for the positive feedback by the way! I felt like I saved a chunk of people a fair amount of time, and you're the ONLY response or feedback I've had thus far! I've added a # of changes that impact development for rapid developers and help avoid repetitive injuries, I'm waiting for a few more comments or for people to check into the source control branch. I've had about 10 people rip it off and blog about it, 0 check in anything to the source control branch. Makes me feel like open source development is a joke.
Submitted by Ryan Mattison on Sun, 2011-11-20 17:50
I'd love to do a lot more with it. Not as much time as I would like. The source code is open on my blog if you'd like to add more shortcuts to it, please check them in and i'll update the tool =).
Back to the top