Search in sources :

Example 21 with DeviceConfiguration

use of com.qualcomm.robotcore.hardware.configuration.DeviceConfiguration in project robotcode by OutoftheBoxFTC.

the class EditPortListSpinnerActivity method addViewListenersOnIndex.

@Override
protected void addViewListenersOnIndex(int index) // Plumb up all the event handlers for the indicated item
{
    View itemView = findViewByIndex(index);
    DeviceConfiguration config = findConfigByIndex(index);
    addNameTextChangeWatcherOnIndex(index);
    handleDisabledDevice(itemView, config);
    handleSpinner(itemView, this.idItemSpinner, config);
}
Also used : TextView(android.widget.TextView) View(android.view.View) DeviceConfiguration(com.qualcomm.robotcore.hardware.configuration.DeviceConfiguration)

Aggregations

DeviceConfiguration (com.qualcomm.robotcore.hardware.configuration.DeviceConfiguration)21 EditText (android.widget.EditText)8 LynxI2cDeviceConfiguration (com.qualcomm.robotcore.hardware.configuration.LynxI2cDeviceConfiguration)8 LynxUsbDeviceConfiguration (com.qualcomm.robotcore.hardware.configuration.LynxUsbDeviceConfiguration)8 TextView (android.widget.TextView)7 View (android.view.View)4 CheckBox (android.widget.CheckBox)4 LynxServoController (com.qualcomm.hardware.lynx.LynxServoController)4 MatrixServoController (com.qualcomm.hardware.matrix.MatrixServoController)3 ServoController (com.qualcomm.robotcore.hardware.ServoController)3 BuiltInConfigurationType (com.qualcomm.robotcore.hardware.configuration.BuiltInConfigurationType)3 ConfigurationType (com.qualcomm.robotcore.hardware.configuration.ConfigurationType)3 LynxDcMotorController (com.qualcomm.hardware.lynx.LynxDcMotorController)2 LynxModule (com.qualcomm.hardware.lynx.LynxModule)2 LynxModuleConfiguration (com.qualcomm.robotcore.hardware.configuration.LynxModuleConfiguration)2 MatrixControllerConfiguration (com.qualcomm.robotcore.hardware.configuration.MatrixControllerConfiguration)2 MotorConfiguration (com.qualcomm.robotcore.hardware.configuration.MotorConfiguration)2 ServoControllerConfiguration (com.qualcomm.robotcore.hardware.configuration.ServoControllerConfiguration)2 ArrayList (java.util.ArrayList)2 LinearLayout (android.widget.LinearLayout)1