Mark Murphy wrote:
> manoj wrote:
>> Another thing I noticed is that, the image is showed because I
>> commented the
>>
>> //mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
>>
>> if I remove comments, then I am getting exceptions.
>>
>> How to handle it. Please help me.
> 
> You probably do not want your ImageView *on* the SurfaceView. You
> probably want your ImageView *above* the SurfaceView.
> 
> For example:
> 
> http://github.com/commonsguy/vidtry/tree/master
> 
> Here I have a SurfaceView for video playback, and based on touch events
> I have all sorts of controls appearing on top of it: buttons, progress
> bars, AutoCompleteTextViews, etc.
> 
> Wrap your SurfaceView in a RelativeLayout, and put your ImageView in the
> same RelativeLayout *after* the SurfaceView (and with appropriate layout
> attributes to position it properly on screen). The ImageView will be
> "higher on the Z axis", meaning it will appear to be on top of the video.

I should point out that this will slow down the SurfaceView. I do not
know how that will impact the actual act of recording video. Unless your
business model depends on the logo being there, I'd recommend you skip it.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books.html

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to