Some other users and I are developing an Android application for the Stack Exchange chat network. We add a tutorial for each action to explain the user interface to the user. However, we ran into a road block.
The textbook library requires a pointer to the view (whether it TextView
’s ImageView
, whatever) to get the coordinates of the view on the display so that it knows where to draw shadows and more.
We have one action that uses the standard "Tabbed Activity" from Android Studio, so we do not use any custom toolbars .
The action bar looks like this:

And we want to grab a pointer on TextView
each tab that contains the bookmark title.
So, for example, we want to have access to this TextView
:

We were unable to find anything on the Internet on how to do this. It seems relatively easy if you use a custom toolbar , but we do not .
Digging through the AOSP source code, we found a potential way to do this, but the fields we needed access to were either private
either or inaccessible from the main operation code.
So the question is, how can we grab a pointer to this TextView
? Is it possible?
source
share