Or statement in switch/case ?
android, case, switch-statement
Solution
This will work:
case R.id.bOne:
case R.id.tvOne:
// do your stuff
Problem
Is it possible to use an OR statement in a switch/case structure? Suppose I want to do the same thing when clicking on two different items. I tried ``` (case R.id.bOne || case R.id.tvOne): ``` and ``` case (R.id.bOne || R.id.tvOne): ``` But none of them seem to work..