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
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
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
@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
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
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
6 matches
Mail list logo