surfaceview
Switch Between views in FrameLayout
How do you swit开发者_如何转开发ch between views in a FrameLayout? For example, I have one SurfaceView in my FrameLayout and I want it to display a DialogBox when the game is over to receive user text[详细]
2023-03-04 05:10 分类:问答UIThread is causing problems when I want to open a new Activity
I have a SurfaceView in an Activity, and I want to open up a new Activity when something occurs in the SurfaceView(when you run out of lives - lives == 0). I\'ve tried different things, but I keep hav[详细]
2023-03-04 04:09 分类:问答Android: Admob integration
I\'m trying to integrate an admob banner into my Android game. I have a somewhat special case as my game screen is handled by a custom class that extends SurfaceView. I implemented the code from this[详细]
2023-03-03 23:40 分类:问答surfaceCreated is not called
I\'m trying to put a camera preview (SurfaceView) together with a button on the display, but all I get is a blank screen only showing the button. If I\'m setting the SurfaceView as the only content (w[详细]
2023-03-03 23:19 分类:问答Switch Between views in FrameLayout from a child view
I currently havea SurfaceView (named BoardView) that is being stored in a FrameLayout. There is another LinearLayout (l1) that is stored in this FrameLayout(f1) which contains an EditText. I want to b[详细]
2023-03-03 14:14 分类:问答Dialog Box to get user text input on SurfaceView
I am wondering how I can get user input at the end of a game I am programming. Basically, when you lose three lives, I want to stop the game (stop all threads) and then display some sort of dialog box[详细]
2023-03-03 09:52 分类:问答Android:How to add a button in surface view
I\'m drawing some graphics and i would like to add a couple of buttons to it. But with the surface view how do we add these buttons programa开发者_开发百科tically ?Enclose your surfaceView with a Fram[详细]
2023-03-01 01:59 分类:问答How to alternate between startService() and stopService() using onClick?
How do i alternate between this two intents on a surfaceview and create the sort of graphical effect seen in youtube during start/pause when recording a video?[详细]
2023-03-01 00:07 分类:问答How to properly use setZOrderMediaOverlay on Android?
Like many others, I am trying to draw 3D objects (using GLSurfaceView) on camera preview (using SurfaceView), along with some buttons placed on top. I actually got a prototype working, but I could not[详细]
2023-02-28 07:47 分类:问答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 void doDraw(Canvas canvas) {[详细]
2023-02-27 14:58 分类:问答