On Sun, Apr 4, 2010 at 11:28 PM, Sebastián Treu <sebastian.t...@gmail.com>wrote:
> I just hate to hardcode things and lost genericity. I will made 1 activity > for each thing despite of the do similar works... > Just because you can't pass around an ImageButton with intents, doesn't mean you have to hard code anything. If you managed to pass the ImageButton around you would still have to add code to place it in a layout, which would arguably be more work than having the ImageButton already there via a layout and just setting it's image. And don't forget you can reuse the same layout across multiple activities if you wish, and you can include layouts within other layouts, allowing you to re-use and build upon your existing layouts. No hard-coding or duplication necessary. ------------------------------------------------------------------------------------------------- TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe, reply using "remove me" as the subject.