示例#1
0
  /** 打开自定义键盘 */
  private void openBoard() {
    if (SKKeyPopupWindow.keyFlagIsShow && !GlobalPopWindow.popIsShow) {
      popKey.setLastText(showValue);
      popKey.setShowMax(Integer.toString(info.getnShowCharNumber()));
      popKey.setShowMin(Integer.toString(0));
      popKey.setnStartX(info.getnBoardX());
      popKey.setnStartY(info.getnBoardY());
      popKey.initPopUpWindow();

      // 允许输入 并且勾选了输入提示 则更换背景
      if (info.isbIsinput() && info.isbInputSign()) {
        drawBack = true;
        SKSceneManage.getInstance().onRefresh(items);
      }
      popKey.showPopUpWindow();
    }
  }
示例#2
0
  /** 系统键盘 */
  private void openKey() {
    // 如果显示类型是密码 则传-1 过去 辨别inputType 是text 还是password

    if (!GlobalPopWindow.popIsShow && SKKeyPopupWindow.keyFlagIsShow) {
      if (null != pop) {
        pop.setCallback(keyback);
        pop.initPopupWindow();
        pop.setInputMax(Integer.toString(info.getnShowCharNumber()));
        pop.setInputMin(Integer.toString(0));
        // 允许输入 并且勾选了输入提示 则更换背景
        if (info.isbIsinput() && info.isbInputSign()) {
          drawBack = true;
          SKSceneManage.getInstance().onRefresh(items);
        }
        pop.showPopupWindow();
      }
    }
  }