pat wrote:
> Hi there,
> 
> To show the camera preview, I created my own extension of the
> SurfaceView class. I embeded this class in my UI by using the layout
> xml files. The preview will not fit the whole screen, only parts of
> it.
> 
> Now, I would like to overlay the preview image with some extra
> information (small icons, text,...). I would prefer to add a TextView
> as a child to my SurfaceView class. But I was not able yet to figure
> out how I this could be done and if it is even possible.
> 
> Do you have any suggesstions? Maybe an alternative approach?

Try perhaps putting the SurfaceView in a FrameLayout and making your
TextView be inside that same FrameLayout. If the TextView appears in the
list after the SurfaceView, it will have a higher Z order and,
therefore, should appear on top.

Note that I have not tried this. Further note that this may reduce the
frame rate at which the SurfaceView gets updated, though I am not
certain if the SurfaceView rendering or the camera is the limiting
factor on frame rate.

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

Android Development Wiki: http://wiki.andmob.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to