コード例 #1
0
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onActivityCreated(savedInstanceState);
    List<SatelliteMenuItem> items = new ArrayList<SatelliteMenuItem>();
    items.add(new SatelliteMenuItem(1, R.drawable.u_key_search));
    items.add(new SatelliteMenuItem(2, R.drawable.u_key_remote));
    items.add(new SatelliteMenuItem(3, R.drawable.u_key_search));
    items.add(new SatelliteMenuItem(4, R.drawable.u_key_search));
    items.add(new SatelliteMenuItem(5, R.drawable.u_key_search));
    //        items.add(new SatelliteMenuItem(5, R.drawable.sat_item));
    menu.addItems(items);

    menu.setOnItemClickedListener(
        new SateliteClickedListener() {

          public void eventOccured(int id) {
            Log.i("sat", "Clicked on " + id);
          }
        });
  }
コード例 #2
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   // TODO Auto-generated method stub
   super.onCreate(savedInstanceState);
 }