【发布时间】:2016-10-01 20:40:52
【问题描述】:
我正在尝试动态查找 textView 的资源 ID。我需要它根据输入的每个名称在布局中找到每个 TextView。
这是我所得到的:
String test = "t12";
//Just an idea I had on how to get it.Doesnt work
var r = (TextView)test;
TextView t = FindViewById <TextView>(Resource.Id.r);
任何帮助将不胜感激... :)
【问题讨论】:
-
将您的编辑添加为答案并接受它。
标签: c# android xamarin xamarin.android xamarin-studio