Hi

I am wondering if you know the name of something how do you find the id
number?

TextView lblToday = FindViewById<TextView>(Resource.Id.lblToday);

above is how you normally do it. But I am wondering how could I do something
like

TextView lblToday = FindViewById<TextView>("lblToday");

I think this is what I need

http://stackoverflow.com/questions/3042961/how-can-i-get-the-resource-id-of-an-image-if-i-know-its-name

but I don't see getResources();



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/How-to-get-id-by-name-instead-of-passing-in-number-tp4687675p4687675.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to