GameView canvas within xml layout below
<p>I am new to both Java ad Android development and am trying to add a xml layout underneath my canvas and having looked a few different options and cannot quite seem to work it out.</p>

<p>I currently have a class which calls the second GameView class. Essentially within the Gameview I am after the following:</p>

<p>The canvas to start from the top spreading the width of he screen(portrait mode only) with the height the same as the width making a square. Then underneath this canvas, I would require 5 textviews on the left hand side and 1 image on the right to spread and use all the remaining space.</p>

<p>Please see my current code below:</p>

<pre><code>// The Class that calls the GameView
public class Game extends Activity 
{
    @Override
    public void onCreate(Bundle bundle) 
    {
        super.onCreate(bundle);
        Intent intent = getIntent();
        Bundle extras = intent.getExtras();
        this.maze = (Maze)getLastNonConfigurationInstance();
        if(this.maze == null) 
        {
            this.maze = (Maze)extras.get("maze");
        }

        getMazeDetails();
        GameView view = new GameView(this);
        view.setMaze(this.maze);
        setContentView(view);
    }
}

// The GameView class
public class GameView extends View 
{
    // various methods calling various information
    public GameView(Context context) 
    {
        super(context);
        GameView.context = context;
    }

    @Override
    protected void onDraw(Canvas canvas) 
    {
        // This creates the square canvas from the top of the phone
        canvas.drawRect(0, 0, width, height, background);

        // Currently the code I am using to put information below the top canvas (this is where I want to add the xml layout)
        Rect RectInfoBackground = new Rect();
        RectInfoBackground.set(0, height, FullScreenWidth, FullScreenHeight);
        canvas.drawBitmap(Infobackground, null, RectInfoBackground, null);
    }
}
</code></pre>

<p>Please could you help me to understand how I can add the xml layout into my GameView. I am thinking that my xml would need to a Surface view to allow me to add the canvas. Then with all the remaining space below would have a few TextViews and 1 image. </p>

<p>Thanks</p>
