Android下creator2.x的EditBox仿creator1.x解决方案

修改了引擎CocosCreator\resources\cocos2d-x\cocos\platform\android\java\src\org\cocos2dx\lib下的Cocos2dxEditBoxHelper.java文件,和C:\CocosCreator\resources\cocos2d-x\cocos\ui\edit-box下的EditBox-android.cpp文件
EditBox-android.cpp加4个参数就好了,感谢引擎组没把接口赶尽杀绝

void EditBox::show(const cocos2d::EditBox::ShowInfo& showInfo)
{
JniHelper::callStaticVoidMethod(JCLS_EDITBOX,
“showNative”,
showInfo.defaultValue,
showInfo.maxLength,
showInfo.isMultiline,
showInfo.confirmHold,
showInfo.confirmType,
showInfo.inputType,
showInfo.x,
showInfo.y,
showInfo.width,
showInfo.height);
}

Cocos2dxEditBoxHelper.java改动稍微有点大,直接全粘上好了,引擎原来的并没有删只是注释掉了

/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.

http://www.cocos2d-x.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
package org.cocos2dx.lib;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.StateListDrawable;
import android.graphics.drawable.shapes.RoundRectShape;
import android.text.Editable;
import android.text.InputFilter;
import android.text.InputType;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.DisplayMetrics;
import android.util.Log;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.view.WindowManager;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class Cocos2dxEditBox {

// a color of dark green, was used for confirm button background
private static final int DARK_GREEN = Color.TRANSPARENT;//parseColor("#1fa014");
private static final int DARK_GREEN_PRESS = Color.parseColor("#008e26");

private static Cocos2dxEditBox sThis = null;
private Cocos2dxEditText mEditText = null;
private Button mButton = null;
private String mButtonTitle = null;
private boolean mConfirmHold = true;
private Cocos2dxActivity mActivity = null;
private RelativeLayout mButtonLayout = null;
private RelativeLayout.LayoutParams mButtonParams;
private int mLayoutHeight;
private int mEditTextID = 1;
private int mButtonLayoutID = 2;
private int mOriginX = 0;
private int mOriginY = 0;
private int mWidth = 0;
private int mHeight = 0;

/***************************************************************************************
 Inner class.
 **************************************************************************************/
class Cocos2dxEditText extends EditText {
    private final String TAG = "Cocos2dxEditBox";
    private boolean mIsMultiLine = false;
    private TextWatcher mTextWatcher = null;
    private Paint mPaint;
    private int mLineColor = DARK_GREEN;
    private float mLineWidth = 2f;
    private boolean keyboardVisible = false;
    private int mScreenHeight;

    public  Cocos2dxEditText(Cocos2dxActivity context){
        super(context);
        //remove focus border
        this.setBackground(null);
        mScreenHeight = ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE)).
                getDefaultDisplay().getHeight();
        mPaint = new Paint();
        mPaint.setStrokeWidth(mLineWidth);
        mPaint.setStyle(Paint.Style.FILL);
        mPaint.setColor(mLineColor);

        mTextWatcher = new TextWatcher() {
            @Override
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {

            }

            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {

            }

            @Override
            public void afterTextChanged(Editable s) {
                // Pass text to c++.
                Cocos2dxEditBox.this.onKeyboardInput(s.toString());
            }
        };
        registKeyboardVisible();
    }

    /***************************************************************************************
     Override functions.
     **************************************************************************************/

    @Override
    protected void onDraw(Canvas canvas) {
        // draw the underline
        int padB = this.getPaddingBottom();
        canvas.drawLine(getScrollX(), this.getHeight() - padB / 2 - mLineWidth,
                getScrollX() + this.getWidth(),
                this.getHeight() - padB / 2 - mLineWidth, mPaint);
        super.onDraw(canvas);
    }

    /***************************************************************************************
     Public functions.
     **************************************************************************************/

    public void show(String defaultValue, int maxLength, boolean isMultiline, boolean confirmHold, String confirmType, String inputType) {
        mIsMultiLine = isMultiline;
        this.setFilters(new InputFilter[]{new InputFilter.LengthFilter(maxLength) });
        this.setText(defaultValue);
        if (this.getText().length() >= defaultValue.length()) {
            this.setSelection(defaultValue.length());
        } else {
            this.setSelection(this.getText().length());
        }
        this.setConfirmType(confirmType);
        this.setInputType(inputType, mIsMultiLine);
        this.setVisibility(View.VISIBLE);

        // Open soft keyboard manually. Should request focus to open soft keyboard.
        this.requestFocus();

        this.addListeners();
    }

    public void hide() {
        mEditText.setVisibility(View.INVISIBLE);
        this.removeListeners();
    }

    /***************************************************************************************
     Private functions.
     **************************************************************************************/

    private void setConfirmType(final String confirmType) {
        if (confirmType.contentEquals("done")) {
            this.setImeOptions(EditorInfo.IME_ACTION_DONE | EditorInfo.IME_FLAG_NO_EXTRACT_UI);
            mButtonTitle = mActivity.getResources().getString(R.string.done);
        } else if (confirmType.contentEquals("next")) {
            this.setImeOptions(EditorInfo.IME_ACTION_NEXT | EditorInfo.IME_FLAG_NO_EXTRACT_UI);
            mButtonTitle = mActivity.getResources().getString(R.string.next);
        } else if (confirmType.contentEquals("search")) {
            this.setImeOptions(EditorInfo.IME_ACTION_SEARCH | EditorInfo.IME_FLAG_NO_EXTRACT_UI);
            mButtonTitle = mActivity.getResources().getString(R.string.search);
        } else if (confirmType.contentEquals("go")) {
            this.setImeOptions(EditorInfo.IME_ACTION_GO | EditorInfo.IME_FLAG_NO_EXTRACT_UI);
            mButtonTitle = mActivity.getResources().getString(R.string.go);
        } else if (confirmType.contentEquals("send")) {
            this.setImeOptions(EditorInfo.IME_ACTION_SEND | EditorInfo.IME_FLAG_NO_EXTRACT_UI);
            mButtonTitle = mActivity.getResources().getString(R.string.send);
        } else{
            mButtonTitle = null;
            Log.e(TAG, "unknown confirm type " + confirmType);
        }
    }

    private void setInputType(final String inputType, boolean isMultiLine){
        if (inputType.contentEquals("text")) {
            if (isMultiLine)
                this.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE);
            else
                this.setInputType(InputType.TYPE_CLASS_TEXT);
        }
        else if (inputType.contentEquals("email"))
            this.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);
        else if (inputType.contentEquals("number"))
            this.setInputType(InputType.TYPE_CLASS_NUMBER);
        else if (inputType.contentEquals("phone"))
            this.setInputType(InputType.TYPE_CLASS_PHONE);
        else if (inputType.contentEquals("password"))
            this.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
        else
            Log.e(TAG, "unknown input type " + inputType);
    }

    private void addListeners() {

        this.setOnEditorActionListener(new TextView.OnEditorActionListener() {
            @Override
            public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
                if (! mIsMultiLine) {
                    Cocos2dxEditBox.this.hide();
                }

                return false; // pass on to other listeners.
            }
        });


        this.addTextChangedListener(mTextWatcher);
    }

    private void removeListeners() {
        this.setOnEditorActionListener(null);
        this.removeTextChangedListener(mTextWatcher);
    }

    private void registKeyboardVisible() {
        getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
            @Override
            public void onGlobalLayout() {
                Rect r = new Rect();
                getWindowVisibleDisplayFrame(r);
                int heightDiff = getRootView().getHeight() - (r.bottom - r.top);
                // if more than a quarter of the screen, its probably a keyboard
                if (heightDiff > mScreenHeight/4) {
                    if (!keyboardVisible) {
                        keyboardVisible = true;
                    }
                } else {
                    if (keyboardVisible) {
                        keyboardVisible = false;
                        Cocos2dxEditBox.this.hide();
                    }
                }
            }
        });
    }
}

public Cocos2dxEditBox(Cocos2dxActivity context, RelativeLayout layout) {
    Cocos2dxEditBox.sThis = this;
    mActivity = context;
    this.addItems(context, layout);
}

/***************************************************************************************
 Public functions.
 **************************************************************************************/

// Invoked by surface view to send a complete message to CPP.
public static void complete() {
    Cocos2dxEditBox.sThis.hide();
}

/***************************************************************************************
 Private functions.
 **************************************************************************************/
private void addItems(Cocos2dxActivity context, RelativeLayout layout) {
    // RelativeLayout myLayout = new RelativeLayout(context);
    // this.addEditText(context, myLayout);
    // this.addButton(context, myLayout);

    // RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
    //         ViewGroup.LayoutParams.WRAP_CONTENT);
    // layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
    // layout.addView(myLayout, layoutParams);


    mLayoutHeight = ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE)).
            getDefaultDisplay().getHeight();
    mButtonParams = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
    mButtonLayout = new RelativeLayout(Cocos2dxHelper.getActivity());
    mEditText = new Cocos2dxEditText(context);
    mEditText.setHintTextColor(Color.GRAY);
    mEditText.setVisibility(View.GONE);
    mEditText.setBackgroundColor(Color.TRANSPARENT);
    mEditText.setTextColor(Color.TRANSPARENT);

    mEditText.setId(mEditTextID);
    RelativeLayout.LayoutParams editParams = new RelativeLayout.LayoutParams(
            ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
    mButtonLayout.addView(mEditText, mButtonParams);
    layout.addView(mButtonLayout, editParams);

    //FXI ME: Is it needed?
    // When touch area outside EditText and soft keyboard, then hide.
// layout.setOnTouchListener(new View.OnTouchListener() {
// @Override
// public boolean onTouch(View v, MotionEvent event) {
// Cocos2dxEditBox.this.hide();
// return true;
// }
//
// });
}

private void addEditText(Cocos2dxActivity context, RelativeLayout layout) {
    mButtonParams = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
    mButtonLayout = new RelativeLayout(Cocos2dxHelper.getActivity());
    mEditText = new Cocos2dxEditText(context);
    mEditText.setVisibility(View.INVISIBLE);
    mEditText.setBackgroundColor(Color.WHITE);
    mEditText.setId(mEditTextID);
    RelativeLayout.LayoutParams editParams = new RelativeLayout.LayoutParams(
            ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
    editParams.addRule(RelativeLayout.LEFT_OF, mButtonLayoutID);
    
    mButtonLayout.addView(mEditText, mButtonParams);
    mButtonLayout.setId(mButtonLayoutID);
    layout.addView(mButtonLayout, editParams);
}

private void addButton(Cocos2dxActivity context, RelativeLayout layout) {
    mButton = new Button(context);
    mButtonParams = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
    mButton.setTextColor(Color.WHITE);
    mButton.setBackground(getRoundRectShape());
    mButtonLayout = new RelativeLayout(Cocos2dxHelper.getActivity());
    mButtonLayout.setVisibility(View.INVISIBLE);
    mButtonLayout.setBackgroundColor(Color.WHITE);
    RelativeLayout.LayoutParams buttonLayoutParams = new RelativeLayout.LayoutParams(
            ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
    buttonLayoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
    buttonLayoutParams.addRule(RelativeLayout.ALIGN_BOTTOM, mEditTextID);
    buttonLayoutParams.addRule(RelativeLayout.ALIGN_TOP, mEditTextID);
    mButtonLayout.addView(mButton, mButtonParams);
    mButtonLayout.setId(mButtonLayoutID);
    layout.addView(mButtonLayout, buttonLayoutParams);

    mButton.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Cocos2dxEditBox.this.onKeyboardConfirm(mEditText.getText().toString());

            if (!Cocos2dxEditBox.this.mConfirmHold)
                Cocos2dxEditBox.this.hide();
        }
    });
}

private Drawable getRoundRectShape() {
    int radius = 7;
    float[] outerRadii = new float[]{radius, radius, radius, radius, radius, radius, radius, radius};
    RoundRectShape roundRectShape = new RoundRectShape(outerRadii, null, null);
    ShapeDrawable shapeDrawableNormal = new ShapeDrawable();
    shapeDrawableNormal.setShape(roundRectShape);
    shapeDrawableNormal.getPaint().setStyle(Paint.Style.FILL);
    shapeDrawableNormal.getPaint().setColor(DARK_GREEN);
    ShapeDrawable shapeDrawablePress = new ShapeDrawable();
    shapeDrawablePress.setShape(roundRectShape);
    shapeDrawablePress.getPaint().setStyle(Paint.Style.FILL);
    shapeDrawablePress.getPaint().setColor(DARK_GREEN_PRESS);
    StateListDrawable drawable = new StateListDrawable();
    drawable.addState(new int[]{android.R.attr.state_pressed}, shapeDrawablePress);
    drawable.addState(new int[]{}, shapeDrawableNormal);
    return drawable;
}


private void hide() {
    Utils.hideVirtualButton();
    mEditText.hide();
    mButtonLayout.setVisibility(View.INVISIBLE);
    this.closeKeyboard();

    mActivity.getGLSurfaceView().requestFocus();
    mActivity.getGLSurfaceView().setStopHandleTouchAndKeyEvents(false);
}

private void show(String defaultValue, int maxLength, boolean isMultiline, boolean confirmHold, String confirmType, String inputType,
                  int originX, int originY, int width, int height) {
    mConfirmHold = confirmHold;
    mEditText.show(defaultValue, maxLength, isMultiline, confirmHold, confirmType, inputType);
    int editPaddingBottom = mEditText.getPaddingBottom();
    int editPadding = mEditText.getPaddingTop();
    int topY = mLayoutHeight - originY - height;
    System.err.println(topY);
    mEditText.setPadding(editPadding, editPadding, editPadding, editPaddingBottom);
    mButtonParams.setMargins(originX, topY, 0, 0);
    mButtonParams.height = height;
    mButtonParams.width = width;
    mEditText.setLayoutParams(mButtonParams);
    mButtonLayout.setVisibility(View.VISIBLE);
    // mButton.setText(mButtonTitle);
    // if (TextUtils.isEmpty(mButtonTitle)) {
    //     mButton.setPadding(0, 0, 0, 0);
    //     mButtonParams.setMargins(0, 0, 0, 0);
    //     mButtonLayout.setVisibility(View.INVISIBLE);
    // } else {
    //     int buttonTextPadding = mEditText.getPaddingBottom() / 2;
    //     mButton.setPadding(editPadding, buttonTextPadding, editPadding, buttonTextPadding);
    //     mButtonParams.setMargins(0, buttonTextPadding, 2, 0);
    //     mButtonLayout.setVisibility(View.VISIBLE);
    // }
    mActivity.getGLSurfaceView().setStopHandleTouchAndKeyEvents(true);
    this.openKeyboard();
}

private void closeKeyboard() {
    InputMethodManager imm = (InputMethodManager) Cocos2dxEditBox.this.mActivity.getSystemService(Cocos2dxEditBox.this.mActivity.INPUT_METHOD_SERVICE);
    imm.hideSoftInputFromWindow(mEditText.getWindowToken(), 0);

    this.onKeyboardComplete(mEditText.getText().toString());
}

private void openKeyboard() {
    InputMethodManager imm = (InputMethodManager) Cocos2dxEditBox.this.mActivity.getSystemService(Cocos2dxEditBox.this.mActivity.INPUT_METHOD_SERVICE);
    imm.showSoftInput(mEditText, InputMethodManager.SHOW_IMPLICIT);
}

/***************************************************************************************
 Functions invoked by CPP.
 **************************************************************************************/

private static void showNative(String defaultValue, int maxLength, boolean isMultiline, boolean confirmHold, String confirmType, String inputType,
                               int originX, int originY, int width, int height) {
    if (null != Cocos2dxEditBox.sThis) {
        Cocos2dxEditBox.sThis.mActivity.runOnUiThread(new Runnable() {
            @Override
            public void run() {
                Cocos2dxEditBox.sThis.show(defaultValue, maxLength, isMultiline, confirmHold, confirmType, inputType, originX, originY, width, height);
            }
        });
    }
}

private static void hideNative() {
    if (null != Cocos2dxEditBox.sThis) {
        Cocos2dxEditBox.sThis.mActivity.runOnUiThread(new Runnable() {
            @Override
            public void run() {
                Cocos2dxEditBox.sThis.hide();
            }
        });
    }
}

/***************************************************************************************
 Native functions invoked by UI.
 **************************************************************************************/
private void onKeyboardInput(String text) {
    mActivity.runOnGLThread(new Runnable() {
        @Override
        public void run() {
            Cocos2dxEditBox.onKeyboardInputNative(text);
        }
    });
}

private void onKeyboardComplete(String text) {
    mActivity.getGLSurfaceView().requestFocus();
    mActivity.getGLSurfaceView().setStopHandleTouchAndKeyEvents(false);
    mActivity.runOnGLThread(new Runnable() {
        @Override
        public void run() {
            Cocos2dxEditBox.onKeyboardCompleteNative(text);
        }
    });
}

private void onKeyboardConfirm(String text) {
    mActivity.runOnGLThread(new Runnable() {
        @Override
        public void run() {
            Cocos2dxEditBox.onKeyboardConfirmNative(text);
        }
    });
}

private static native void onKeyboardInputNative(String text);
private static native void onKeyboardCompleteNative(String text);
private static native void onKeyboardConfirmNative(String text);
}
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 195,898评论 5 462
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 82,401评论 2 373
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 143,058评论 0 325
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,539评论 1 267
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 61,382评论 5 358
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,319评论 1 273
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,706评论 3 386
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,370评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,664评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,715评论 2 312
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,476评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,326评论 3 313
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,730评论 3 299
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,003评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,275评论 1 251
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,683评论 2 342
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,877评论 2 335

推荐阅读更多精彩内容