Exemplo n.º 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();
                  }
                });
          }
        });
  }
Exemplo n.º 2
0
 private void showCard(final NodeTraffic nodeTraffic) {
   mCard.showTrafficInfo(nodeTraffic);
 }
Exemplo n.º 3
0
 private void setTrafficInfo(NodeTraffic nodeTraffic) {
   trafficData.put(mCard.getTrafficMarker(nodeTraffic), nodeTraffic);
 }
Exemplo n.º 4
0
 private void showCard(final NodeConstruct nodeConstruct) {
   mCard.showConstructInfo(nodeConstruct);
 }
Exemplo n.º 5
0
 private void setConstructInfo(NodeConstruct nodeConstruct) {
   constructData.put(mCard.getConstructMarker(nodeConstruct), nodeConstruct);
 }
Exemplo n.º 6
0
 private void setParkingInfo(NodeParkingLot nodeParkingLot) {
   parkingLotData.put(mCard.getParkingLotMarker(nodeParkingLot), nodeParkingLot);
 }
Exemplo n.º 7
0
 private void showCard(NodeGas nodeGas) {
   mCard.showGasCard(nodeGas);
 }
Exemplo n.º 8
0
 private void setGasInfo(NodeGas nodeGas) {
   gasData.put(mCard.getGasMarker(nodeGas), nodeGas);
 }
Exemplo n.º 9
0
 private void removeCard() {
   mCard.removeCard();
   if (mSelectMarker != null) {
     mSelectMarker.remove();
   }
 }