예제 #1
0
  private void showCard(final NodeParkingLot nodeParkingLot) {
    mCard.showParkingLotCard(nodeParkingLot);
    categoryPayMent.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View v) {
            AlertDialog.Builder payDialog = new AlertDialog.Builder(ctx);

            LayoutInflater inflater = getLayoutInflater();
            View dialoglayout = inflater.inflate(R.layout.custom_dialog, null);
            payDialog.setView(dialoglayout);
            final AlertDialog dialog = payDialog.show();
            dialog
                .getWindow()
                .setLayout(
                    Utils.getWindowWidth(getWindowManager()) * 4 / 5,
                    Utils.getWindowHeight(getWindowManager()) * 4 / 5);
            AutoResizeTextView content =
                (AutoResizeTextView) dialoglayout.findViewById(R.id.dialog_content);
            content.setText(nodeParkingLot.payDes);
            Button closebtn = (Button) dialoglayout.findViewById(R.id.dialog_close);
            closebtn.setOnClickListener(
                new View.OnClickListener() {
                  @Override
                  public void onClick(View v) {
                    dialog.dismiss();
                  }
                });
          }
        });
  }
예제 #2
0
 private void showCard(final NodeTraffic nodeTraffic) {
   mCard.showTrafficInfo(nodeTraffic);
 }
예제 #3
0
 private void setTrafficInfo(NodeTraffic nodeTraffic) {
   trafficData.put(mCard.getTrafficMarker(nodeTraffic), nodeTraffic);
 }
예제 #4
0
 private void showCard(final NodeConstruct nodeConstruct) {
   mCard.showConstructInfo(nodeConstruct);
 }
예제 #5
0
 private void setConstructInfo(NodeConstruct nodeConstruct) {
   constructData.put(mCard.getConstructMarker(nodeConstruct), nodeConstruct);
 }
예제 #6
0
 private void setParkingInfo(NodeParkingLot nodeParkingLot) {
   parkingLotData.put(mCard.getParkingLotMarker(nodeParkingLot), nodeParkingLot);
 }
예제 #7
0
 private void showCard(NodeGas nodeGas) {
   mCard.showGasCard(nodeGas);
 }
예제 #8
0
 private void setGasInfo(NodeGas nodeGas) {
   gasData.put(mCard.getGasMarker(nodeGas), nodeGas);
 }
예제 #9
0
 private void removeCard() {
   mCard.removeCard();
   if (mSelectMarker != null) {
     mSelectMarker.remove();
   }
 }