Nanard wrote: > I'd like to have code sample (xml & java) of how I can overlay buttons > (any view) into a camera video preview. > Of course I'd like real Buttons : no bitmap of the button over a > video. > I need to keep the clicked event, button pressed/up functionality, etc > > Where can I find such Tutorial ?
A camera preview is a SurfaceView. I have sample code showing pop-up panels, including buttons, over a SurfaceView used for video playback here: https://github.com/commonsguy/vidtry/tree The same techniques should work: use a layered layout like RelativeLayout, and put the SurfaceView as the first widget in the layout (or at least before anything that should appear on top of it). I have a bit more coverage of this Version 1.1 of my Advanced Android book: http://commonsware.com/AdvAndroid/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

