I also have this problem, and I can think of two possible workarounds:
- load all the rows and their names into a table and see Table.
- Or, run my complete list of names, getting a string resource for each, and comparing it with my famous string resource.
I am implementing the second one, since my list of string resources is not very large, and I do not need to do this operation very often. Once the name is known, you can get the resource identifier through:
//Get resource id from name var resourceId = (int) typeof (MyApp_droid.Resource.String).GetField(MyStringName).GetValue(null);
(C # code because I work in Xamarin).
source share