예제 #1
0
 @Override
 public boolean onPoiClick(int index) {
   super.onPoiClick(index);
   PoiInfo poi = getPoiResult().getAllPoi().get(index);
   // if (poi.hasCaterDetails) {
   /*mPoiSearch.searchPoiDetail((new PoiDetailSearchOption())
   .poiUid(poi.uid));*/
   // }
   return true;
 }
예제 #2
0
 @Override
 public boolean onPoiClick(int index) {
   super.onPoiClick(index);
   PoiInfo poi = getPoiResult().getAllPoi().get(index);
   // if (poi.hasCaterDetails) {
   mPoiSearch.searchPoiDetail((new PoiDetailSearchOption()).poiUid(poi.uid));
   ((EditText) findViewById(R.id.searchkey)).setText(poi.city + poi.address);
   //				Log.d("baidu_wjx",poi.city+" click:"+poi.address);
   // }
   return true;
 }
예제 #3
0
    @Override
    public boolean onPoiClick(int index) {
      super.onPoiClick(index);

      Toast.makeText(
              getApplicationContext(),
              mStationList.get(index).get("name")
                  + "("
                  + "距离"
                  + mStationList.get(index).get("distance")
                  + ")",
              Toast.LENGTH_SHORT)
          .show();

      return true;
    }