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 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 "@+id/name", I'll
e ?
Thank you
Lidy
--- On Tue, 8/24/10, Doug Gordon wrote:
From: Doug Gordon
Subject: [android-developers] Some confusion on resource IDs
To: "Android Developers"
Date: Tuesday, August 24, 2010, 9:06 PM
I'm just getting into developing my app, which will have quite a
number of
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
flag.setBa
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 wrote:
> 25.08.2010 12:38, Lidia G пишет:
>
> I want to create somehow "R.drawable.flag" by appending the country
> extensi
groups.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_&quo
6 matches
Mail list logo