自定義下雪動畫(上)

本章目錄

  • Part One:構(gòu)造方法
  • Part Two:自定義屬性
  • Part Three:布局測量
  • Part Four:繪制
  • Part Five:重繪

在了解了自定義View的基本繪制流程后番宁,還需要大量的練習去鞏固這方面的知識好爬,所以這一節(jié)我們再練習個下雪案例。

Part One:構(gòu)造方法

構(gòu)造方法的寫法還是老樣子笋轨,沒有啥改變的:

public class SnowView extends View{
    public SnowView(Context context) {
        this(context, null);
    }

    public SnowView(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public SnowView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        this(context, attrs, defStyleAttr, 0);
    }

    public SnowView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        initAttrs(context, attrs);
    }

    private void initAttrs(Context context, AttributeSet attrs) {
    }
}

需要注意的是霎终,這里需要把app的gradle中的minSDK改為21(android5.0)角寸。如果想適配更低版本的手機叹誉,也就是說想要在android5.0以下的手機上運行糖埋,需要把4個參數(shù)的構(gòu)造方法刪除,在3個參數(shù)的構(gòu)造方法里使用super和初始化屬性哼转。

Part Two:自定義屬性

下面開始正式畫了明未,如果不太清楚如何下手的話,可以先把問題簡單化壹蔓,跑通了趟妥,再給它復雜化。比如說本例佣蓉,一群雪花不會披摄,那就先處理一朵雪花的情況。
假設我們需要繪制一朵大小隨機勇凭,出現(xiàn)的位置隨機的雪花疚膊,要處理的屬性有什么:

  1. int minSize:雪花大小隨機值下限
  2. int maxSize:雪花大小隨機值上限
  3. Bitmap snowSrc:雪花的圖案
  4. int moveX:雪花每次移動的橫向距離,也就是橫向移動速度
  5. int moveY:雪花每次移動的縱向距離虾标,也就是縱向移動速度

前三個屬性都好理解寓盗,后兩個移動屬性可能有的人會有點疑惑,先來看看屏幕坐標璧函。


屏幕坐標.png

屏幕的左上角是起點(0傀蚌,0),

  • X軸坐標從起點位置向右是正數(shù)蘸吓,向左是負數(shù)
  • Y軸坐標從起點位置向下是正數(shù)喳张,向上是負數(shù)

如果我們雪花從屏幕頂端出現(xiàn),想要實現(xiàn)一個移動的效果美澳, 就是在一個固定時間內(nèi)(比如20 - 50毫秒),改變圖片的X軸和Y軸的值摸航,重繪制跟。如此反復循環(huán)就造成雪花的移動效果了。
好了酱虎,意義明白了雨膨,接下來就是把這些屬性初始化了。
attrs.xml中:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <declare-styleable name="SnowView">
        <attr name="minSize" format="integer"/>
        <attr name="maxSize" format="integer"/>
        <attr name="snowSrc" format="reference|integer"/>
        <attr name="moveX" format="integer"/>
        <attr name="moveY" format="integer"/>
    </declare-styleable>
</resources>

SnowView中:

public class SnowView extends View{
    private int minSize;    //雪花大小隨機值下限
    private int maxSize;    //雪花大小隨機值上限
    private Bitmap snowSrc; //雪花的圖案
    private int moveX;      //雪花每次移動的橫向距離读串,也就是橫向移動速度
    private int moveY;      //雪花每次移動的縱向距離聊记,也就是縱向移動速度

    public SnowView(Context context) {
        this(context, null);
    }

    public SnowView(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public SnowView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        this(context, attrs, defStyleAttr, 0);
    }

    public SnowView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        initAttrs(context, attrs);
    }

    private void initAttrs(Context context, AttributeSet attrs) {
        TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.SnowView, 0, 0);
        minSize = typedArray.getInt(R.styleable.SnowView_minSize, 48);//獲取最小值,默認48
        maxSize = typedArray.getInt(R.styleable.SnowView_maxSize, 72);//獲取最大值恢暖,默認72
        int srcId = typedArray.getResourceId(R.styleable.SnowView_snowSrc, R.drawable.snow_flake);//獲取默認圖片資源ID
        snowSrc = BitmapFactory.decodeResource(getResources(), srcId);//根據(jù)資源ID生成Bitmap對象
        moveX = typedArray.getInt(R.styleable.SnowView_moveX, 10);//獲取X軸移動速度
        moveY = typedArray.getInt(R.styleable.SnowView_moveY, 10);//獲取Y軸移動速度
        if (minSize > maxSize){
            maxSize = minSize;
        }        
        typedArray.recycle();//TypedArray共享資源排监,資源回收
    }
}

activity_main.xml中:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.terana.mycustomview.MainActivity">

    <com.terana.mycustomview.cutstomview.SnowView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:minSize="16"
        app:maxSize="48"
        app:snowSrc="@drawable/snow_ball"
        app:moveX="10"
        app:moveY="10"/>

</RelativeLayout>

Part Three:布局測量

測量我們之前說過,除了MeasureSpec.AT_MOST這種杰捂,也就是包裹內(nèi)容需要根據(jù)情況設定個默認值舆床,其它的寫法完全可以一樣,可以照搬。

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        int width = getDefaultMeasureSizes(getSuggestedMinimumWidth(), widthMeasureSpec, true);
        int height = getDefaultMeasureSizes(getSuggestedMinimumHeight(), heightMeasureSpec, false);
        setMeasuredDimension(width, height);
    }

    private int getDefaultMeasureSizes(int suggestedMinimumSize, int defaultMeasureSpec, boolean flag) {
        int result = suggestedMinimumSize;
        int specMode = MeasureSpec.getMode(defaultMeasureSpec);
        int specSize = MeasureSpec.getSize(defaultMeasureSpec);
        switch (specMode){
            case MeasureSpec.UNSPECIFIED:
                result = suggestedMinimumSize;
                break;
            case MeasureSpec.AT_MOST:
                if (flag){
                    result = snowSrc.getWidth() + getPaddingLeft() +getPaddingRight();
                }else {
                    result = snowSrc.getHeight() + getPaddingTop() +getPaddingBottom();
                }
                break;
            case MeasureSpec.EXACTLY:
                result = specSize;
                break;
        }
        return result;
    }

其實從實際情況來說挨队,本例只需要讓SnowView全屏才比較適合谷暮,即便不寫測量布局,默認就是全屏顯示盛垦,只不過寫上更規(guī)范一些湿弦。

Part Four:繪制

好了,準備工作都做好了腾夯,可以正式開始畫圖了颊埃。
繪制工作很簡單,就是在onDraw方法里調(diào)用drawBitmap方法即可俯在,它有四個參數(shù):

  1. Bitmap bitmap:需要繪制的位圖竟秫,就是我們自定義的snowSrc。
  2. Rect src:就是位圖的原始區(qū)域跷乐,比如說想動態(tài)改變原圖的大小會調(diào)用肥败,本例用null就可以了,即不對原圖做任何改變愕提。
  3. RectF dst:位圖要放置在屏幕的區(qū)域馒稍,比如正中央或者屏幕頂端之類的。
  4. Paint paint:畫筆浅侨,不多說了纽谒,本例沒有啥特性繪制的東西,直接new一個默認即可如输。

暫時先把雪花畫一個固定位置鼓黔,比如屏幕的中心頂部:

public class SnowView extends View{
    private int minSize;    //雪花大小隨機值下限
    private int maxSize;    //雪花大小隨機值上限
    private Bitmap snowSrc; //雪花的圖案
    private int moveX;      //雪花每次移動的橫向距離,也就是橫向移動速度
    private int moveY;      //雪花每次移動的縱向距離不见,也就是縱向移動速度
    private Paint snowPaint;

    public SnowView(Context context) {
        this(context, null);
    }

    public SnowView(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public SnowView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        this(context, attrs, defStyleAttr, 0);
    }

    public SnowView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        initAttrs(context, attrs);
        initVariables();
    }

    private void initVariables() {
        snowPaint = new Paint();
    }

    private void initAttrs(Context context, AttributeSet attrs) {
        TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.SnowView, 0, 0);
        minSize = typedArray.getInt(R.styleable.SnowView_minSize, 48);//獲取最小值澳化,默認48
        maxSize = typedArray.getInt(R.styleable.SnowView_maxSize, 72);//獲取最大值,默認72
        int srcId = typedArray.getResourceId(R.styleable.SnowView_snowSrc, R.drawable.snow_flake);//獲取默認圖片資源ID
        snowSrc = BitmapFactory.decodeResource(getResources(), srcId);//根據(jù)資源ID生成Bitmap對象
        moveX = typedArray.getInt(R.styleable.SnowView_moveX, 10);//獲取X軸移動速度
        moveY = typedArray.getInt(R.styleable.SnowView_moveY, 10);//獲取Y軸移動速度
        if (minSize > maxSize){
            maxSize = minSize;
        }
        typedArray.recycle();//TypedArray共享資源稳吮,資源回收
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        int width = getDefaultMeasureSizes(getSuggestedMinimumWidth(), widthMeasureSpec, true);
        int height = getDefaultMeasureSizes(getSuggestedMinimumHeight(), heightMeasureSpec, false);
        setMeasuredDimension(width, height);
    }

    private int getDefaultMeasureSizes(int suggestedMinimumSize, int defaultMeasureSpec, boolean flag) {
        int result = suggestedMinimumSize;
        int specMode = MeasureSpec.getMode(defaultMeasureSpec);
        int specSize = MeasureSpec.getSize(defaultMeasureSpec);
        switch (specMode){
            case MeasureSpec.UNSPECIFIED:
                result = suggestedMinimumSize;
                break;
            case MeasureSpec.AT_MOST:
                if (flag){
                    result = snowSrc.getWidth() + getPaddingLeft() +getPaddingRight();
                }else {
                    result = snowSrc.getHeight() + getPaddingTop() +getPaddingBottom();
                }
                break;
            case MeasureSpec.EXACTLY:
                result = specSize;
                break;
        }
        return result;
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        RectF rectF = new RectF();
        //暫時畫在屏幕的中心頂部
        rectF.left = getWidth() / 2;
        rectF.top = 0;
        rectF.right = rectF.left +snowSrc.getWidth();
        rectF.bottom = rectF.top +snowSrc.getHeight();
        canvas.drawBitmap(snowSrc, null, rectF, snowPaint);
    }
}

運行下缎谷,看下結(jié)果:


單雪花不動.png

Part Five:重繪

一個靜止的單雪花已經(jīng)繪制出來了,下面就該讓它動起來灶似,并且位置隨機了列林。
先前的自定義View篇,我們是在外部通過handler傳遞消息并重繪酪惭。這次換個方式希痴,在SnowView的內(nèi)部使用handler。但是撞蚕,需要注意的是润梯,此處最好不使用new Handler來創(chuàng)建對象了,因為View的內(nèi)部自帶一個Handler。
另外纺铭,在Part Four中把初始位置寫死了寇钉,要想改變此位置,需要定義變量出來舶赔,并在onSizeChanged里面完成初始化扫倡,代碼如下

   @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        drawSnow(canvas);
    }

    @Override
    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
        super.onSizeChanged(w, h, oldw, oldh);
        currentX = w / 2;
    }
    
    private int currentX;
    private int currentY = 0;
    private void drawSnow(Canvas canvas) {
        //暫時畫在屏幕的中心頂部
        rectF.left = currentX;
        rectF.top = currentY;
        rectF.right = rectF.left +snowSrc.getWidth();
        rectF.bottom = rectF.top +snowSrc.getHeight();
        canvas.drawBitmap(snowSrc, null, rectF, snowPaint);
        getHandler().postDelayed(new Runnable() {
            @Override
            public void run() {
                moveSknowFlake();
                invalidate();
            }
        }, 20);
    }

    private void moveSknowFlake() {
        currentX = currentX + moveX;
        currentY = currentY + moveY;
        //判斷如果雪花移出屏幕左側(cè),右側(cè)或者下側(cè)竟纳,則回到起始位置重新開始
        if (currentX > getWidth() || currentX < 0 || currentY > getHeight()){
            currentX = getWidth() / 2;
            currentY = 0;
        }
    }

現(xiàn)在的結(jié)果是一朵雪花從固定位置開始撵溃,以固定的速度到固定位置結(jié)束。
最后一步優(yōu)化就是把這些都隨機化锥累。
完整的SnowView代碼為:

package com.terana.mycustomview.cutstomview;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;

import com.terana.mycustomview.R;

import java.util.Random;

public class SnowView extends View{
    private int minSize;    //雪花大小隨機值下限
    private int maxSize;    //雪花大小隨機值上限
    private Bitmap snowSrc; //雪花的圖案
    private int moveX;      //雪花每次移動的橫向距離缘挑,也就是橫向移動速度
    private int moveY;      //雪花每次移動的縱向距離,也就是縱向移動速度
    private Paint snowPaint;
    private RectF rectF;

    public SnowView(Context context) {
        this(context, null);
    }

    public SnowView(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public SnowView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        this(context, attrs, defStyleAttr, 0);
    }

    public SnowView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        initAttrs(context, attrs);
        initVariables();
    }

    private void initVariables() {
        snowPaint = new Paint();
        rectF = new RectF();
    }

    private void initAttrs(Context context, AttributeSet attrs) {
        TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.SnowView, 0, 0);
        minSize = typedArray.getInt(R.styleable.SnowView_minSize, 48);//獲取最小值桶略,默認48
        maxSize = typedArray.getInt(R.styleable.SnowView_maxSize, 72);//獲取最大值语淘,默認72
        int srcId = typedArray.getResourceId(R.styleable.SnowView_snowSrc, R.drawable.snow_flake);//獲取默認圖片資源ID
        snowSrc = BitmapFactory.decodeResource(getResources(), srcId);//根據(jù)資源ID生成Bitmap對象
        moveX = typedArray.getInt(R.styleable.SnowView_moveX, 10);//獲取X軸移動速度
        moveY = typedArray.getInt(R.styleable.SnowView_moveY, 10);//獲取Y軸移動速度
        if (minSize > maxSize){
            maxSize = minSize;
        }
        typedArray.recycle();//TypedArray共享資源,資源回收
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        int width = getDefaultMeasureSizes(getSuggestedMinimumWidth(), widthMeasureSpec, true);
        int height = getDefaultMeasureSizes(getSuggestedMinimumHeight(), heightMeasureSpec, false);
        setMeasuredDimension(width, height);
    }

    private int getDefaultMeasureSizes(int suggestedMinimumSize, int defaultMeasureSpec, boolean flag) {
        int result = suggestedMinimumSize;
        int specMode = MeasureSpec.getMode(defaultMeasureSpec);
        int specSize = MeasureSpec.getSize(defaultMeasureSpec);
        switch (specMode){
            case MeasureSpec.UNSPECIFIED:
                result = suggestedMinimumSize;
                break;
            case MeasureSpec.AT_MOST:
                if (flag){
                    result = snowSrc.getWidth() + getPaddingLeft() +getPaddingRight();
                }else {
                    result = snowSrc.getHeight() + getPaddingTop() +getPaddingBottom();
                }
                break;
            case MeasureSpec.EXACTLY:
                result = specSize;
                break;
        }
        return result;
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        drawSnow(canvas);
    }

    @Override
    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
        super.onSizeChanged(w, h, oldw, oldh);
        currentX = new Random().nextInt(w);//初始位置為屏幕寬度中的一個隨機值
        currentY = -(new Random().nextInt(h));//初始位置為屏幕的上方的隨機值际歼,不可見
    }

    private int currentX;
    private int currentY;
    private void drawSnow(Canvas canvas) {
        //暫時畫在屏幕的中心頂部
        rectF.left = currentX;
        rectF.top = currentY;
        rectF.right = rectF.left +snowSrc.getWidth();
        rectF.bottom = rectF.top +snowSrc.getHeight();
        canvas.drawBitmap(snowSrc, null, rectF, snowPaint);
        getHandler().postDelayed(new Runnable() {
            @Override
            public void run() {
                moveSknowFlake();
                invalidate();
            }
        }, 20);
    }

    private boolean moveDirection = true;
    private void moveSknowFlake() {
        if (moveDirection){
            currentX = currentX + (new Random().nextInt(4) + moveX);//速度為一個初始隨機值 + 設定橫移速度
        }else {
            currentX = currentX - (new Random().nextInt(4) + moveX);//速度為一個初始隨機值 + 設定橫移速度
        }
        currentY = currentY + (new Random().nextInt(4) + moveY);//速度為一個初始隨機值 + 設定豎移速度
        //判斷如果雪花移出屏幕左側(cè)惶翻,右側(cè)或者下側(cè),則回到起始位置重新開始
        if (currentX > getWidth() || currentX < 0 || currentY > getHeight()){
            currentX = new Random().nextInt(getWidth());
            currentY = 0;
            moveDirection = !moveDirection;//暫時互相取反鹅心,后面再隨機移動方向
        }
    }
}

效果為:


單雪花移動.gif

由于沒有引入創(chuàng)建雪花對象吕粗,很多地方的代碼比較生澀,效果也很一般旭愧。下一節(jié)會在現(xiàn)有基礎上完成完整的下雪效果颅筋,其實關鍵的代碼都已經(jīng)實現(xiàn)。剩下的無非就是再創(chuàng)建個對象输枯,用數(shù)組去繪制而已垃沦。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市用押,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌靶剑,老刑警劉巖蜻拨,帶你破解...
    沈念sama閱讀 221,406評論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異桩引,居然都是意外死亡缎讼,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,395評論 3 398
  • 文/潘曉璐 我一進店門坑匠,熙熙樓的掌柜王于貴愁眉苦臉地迎上來血崭,“玉大人,你說我怎么就攤上這事〖腥遥” “怎么了咽瓷?”我有些...
    開封第一講書人閱讀 167,815評論 0 360
  • 文/不壞的土叔 我叫張陵,是天一觀的道長舰讹。 經(jīng)常有香客問我茅姜,道長,這世上最難降的妖魔是什么月匣? 我笑而不...
    開封第一講書人閱讀 59,537評論 1 296
  • 正文 為了忘掉前任钻洒,我火速辦了婚禮,結(jié)果婚禮上锄开,老公的妹妹穿的比我還像新娘素标。我一直安慰自己,他們只是感情好萍悴,可當我...
    茶點故事閱讀 68,536評論 6 397
  • 文/花漫 我一把揭開白布头遭。 她就那樣靜靜地躺著,像睡著了一般退腥。 火紅的嫁衣襯著肌膚如雪任岸。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 52,184評論 1 308
  • 那天狡刘,我揣著相機與錄音享潜,去河邊找鬼。 笑死嗅蔬,一個胖子當著我的面吹牛剑按,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播澜术,決...
    沈念sama閱讀 40,776評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼艺蝴,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了鸟废?” 一聲冷哼從身側(cè)響起猜敢,我...
    開封第一講書人閱讀 39,668評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎盒延,沒想到半個月后缩擂,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 46,212評論 1 319
  • 正文 獨居荒郊野嶺守林人離奇死亡添寺,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,299評論 3 340
  • 正文 我和宋清朗相戀三年胯盯,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片计露。...
    茶點故事閱讀 40,438評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡博脑,死狀恐怖憎乙,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情叉趣,我是刑警寧澤泞边,帶...
    沈念sama閱讀 36,128評論 5 349
  • 正文 年R本政府宣布,位于F島的核電站君账,受9級特大地震影響繁堡,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜乡数,卻給世界環(huán)境...
    茶點故事閱讀 41,807評論 3 333
  • 文/蒙蒙 一椭蹄、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧净赴,春花似錦绳矩、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,279評論 0 24
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至金度,卻和暖如春应媚,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背猜极。 一陣腳步聲響...
    開封第一講書人閱讀 33,395評論 1 272
  • 我被黑心中介騙來泰國打工中姜, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人跟伏。 一個月前我還...
    沈念sama閱讀 48,827評論 3 376
  • 正文 我出身青樓丢胚,卻偏偏與公主長得像,于是被迫代替她去往敵國和親受扳。 傳聞我的和親對象是個殘疾皇子携龟,可洞房花燭夜當晚...
    茶點故事閱讀 45,446評論 2 359

推薦閱讀更多精彩內(nèi)容