I'm trying to generate random ids for views as shown in following screenshot. But it didn't work. It got null. How should I findViewById ?
use textView.setId(View.generateViewId()) introduced in API 17.
textView.setId(View.generateViewId())