Is possible in Android to findView by String Id?
I add some rows in table programmatically and in next iteration need to remove some of them and I have List id ( "tblRow_1", "tblRow_3" ..}). Can I retrieve by ids from the list?
Is possible in Android to findView by String Id?
I add some rows in table programmatically and in next iteration need to remove some of them and I have List id ( "tblRow_1", "tblRow_3" ..}). Can I retrieve by ids from the list?
You can use
Resources.getIdentifier()
for this.Use
getResources().getIdentifier()
to retrieve the actual integer resource ID.example