Re: [android-developers] Some confusion on resource IDs

2010-08-25 Thread Lidia G
Subject: [android-developers] Some confusion on resource IDs To: Android Developers android-developers@googlegroups.com Date: Tuesday, August 24, 2010, 9:06 PM I'm just getting into developing my app, which will have quite a number of activities and thus quite a few XML files to lay out

Re: [android-developers] Some confusion on resource IDs

2010-08-25 Thread Kostya Vasilyev
25.08.2010 12:38, Lidia G ?: I want to create somehow R.drawable.flag by appending the country extension de . String countryFlag=flag_+mySource.countryExtension ; //something like flag_DE countryFlag=countryFlag.toLowerCase(); // =flag_de

Re: [android-developers] Some confusion on resource IDs

2010-08-25 Thread Mark Murphy
The reflection approach is wrapped up in getResources().getIdentifier(). Be sure to cache your results, as this is not fast. On Wed, Aug 25, 2010 at 4:42 AM, Kostya Vasilyev kmans...@gmail.com wrote: 25.08.2010 12:38, Lidia G пишет: I want to create somehow R.drawable.flag by appending the

Re: [android-developers] Some confusion on resource IDs

2010-08-25 Thread Franklin Masao
@googlegroups.com Sent: Wed, August 25, 2010 5:42:51 AM Subject: Re: [android-developers] Some confusion on resource IDs 25.08.2010 12:38, Lidia G пишет: I want to create somehow R.drawable.flag by appending the country extension de . String countryFlag=flag_+mySource.countryExtension ; //something

[android-developers] Some confusion on resource IDs

2010-08-24 Thread Doug Gordon
I'm just getting into developing my app, which will have quite a number of activities and thus quite a few XML files to lay out the screens and define all the views. What I'm just seeing is that if I assign the IDs using @+id/name, I'll have to have a unique name for every widget on every screen

Re: [android-developers] Some confusion on resource IDs

2010-08-24 Thread Mark Murphy
On Tue, Aug 24, 2010 at 5:06 PM, Doug Gordon gordo...@gmail.com wrote: I'm just getting into developing my app, which will have quite a number of activities and thus quite a few XML files to lay out the screens and define all the views. What I'm just seeing is that if I assign the IDs using