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:

```
@Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        super.onCreateView(inflater, container, savedInstanceState);

        final View c = inflater.inflate(R.layout.activity_source, container, false);

        ImageView view = (ImageView) getView().findViewById(R.id.ImageView3);
        view.setOnTouchListener(this);

        return c;

    }

```

But although I thought it would work it cannot resolve 'ImageView3'