Answers for "how to use switch statement in java android studio"

0

switch case in android studio - java

// HazaaZOOZ - java - Android studio - switch case in android

switch(position) {
    case 0:
        setContentView(R.layout.xml0);
        break;
    case 1:
        setContentView(R.layout.xml1);
        break;
    default:
        setContentView(R.layout.default);
        break;
}
Posted by: Guest on February-11-2021

Code answers related to "how to use switch statement in java android studio"

Browse Popular Code Answers by Language