proteus generates display identifiers at runtime, unlike identifiers intgenerated at compile time for Android XML layouts. Unlike Android, view identifiers created by proteus are based on String, and R.id.<something>will not work.
Proteus provides utilities for finding the Stringid type .
Markup:
{
"type": "TextView",
"id": "myId"
}
Java:
View view = proteusView.getViewManager().findViewById("myId"); // can be null
The returned view may also be ProteusView
See the wiki for more details .
Wikis are a bit outdated, the answer is higher for 5.0.0-rc11release and higher. Wiki should be updated soon.
vader source
share