Is it possible to detect every pixel being touched? More specifically, when the user touches the screen, is it possible to track all the x-y coordinates of the cluster of po
If you're looking for a way to get your content view as a View after Activity#setContentView(int)
, then you can set an id on the outer-most element of your layout:
android:id="@+id/entire_view"
and reference it in your onCreate()
method after setContentView
:
View view = getViewById(R.id.entire_view);
view.setOnTouchListener( ... );