Volcano Extreme Edition invitation code implementation?

Volcano speed version of the invite code such as (207,435,861) of these pure digital 9-digit code how to achieve it, generally similar to that of pure numbers we certainly think of using a random number Random java achieve, but this approach can not meet people's daily random numbers required, volcano speed version of the invite code 207 435 861 plus artificial intelligence data with a large way;

See the following code block, explained in detail;
* /
Private void showWareHosePosition () {
View the contentView = getLayoutInflater () the inflate (R.layout.package_bottom_complete_dialog, null).;

    mSelectWareHouseDialog = MyDialog.bottomDialog(ConfirmReceiveActivity.this, contentView);

    LinearLayout llDialogHeight = contentView.findViewById(R.id.ll_dialog_height);
    ViewGroup.LayoutParams layoutParams = llDialogHeight.getLayoutParams();
    layoutParams.height = 980;
    llDialogHeight.setLayoutParams(layoutParams);

    ListView lvChooseExpressWay = contentView.findViewById(R.id.lv_pack_complete);
    TextView tvTitle = contentView.findViewById(R.id.tv_title);
    tvTitle.setText(getString(R.string.please_choose_library));
    RelativeLayout rlcloseDialog = contentView.findViewById(R.id.rl_close_dialog);
    Button mBtConfirm = contentView.findViewById(R.id.bt_confirm);

    mSelectWarehouseAdapter = new SelectWarehouseAdapter(this, mReceiveGoodsWareHouseList, new SelectWarehouseAdapter.ChooseWareHouseListener() {
        @Override
        public void onChooseWareHouseClick(int oldPosition, int position) {
            mReceiveGoodsWareHouseList.get(oldPosition).setChecked(false);
            mReceiveGoodsWareHouseList.get(position).setChecked(true);
            mSelectWarehouseAdapter.notifyDataSetChanged();
        }
    });
    lvChooseExpressWay.setAdapter(mSelectWarehouseAdapter);

    rlcloseDialog.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            mSelectWareHouseDialog.dismiss();
        }
    });

    mBtConfirm.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            for (int i = 0; i < mReceiveGoodsWareHouseList.size(); i++) {
                if (mReceiveGoodsWareHouseList.get(i).isChecked()) {
                    String warehouseName = mReceiveGoodsWareHouseList.get(i).getName();
                    String warehouseId = mReceiveGoodsWareHouseList.get(i).getId();
                    mTvWarehouseName.setText(warehouseName);
                    mTvWarehouseName.setTag(warehouseId);
                    mTvWarehouseName.setTextColor(Color.parseColor("#91969c"));
                    mSelectWareHouseDialog.dismiss();
                }
            }
        }
    });
    mSelectWareHouseDialog.show();

}

Guess you like

Origin blog.51cto.com/14457249/2423329