Code example for GestureLibrary

Methods: removeGesture, save

0
 
		return super.onContextItemSelected(item);
	} 
 
	private void deleteGesture(NamedGesture gesture) {
		sStore.removeGesture(gesture.name, gesture.gesture);
		sStore.save();
 
		final GesturesAdapter adapter = mAdapter;
		adapter.setNotifyOnChange(false);
		adapter.remove(gesture);
		adapter.notifyDataSetChanged();
		Toast.makeText(this, "删除成功!", Toast.LENGTH_SHORT).show();
	} 
 
	/** 
	 * Description:真正更新listview空间的操作者 
	 * Copyright (c) 永新视博 
	 * All Rights Reserved. 
	 * @version 1.0  2011-11-15 下午12:44:53 mustang created 
	 */