Skip to content

Instantly share code, notes, and snippets.

@ozcankrks
Created August 2, 2020 14:29
Show Gist options
  • Select an option

  • Save ozcankrks/72871a7ba64d1f4399e7b042835592a7 to your computer and use it in GitHub Desktop.

Select an option

Save ozcankrks/72871a7ba64d1f4399e7b042835592a7 to your computer and use it in GitHub Desktop.
spaceNavigationView.setSpaceOnClickListener(new SpaceOnClickListener() {
@Override
public void onCentreButtonClick() {
Toast.makeText(MainActivity.this,"onCentreButtonClick", Toast.LENGTH_SHORT).show();
}
@Override
public void onItemClick(int itemIndex, String itemName) {
Toast.makeText(MainActivity.this, itemIndex + " " + itemName, Toast.LENGTH_SHORT).show();
}
@Override
public void onItemReselected(int itemIndex, String itemName) {
Toast.makeText(MainActivity.this, itemIndex + " " + itemName, Toast.LENGTH_SHORT).show();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment