I am trying to create an ImageView in a Fragment which will refer to the ImageView element which I have created in the XML for the Fragment. However, the findViewById<
findViewById<
getView() will give the root view
getView()
View v = getView().findViewByID(R.id.x);