Question: The code below resides in an activity with a context menu. myViews is a list of 4 View objects. Suppose the user activates the context
The code below resides in an activity with a context menu. myViews is a list of View objects. Suppose the user activates the context menu for myViews What is x assigned?
override
fun
onCreate
savedInstanceState
:
Bundle
for
i
in
until
registerForContextMenu
myViews
i
;
myViews
i
tag
i
@Override
override
fun
onCreateContextMenu
menu
:
ContextMenu
v
:
View
menuInfo
:
ContextMenuInfo
val
x
v
tag
as
Int
Question options:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
