Android Programming Press on the image to return to the main documentation page.

GameView

List of types:

BitmapData
GameView

BitmapData


Events:

None

Members:


  Bitmap As BitmapWrapper

  Delete As Boolean

  DestRect As RectWrapper

  Flip As Int

  FLIP_BOTH As Int

  FLIP_HORIZONTALLY As Int

  FLIP_NONE As Int

  FLIP_VERTICALLY As Int

  Rotate As Int

  SrcRect As RectWrapper

Members description:

Bitmap As BitmapWrapper
The bitmap that will be drawn.
Delete As Boolean
If Delete is True then the BitmapData will be removed from the list when GameView is redrawn.
DestRect As RectWrapper
The target rectangle. Determines the location and size of the drawn bitmap.
Flip As Int
Flips the bitmap based on one of the FLIP constants.
FLIP_BOTH As Int
FLIP_HORIZONTALLY As Int
FLIP_NONE As Int
FLIP_VERTICALLY As Int
Rotate As Int
Number of degrees to rotate the bitmap.
SrcRect As RectWrapper
The source rectangle. Determines the bitmap's region that will be drawn. The complete bitmap will
be drawn if the rectangle is uninitialized.

GameView

A view that draws itself with hardware accelerated graphics. Suitable for 2d games.
See this tutorial.
The hardware acceleration method used is only available in Android 3.0 and above (API level 11 and above).
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

Touch (Action As Int, X As Float, Y As Float)

Members:


  Background As android.graphics.drawable.Drawable

  BitmapsData As List [read only]

  BringToFront

  Color As Int [write only]

  Enabled As Boolean

  Height As Int

  Initialize (arg1 As String)

  Invalidate

  Invalidate2 (arg0 As android.graphics.Rect)

  Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  IsHardwareAccelerated As Boolean [read only]

  IsInitialized As Boolean

  Left As Int

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  Tag As Object

  Top As Int

  Visible As Boolean

  Width As Int

Members description:

Background As android.graphics.drawable.Drawable
BitmapsData As List [read only]
Returns the list of BitmapData objects.
BringToFront
Color As Int [write only]
Enabled As Boolean
Height As Int
Initialize (arg1 As String)
Invalidate
Invalidate2 (arg0 As android.graphics.Rect)
Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
IsHardwareAccelerated As Boolean [read only]
Tests whether hardware acceleration is supported.
IsInitialized As Boolean
Left As Int
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
Tag As Object
Top As Int
Visible As Boolean
Width As Int

Top