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