I am making an app that has a grid of images with text and each one opens a different activity. It works fine but just for design purposes I want to replace my if-else
if-else
The switch needs a break with in each case. But in your case it could be done much simpler by defining an array as shown below.
switch
break
String values = {R.string.zero, R.string.one, R.string.two, ... };
Use this to populate textView : textView.setText(values[position]);
textView.setText(values[position]);