| layout |
package android_programmers_guide.AndroidViews;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
public class AndroidViews extends Activity {
/** Called when the Activity is first created. /
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
/** Add one menu item for each View in our project */
menu.add(0, 0, "AutoComplete");
menu.add(0, 1, "Button");
menu.add(0, 2, "CheckBox");
menu.add(0, 3, "EditText");
menu.add(0, 4, "RadioGroup");
menu.add(0, 5, "Spinner");
return true;
}
/** Override onOptionsItemSelected to execute code for each
menu item */
@Override
public boolean onOptionsItemSelected(Menu.Item item){
}
/** Select statement to handle calls
to specific menu items */
switch (item.getId()) {
case 0:
return true;
case 1:
return true;
case 2:
return true;
case 3:
return true;
case 4:
return true;
case 5:
return true;
}
return true;
}
}
"Boost your career with sfdc admin course , designed to master Salesforce administration efficiently.
ReplyDelete"Join power bi live training to master interactive dashboards and real-time data analytics. Gain hands-on experience and enhance your business intelligence skills in this live session."
ReplyDelete"Enhance your data visualization skills with tableau online training Learn to create interactive dashboards and gain mastery in Tableau from anywhere, anytime."
ReplyDelete"Enhance your career with sfdc developer course designed to teach Salesforce development from basics to advanced concepts. Gain hands-on experience building apps, customizing Salesforce, and mastering Apex and Lightning components."
ReplyDeletePython full course covers programming fundamentals and advanced development topics. It focuses on real-time implementation skills. This python full course strengthens development expertise. Students create working applications. Modules and libraries are included. Automation concepts are covered. Project guidance is explained. It supports professional growth.
ReplyDeleteAI ml training helps learners understand how artificial intelligence and machine learning models are designed and implemented. It explains predictive modeling, data processing, and algorithms clearly. This ai ml training helps students gain hands-on experience through assignments and projects. Learners explore real-world use cases. The training prepares learners for professional roles in AI and ML development.
ReplyDelete