Thursday, 29 November 2012

Lists, Menus, and Other Views

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;
}
}

14 comments:

  1. "Boost your career with sfdc admin course , designed to master Salesforce administration efficiently.

    ReplyDelete
  2. "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
  3. "Enhance your data visualization skills with tableau online training Learn to create interactive dashboards and gain mastery in Tableau from anywhere, anytime."

    ReplyDelete
  4. "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."

    ReplyDelete
  5. Python 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.

    ReplyDelete
  6. AI 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
  7. Great explanation! servicenow classes are perfect for understanding platform configuration and workflows.servicenow classes

    ReplyDelete
  8. Nice insights! data modeling course
    offers real-time learning with projects. Gain expertise in designing structured databases and managing data efficiently.

    ReplyDelete
  9. Great article! Our devops course
    helps you master CI/CD, automation, and cloud deployment with hands-on projects for real-world experience.

    ReplyDelete
  10. Tableau Online Training
    Tableau online training helps in data visualization. This tableau training looks informative. Covers key topics. Easy to learn. Good option.

    ReplyDelete
  11. Excellent article! Our devops full course
    covers CI/CD, cloud infrastructure, containerization, and collaborative practices to prepare learners for real-world IT challenges.

    ReplyDelete
  12. Tableau Classes Online
    Are Tableau classes online effective? I saw this tableau classes online.
    → Yes, if they include practice.
    → That makes sense.

    ReplyDelete
  13. Best Tableau Training
    {Searching for|Looking for|Need} best Tableau training. This {best tableau training} {looks useful|seems nice|looks good}. {Any reviews?|Suggestions?|Opinions?}

    ReplyDelete
  14. "Great insights! Our database modeling course
    course helps learners create structured, consistent, and accessible data systems with hands-on projects."

    ReplyDelete