コード例 #1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    putBodyView(R.layout.act_setting_edit_act);

    _sortArray = new ArrayList<String>();
    _btnSave = (Button) findViewById(R.id.btn_save);
    _btnDelete = (Button) findViewById(R.id.btn_delete);
    _btnAdd = (Button) findViewById(R.id.btn_add);

    _btnSave.setOnClickListener(endClcikListener);
    _btnDelete.setOnClickListener(deleteBtnClickListener);
    _btnAdd.setOnClickListener(addBtnClickListener);

    _actionController = new ActionController(onRequestEndListener);
    _activityAdapter = new ActivityEditListAdapter(this);
    _activityList = (DragAndDropListView) findViewById(R.id.listview_activity);
    _activityList.setDragListener(this);
    _activityList.setDropListener(this);

    _activityList.setOnItemLongClickListener(longClickListener);
    _activityList.setAdapter(_activityAdapter);
    _activityList.setOnItemClickListener(itemClickListener);
  }
コード例 #2
0
 @Override
 public void onResume() {
   super.onResume();
   loadActions();
 }