XML:

```
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

    <item android:state_pressed="true" android:drawable="@drawable/vopressed" /> //light blue
    <item android:state_selected="true" android:drawable="@drawable/voselected" /> //blue
    <item android:drawable="@drawable/vo" /> //black
</selector>

```

XML:

```
<ImageButton
        android:layout_width="0dp"
        android:layout_weight="0.2"
        android:layout_height="wrap_content"
        app:srcCompat="@drawable/vo_selector"
        android:id="@+id/ibS"
        android:background="@android:color/transparent" />

```

I am trying to change to light blue on click and dark blue after.

```
ibS.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        ibS.setPressed(true);
        Toast.makeText(MainActivity.this, "clicked", Toast.LENGTH_LONG).show();
    }
});

```

How can I make it so when I click on it, it stays on the pressed/selected state and the drawable change from black to blue and when I click on it again it unpresses/unselects itself and change back to black.