<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/white"
    android:orientation="vertical" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@android:color/darker_gray"
        android:gravity="center|right" >

        <Button
            android:id="@+id/buttonClose"
            android:layout_width="20dip"
            android:layout_height="20dip"
            android:background="@drawable/close_small_button"
            android:minHeight="20dip"
            android:minWidth="20dip" />

    </LinearLayout>

    <ImageView
        android:id="@+id/canvasProfileView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</LinearLayout>

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/FrameLayout1"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/white" >

    <ImageView
        android:id="@+id/canvasProfileView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center|right" >

        <Button
            android:id="@+id/buttonClose"
            android:layout_width="20dip"
            android:layout_height="20dip"
            android:background="@drawable/close_small_button"
            android:minHeight="20dip"
            android:minWidth="20dip" />
    </LinearLayout>

</FrameLayout>

Change CanvasProfileActivity layout. (use FrameLayout)
Change CanvasProfileActivity layout. (use FrameLayout)
