eu.ensam.ii.vrpn
Class VrpnToggleButton

java.lang.Object
  extended by android.widget.ToggleButton
      extended by eu.ensam.ii.vrpn.VrpnToggleButton

public class VrpnToggleButton
extends ToggleButton

A ToggleButton connected to a Vrpn Button.

This button sends a true update when its status changes to checked and false when its status changes to unchecked. Unlike a VrpnPressButton, the status of this widget changes when it is pressed, but not when it is released,

In your layout XML file, include the following into a container widget :

 <eu.ensam.ii.vrpn.VrpnButton
   app:vrpnButton="@id/MyButton" 
 />
 

The root element of the layout must declare the following line just after the xmlns:android ... line :

   xmlns:app="http://schemas.android.com/apk/res/your.package.name.here"
 

Custom XML attributes :


Constructor Summary
VrpnToggleButton(Context context)
           
VrpnToggleButton(Context context, AttributeSet attrs)
           
VrpnToggleButton(Context context, AttributeSet attrs, int defStyle)
           
 
Method Summary
 void onCheckedChanged(CompoundButton buttonView, boolean isChecked)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VrpnToggleButton

public VrpnToggleButton(Context context)

VrpnToggleButton

public VrpnToggleButton(Context context,
                        AttributeSet attrs)

VrpnToggleButton

public VrpnToggleButton(Context context,
                        AttributeSet attrs,
                        int defStyle)
Method Detail

onCheckedChanged

public void onCheckedChanged(CompoundButton buttonView,
                             boolean isChecked)