Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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;
}
 
PREVIOUS NEXT
Tagged: #switch #case #android #studio #java
ADD COMMENT
Topic
Name
6+6 =