Top "Surfaceview" questions

SurfaceView is a widget on the Android platform which provides a dedicated drawing surface.

How to have a transparent ImageButton: Android

<ImageButton android:id="@+id/previous" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/media_…

android transparent imagebutton surfaceview
How to set Android camera orientation properly?

I want to set the camera orientation according to the device orientation in Android but nothing seems to be working. …

android camera orientation surfaceview
Android, canvas: How do I clear (delete contents of) a canvas (= bitmaps), living in a surfaceView?

In order to make a simple game, I used a template that draws a canvas with bitmaps like this: private …

android android-canvas surfaceview
Error inflating when extending a class

I'm trying to create a custom view GhostSurfaceCameraView that extends SurfaceView. Here's my class definition file GhostSurfaceCameraView.java: public class …

java android xml class surfaceview
Android Camera Preview Stretched

I've been working on making my custom camera activity on Android, but when rotating the camera, the aspect ratio of …

android android-camera surfaceview preview aspect-ratio
How to draw an overlay on a SurfaceView used by Camera on Android?

I have a simple program that draws the preview of the Camera into a SurfaceView. What I'm trying to do …

android camera surfaceview
Camera Tutorial for Android (using surfaceview)

Here is my example code: package newslab.video.server; import android.app.Activity; import android.hardware.Camera; import android.os.…

android surfaceview
Fragments - The specified child already has a parent. You must call removeView() on the child's parent first

I am getting this error. I tried many solutions but I coudn't solve this. Help me! I need to add …

android android-fragments surfaceview
Android Camera will not work. startPreview fails

I'm getting these errors from LogCat: 10-30 00:31:51.494: D/CameraHal(1205): CameraHal setOverlay/1/00000000/00000000 10-30 00:31:51.494: E/CameraHal(1205): Trying to set overlay, but overlay …

java android surfaceview android-camera surfaceholder
how to make surfaceview transparent

Hello all i want to make my DrawingSurface view transparent. i tried many thing but it's not working. Here is …

android surfaceview