surfaceview
access global EditText inside a SurfaceView
The main activity is launched with a layout that includes a EditText and 开发者_StackOverflowa custom SurfaceView. Inside the SurfaceView class, how can I access the global EditText object? For exampl[详细]
2023-03-08 05:48 分类:问答How to paste stuff over a camera preview on Android?
I am making the classic AR app for Android. I am using a SurfaceView to show the camera. I want to know, how I put things over it... Currently I am using widgets, but they have two issues:[详细]
2023-03-07 13:17 分类:问答Drawing scaled bitmaps on a SurfaceView -- no antialiasing
I\'m sorry if this topic has been brought before, but all my searches on the web and google groups did not help me.[详细]
2023-03-07 08:12 分类:问答Wordwrapping in a surfaceView
I have a surfaceView which I want to respond to any touch on it with its onTouch() method. However, I would also like to display a significant amount of text on the screen. There may be a significant[详细]
2023-03-07 02:19 分类:问答Why is lockCanvas() slow?
I\'m implementing a SurfaceView subclass, where I run a separate thread to draw onto a SurfaceHolders Canvas.[详细]
2023-03-06 15:57 分类:问答Set the Background Image of a SurfaceView
Is there a way to set the background image of a SurfaceView? Does it have to be done in xml or can I do it all in Java - I\'ve got something that looks like this in my constru开发者_开发百科ctor:[详细]
2023-03-05 16:46 分类:问答Problem ending my game (UI Thread won't let me open a new Activity)
I\'m having trouble tying off my program (ending it up). I have a SurfaceView in an Activity, and in that SurfaceView when you lose three lives the game is supposed to end. I have tried opening up a n[详细]
2023-03-05 11:39 分类:问答Activity force closes
I am currently starting an activity from within a SurfaceView. The Activity starts up fine (displays an EditText and a button inside a LinearLayout). However, it force closes. It is giving me errors s[详细]
2023-03-05 03:35 分类:问答how can using shared preferences string values in surface view class in Android
i am implementing one game application in this application i am using shared preferences in preferences Activity[详细]
2023-03-05 02:54 分类:问答Stopping surface view from rotating when displaying camera preview
I have a surface view displaying a camera preview which looks good in landscape mode, but when I rotate my phone to portrait the surface view rotates and the camera preview is on its side which looks[详细]
2023-03-04 18:22 分类:问答