Skip to content

Instantly share code, notes, and snippets.

@myeonginwoo
Created October 22, 2018 16:39
Show Gist options
  • Select an option

  • Save myeonginwoo/ea839ffdaffc72f51ee9d2df16e06e30 to your computer and use it in GitHub Desktop.

Select an option

Save myeonginwoo/ea839ffdaffc72f51ee9d2df16e06e30 to your computer and use it in GitHub Desktop.
enum class Item(val titleId: Int, val colorId: Int) {
ITEM_A(R.string.a, R.color.red),
ITEM_B(R.string.b, R.color.green),
ITEM_C(R.string.c, R.color.blue)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment