private boolean inRangeOfView(View view, MotionEvent ev){ int[] location = new int[2]; view.getLocationOnScreen(location); int x = location[0]; int y = location[1]; if(ev.getX() < x || ev.getX() > (x + view.getWidth()) || ev.getY() < y || ev.getY
android上的view的类叫View, 以下是它的class overview, This class represents the basic building block for user interface components. A View occupies a rectangular area on the screen and is responsible for drawing and event handling. View is the base class for wi
Key Points: 1.使用SimpleCursorAdapter将Android数据库信息显示在listview上 adapter = new SimpleCursorAdapter(this, R.layout.user_list_cell, null, new String[]{"name","sex"}, new int[]{R.id.tvName, R.id.tvSex}); 2.长按listview弹出对话框删除信息.顺带学习了AlertDialog