How to wrap the content of a SurfaceView?
I have surfaceView class that is modeled after [this][1], I populated it with 6 bitmaps. Is there a way to wrap the surfaceView around the bitmaps, instead of it covering the entire screen.

I have try this in my xml file:

    <LinearLayout
       xmlns:android="http://schemas.android.com/apk/res/android"
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"
       android:orientation="horizontal">
    
   		<com.android.customclasses.Panel
   			android:layout_height="wrap_content"
   			android:layout_width="wrap_content">
   		</com.android.customclasses.Panel>
    
    </LinearLayout>

but this does not work. it just fill the parent.

Thanks.


  [1]: http://www.droidnova.com/playing-with-graphics-in-android-part-iv,182.html
How to wrap the content of a SurfaceView?
===

I have surfaceView class that is modeled after [this][1], I populated it with 6 bitmaps. Is there a way to wrap the surfaceView around the bitmaps, instead of it covering the entire screen.

I have try this in my xml file:

    <LinearLayout
       xmlns:android="http://schemas.android.com/apk/res/android"
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"
       android:orientation="horizontal">
    
   		<com.android.customclasses.Panel
   			android:layout_height="wrap_content"
   			android:layout_width="wrap_content">
   		</com.android.customclasses.Panel>
    
    </LinearLayout>

but this does not work. it just fill the parent.

Thanks.


  [1]: http://www.droidnova.com/playing-with-graphics-in-android-part-iv,182.html