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

XtraViews

Written by Periklis Koutsogiannis (datasteam.com)

List of types:

CheatSheetView
DialogView
DialogViewButtonStyle
DialogViewDimensions
DialogViewLayout
DialogViewMessageStyle
DialogViewOptions
DialogViewPosition
DialogViewTitleStyle
LayoutView
MovieView
MovieViewControl
ToastView

CheatSheetView

Helper class for showing cheat sheets (tooltips) for icon-only UI elements on long-press. This is
already default platform behavior for icon-only {@link android.app.ActionBar} items and tabs.
This class provides this behavior for any other such UI element.

Based on the original action bar implementation in
ActionMenuItemView.java
.

Events:

None

Members:


  Remove (view As android.view.View)

  Setup (view As android.view.View, text As CharSequence)

Members description:

Remove (view As android.view.View)
Removes the cheat sheet for the given view by removing the view's {@link
android.view.View.OnLongClickListener}.
view: The view whose cheat sheet should be removed.
Setup (view As android.view.View, text As CharSequence)
Sets up a cheat sheet (tooltip) for the given view by setting its {@link
android.view.View.OnLongClickListener}. When the view is long-pressed, a {@link Toast} with
the given text will be shown either above (default) or below the view (if there isn't room
above it).
view: The view to add a cheat sheet for.
text: The text to show on long-press.

DialogView


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

Show
Dismiss (DialogResult as Int) as Boolean

Members:


  Dismiss (DialogResult As Int)

  LoadLayout (LayoutFile As String) As DialogViewLayout

  LoadLayoutMultiple (LayoutFilePotrait As String, LayoutFileLandscape As String, EventPrefix As String) As DialogViewLayout

  LoadLayoutWithEvent (LayoutFile As String, EventPrefix As String) As DialogViewLayout

  MsgBox (Title As String, Message As String, Positive As String, Negative As String, Cancel As String, Icon As android.graphics.Bitmap) As Int

  Name As String [read only]

  Options As DialogViewOptions

  Views As com.datasteam.b4a.xtraviews.DialogViewLayoutView [read only]

  Visible As Boolean [read only]

Members description:

Dismiss (DialogResult As Int)
LoadLayout (LayoutFile As String) As DialogViewLayout
LoadLayoutMultiple (LayoutFilePotrait As String, LayoutFileLandscape As String, EventPrefix As String) As DialogViewLayout
LoadLayoutWithEvent (LayoutFile As String, EventPrefix As String) As DialogViewLayout
MsgBox (Title As String, Message As String, Positive As String, Negative As String, Cancel As String, Icon As android.graphics.Bitmap) As Int
Name As String [read only]
Options As DialogViewOptions
Views As com.datasteam.b4a.xtraviews.DialogViewLayoutView [read only]
Visible As Boolean [read only]

DialogViewButtonStyle


Events:

None

Members:


  Drawable As android.graphics.drawable.Drawable

  Gravity As Int

  Set (Typeface As android.graphics.Typeface, TextColor As Int, TextSize As Int, Gravity As Int, Drawable As android.graphics.drawable.Drawable)

  TextColor As Int

  TextSize As Int

  Typeface As android.graphics.Typeface

Members description:

Drawable As android.graphics.drawable.Drawable
Gravity As Int
Set (Typeface As android.graphics.Typeface, TextColor As Int, TextSize As Int, Gravity As Int, Drawable As android.graphics.drawable.Drawable)
TextColor As Int
TextSize As Int
Typeface As android.graphics.Typeface

DialogViewDimensions


Events:

None

Members:


  Height As Int

  Mode As Int

  MODE_ANCHORS As Int

  MODE_STRETCH As Int

  MODE_STRETCH_TEXT As Int

  Set (Width As Int, Height As Int, Mode As Int)

  Width As Int

Members description:

Height As Int
Mode As Int
MODE_ANCHORS As Int
MODE_STRETCH As Int
MODE_STRETCH_TEXT As Int
Set (Width As Int, Height As Int, Mode As Int)
Width As Int

DialogViewLayout


Events:

None

Members:


  Show (Title As String, Positive As String, Negative As String, Cancel As String, Icon As android.graphics.Bitmap) As Int

  ShowDefault As Int

  ShowDefault2 (Title As String, Message As String) As Int

  ShowOk (Title As String, Positive As String) As Int

  ShowYesNo (Title As String, Positive As String, Negative As String) As Int

  ShowYesNoCancel (Title As String, Positive As String, Negative As String, Cancel As String) As Int

  Views As com.datasteam.b4a.xtraviews.DialogViewLayoutView [read only]

Members description:

Show (Title As String, Positive As String, Negative As String, Cancel As String, Icon As android.graphics.Bitmap) As Int
ShowDefault As Int
ShowDefault2 (Title As String, Message As String) As Int
ShowOk (Title As String, Positive As String) As Int
ShowYesNo (Title As String, Positive As String, Negative As String) As Int
ShowYesNoCancel (Title As String, Positive As String, Negative As String, Cancel As String) As Int
Views As com.datasteam.b4a.xtraviews.DialogViewLayoutView [read only]

DialogViewMessageStyle


Events:

None

Members:


  Drawable As android.graphics.drawable.Drawable

  Gravity As Int

  Set (Typeface As android.graphics.Typeface, TextColor As Int, TextSize As Int, Gravity As Int, Drawable As android.graphics.drawable.Drawable)

  TextColor As Int

  TextSize As Int

  Typeface As android.graphics.Typeface

Members description:

Drawable As android.graphics.drawable.Drawable
Gravity As Int
Set (Typeface As android.graphics.Typeface, TextColor As Int, TextSize As Int, Gravity As Int, Drawable As android.graphics.drawable.Drawable)
TextColor As Int
TextSize As Int
Typeface As android.graphics.Typeface

DialogViewOptions


Events:

None

Members:


  Animation As String

  Cancelable As Boolean

  CanceledOnTouchOutside As Boolean

  Dimensions As DialogViewDimensions

  Elements As com.datasteam.b4a.xtraviews.DialogViewOptions.DialogViewElements

  Gravity As Int

  Position As DialogViewPosition

  Set (Gravity As Int, X As Int, Y As Int, Width As Int, Height As Int, Animation As String, Cancelable As Boolean, CanceledOnTouchOutside As Boolean)

Members description:

Animation As String
Cancelable As Boolean
CanceledOnTouchOutside As Boolean
Dimensions As DialogViewDimensions
Elements As com.datasteam.b4a.xtraviews.DialogViewOptions.DialogViewElements
Gravity As Int
Position As DialogViewPosition
Set (Gravity As Int, X As Int, Y As Int, Width As Int, Height As Int, Animation As String, Cancelable As Boolean, CanceledOnTouchOutside As Boolean)

DialogViewPosition


Events:

None

Members:


  Set (X As Int, Y As Int)

  X As Int

  Y As Int

Members description:

Set (X As Int, Y As Int)
X As Int
Y As Int

DialogViewTitleStyle


Events:

None

Members:


  DividerColor As Int

  Drawable As android.graphics.drawable.Drawable

  Gravity As Int

  Set (Typeface As android.graphics.Typeface, TextColor As Int, TextSize As Int, Gravity As Int, Drawable As android.graphics.drawable.Drawable, DividerColor As Int)

  TextColor As Int

  TextSize As Int

  Typeface As android.graphics.Typeface

Members description:

DividerColor As Int
Drawable As android.graphics.drawable.Drawable
Gravity As Int
Set (Typeface As android.graphics.Typeface, TextColor As Int, TextSize As Int, Gravity As Int, Drawable As android.graphics.drawable.Drawable, DividerColor As Int)
TextColor As Int
TextSize As Int
Typeface As android.graphics.Typeface

LayoutView


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  AutoCompleteText (Name As String) As AutoCompleteEditTextWrapper

  Button (Name As String) As ButtonWrapper

  CheckBox (Name As String) As CheckBoxWrapper

  CustomView (Name As String) As Object

  EditText (Name As String) As EditTextWrapper

  Get (Name As String) As Object

  GetTranslation (id As String) As String

  GetTranslationDefault (id As String, DefaultValue As String) As String

  HorizontalScrollView (Name As String) As HorizontalScrollViewWrapper

  ImageView (Name As String) As ImageViewWrapper

  Label (Name As String) As LabelWrapper

  ListView (Name As String) As ListViewWrapper

  LoadLayout (LayoutFile As String) As LayoutValues

  LoadLayoutWithTitle (LayoutFile As String, Title As String) As LayoutValues

  Panel (Name As String) As PanelWrapper

  ProgressBar (Name As String) As ProgressBarWrapper

  RadioButton (Name As String) As RadioButtonWrapper

  ScrollView (Name As String) As ScrollViewWrapper

  SeekBar (Name As String) As SeekBarWrapper

  Spinner (Name As String) As SpinnerWrapper

  TabHost (Name As String) As TabHostWrapper

  ToggleButton (Name As String) As ToggleButtonWrapper

  WebView (Name As String) As WebViewWrapper

Members description:

AutoCompleteText (Name As String) As AutoCompleteEditTextWrapper
Button (Name As String) As ButtonWrapper
CheckBox (Name As String) As CheckBoxWrapper
CustomView (Name As String) As Object
EditText (Name As String) As EditTextWrapper
Get (Name As String) As Object
GetTranslation (id As String) As String
GetTranslationDefault (id As String, DefaultValue As String) As String
HorizontalScrollView (Name As String) As HorizontalScrollViewWrapper
ImageView (Name As String) As ImageViewWrapper
Label (Name As String) As LabelWrapper
ListView (Name As String) As ListViewWrapper
LoadLayout (LayoutFile As String) As LayoutValues
LoadLayoutWithTitle (LayoutFile As String, Title As String) As LayoutValues
Panel (Name As String) As PanelWrapper
ProgressBar (Name As String) As ProgressBarWrapper
RadioButton (Name As String) As RadioButtonWrapper
ScrollView (Name As String) As ScrollViewWrapper
SeekBar (Name As String) As SeekBarWrapper
Spinner (Name As String) As SpinnerWrapper
TabHost (Name As String) As TabHostWrapper
ToggleButton (Name As String) As ToggleButtonWrapper
WebView (Name As String) As WebViewWrapper

MovieView


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  Background As android.graphics.drawable.Drawable

  BringToFront

  Color As Int [write only]

  Enabled As Boolean

  Frame As Int

  Frames As Int [read only]

  Height As Int

  Initialize (EventName As String)

  innerInitialize (EventName As String, keepOldObject As Boolean)

  Invalidate

  Invalidate2 (arg0 As android.graphics.Rect)

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

  IsInitialized As Boolean

  Left As Int

  Load (PathName As String, FileName As String, Paused As Boolean)

  LoadFromInput (Stream As java.io.InputStream, Paused As Boolean)

  Paused As Boolean

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

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

  Stopped As Boolean

  Tag As Object

  Top As Int

  Unload

  Visible As Boolean

  Width As Int

Members description:

Background As android.graphics.drawable.Drawable
BringToFront
Color As Int [write only]
Enabled As Boolean
Frame As Int
Frames As Int [read only]
Height As Int
Initialize (EventName As String)
innerInitialize (EventName As String, keepOldObject As Boolean)
Invalidate
Invalidate2 (arg0 As android.graphics.Rect)
Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
IsInitialized As Boolean
Left As Int
Load (PathName As String, FileName As String, Paused As Boolean)
LoadFromInput (Stream As java.io.InputStream, Paused As Boolean)
Paused As Boolean
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
Stopped As Boolean
Tag As Object
Top As Int
Unload
Visible As Boolean
Width As Int

MovieViewControl


Events:

Load (Frames as Int)
Frame (Frame as Int, Total as Int)
Pause
Stop
Play

Members:


  Background As android.graphics.drawable.Drawable

  BringToFront

  Color As Int [write only]

  DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)

  Enabled As Boolean

  Frame As Int

  Frames As Int [read only]

  Height As Int

  Initialize (EventName As String)

  innerInitialize (EventName As String, keepOldObject As Boolean)

  Invalidate

  Invalidate2 (arg0 As android.graphics.Rect)

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

  IsInitialized As Boolean

  Left As Int

  Load (PathName As String, FileName As String, Paused As Boolean)

  LoadFromInput (Stream As java.io.InputStream, Paused As Boolean)

  Paused As Boolean

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

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

  Stopped As Boolean

  Tag As Object

  Top As Int

  Unload

  Visible As Boolean

  Width As Int

Members description:

Background As android.graphics.drawable.Drawable
BringToFront
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
Enabled As Boolean
Frame As Int
Frames As Int [read only]
Height As Int
Initialize (EventName As String)
innerInitialize (EventName As String, keepOldObject As Boolean)
Invalidate
Invalidate2 (arg0 As android.graphics.Rect)
Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
IsInitialized As Boolean
Left As Int
Load (PathName As String, FileName As String, Paused As Boolean)
LoadFromInput (Stream As java.io.InputStream, Paused As Boolean)
Paused As Boolean
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
Stopped As Boolean
Tag As Object
Top As Int
Unload
Visible As Boolean
Width As Int

ToastView


Events:

None

Members:


  Cancel

  Show (Message As String)

  ShowWithOptions (Message As String, Short As Boolean, Gravity As Int, X As Int, Y As Int)

Members description:

Cancel
Show (Message As String)
ShowWithOptions (Message As String, Short As Boolean, Gravity As Int, X As Int, Y As Int)

Top