I have an activity MyActivity that extends from MapActivity. In the .xml file containing the layout I can only include the MapView
Another way to do this is:
// inflate the layout View myLayout = LayoutInflater.from(this).inflate(R.layout.MY_LAYOUT,null); // load the text view TextView myView = (TextView) myLayout.findViewById(R.id.MY_VIEW);