public class MainActivity extends Activity implements GeometrySelectedListener
{
。。。
//"选择"按钮
public void btnSelect_Click(View view){
m_mapControl.setAction(Action.MULTI_SELECT);
}
。。。
@Override
public void geometrySelected(GeometrySelectedEvent geometrySelectedEvent) {
Log.d("heihei", "geometrySelected: ");
}
@Override
public void geometryMultiSelected(ArrayList<GeometrySelectedEvent> arrayList) {
for (int i=0;i<arrayList.size();i++){
Log.d("haha","geometryMultiSelected: "+arrayList.get(i).getGeometryID());
}
Toast.makeText(MainActivity.this,arrayList.size()+"haha",Toast.LENGTH_LONG).show();
}
能够实现多选,但是最后两个监听没有调用。这是为什么呢?