can anyone tell me if a class extends view than how can i can i call xml in it to show buttons at bottom of image
<p><strong>THis is My MainActivity which Activity</strong> </p>

<pre><code>public class MainActvity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(new BitmapView(this));
}
</code></pre>

<p><strong>I have To show an Xml File having some buttons at bottom of this image</strong></p>

<pre><code>class BitmapView extends View {
    public BitmapView(Context context) {
        super(context);``
    }

    @Override
    public void onDraw(Canvas canvas) {
        Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.icon);
        canvas.drawColor(Color.BLACK);
        canvas.drawBitmap(bmp, 10, 10, null);
    }
}
</code></pre>

<p>}</p>
