Android:RippleDrawable 水波紋/漣漪效果

一、效果圖

二、RippleDrawable基本概念介紹

(1)、RippleDrawable

RippleDrawable可以實(shí)現(xiàn)上面效果圖中的水波紋效果,它是在API 21 中添加的,所以,低于21的版本中不可使用。它的繼承關(guān)系如下:

根據(jù)上面的繼承關(guān)系,我們可知,我們可以用它來(lái)做背景;RippleDrawable是有層級(jí)的——LayerDrawable的特性。

(2)、xml屬性

RippleDrawable在xml中對(duì)應(yīng)的是 <ripple></ripple>,它只有兩個(gè)屬性——color、radius。具體可參考下圖:

(3)、ripple的特性

A touch feedback drawable may contain multiple child layers, including a special mask layer that is not drawn to the screen. A single layer may be set as the mask from XML by specifying its android:id value as [R.id.mask](https://developer.android.com/reference/android/R.id.html#mask). At run time, a single layer may be set as the mask using setId(..., android.R.id.mask) or an existing mask layer may be replaced using setDrawableByLayerId(android.R.id.mask, ...).

  • ripple可以對(duì)觸摸事件作出相應(yīng)的反饋,它可以包含多個(gè)item。
  • 其中id 為 mask 的item 在初始化界面時(shí)不會(huì)直接繪制出來(lái),而是在發(fā)生觸摸之后才會(huì)繪制。
  • mask 直譯過來(lái)有遮罩的意思,它會(huì)限定水波紋的范圍。
  • 如果我們需要將 ripple 中的某個(gè)item設(shè)置為 mask , 在xml 中,直接為該item設(shè)置id屬性即可——android:id="@android:id/mask" ; 在Java代碼中如果想替換現(xiàn)有的mask,可以通過 RippleDrawable中的 setDrawableByLayerId(android.R.id.mask, newDrawable)來(lái)實(shí)現(xiàn)。
  • 沒有指定mask ,并且也沒有指定radius 時(shí),會(huì)以控件寬高中的較大值為直徑繪制水波紋,這樣就必然會(huì)超出控件的范圍,所以,這種效果也叫做 無(wú)界水波紋效果。
  • 指定mask 后 ,id 為 mask 的item 中指定的drawable 可以限定水波紋的范圍。

三、代碼示例:

(1)、xml 中定義 ripple

下列代碼依次對(duì)應(yīng)效果圖中的前6個(gè)。

  • ripple_1.xml
<?xml version="1.0" encoding="utf-8"?>

<!--只有一個(gè) ripple 節(jié)點(diǎn)-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:color="@color/colorAccent"
    tools:targetApi="lollipop">

</ripple>
  • ripple_2.xml
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:color="@color/colorAccent"
    tools:targetApi="lollipop">

    <!--為drawable 賦一個(gè)color 值,是不生效的-->
    <item
        android:id="@android:id/mask"
        android:drawable="@color/blue" />
</ripple>
  • ripple_3.xml
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:color="@color/colorAccent"
    tools:targetApi="lollipop">

    <!--這里使用drawable時(shí),并不是所有drawable都生效。需要帶有透明邊框.否則,圖片不生效。而且,繪制出來(lái)之后會(huì)更改掉原圖的色彩信息,
    圖片的顏色值會(huì)變?yōu)?ripple 節(jié)點(diǎn)中的 color 值;ripple 只會(huì)在該圖片區(qū)域內(nèi)有效;圖片會(huì)被拉伸-->
    <item
        android:id="@android:id/mask"
        android:drawable="@drawable/act_attentioned" />
    <!--android:drawable="@drawable/square_team_selected"/>-->
</ripple>
  • ripple_4.xml
<?xml version="1.0" encoding="utf-8"?>

<!--以此作為 backGround時(shí),控件初始時(shí)使用 item 作為bg ; 按壓時(shí)會(huì)有一個(gè)色值漸變效果,按住不松時(shí)會(huì)顯示 ripple 和 item 中顏色的混合值;
松手的瞬間會(huì)顯示 ripple 中色值,然后再漸變?yōu)閕tem中的色值-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:color="@color/colorAccent"
    tools:targetApi="lollipop">

    <item>
        <shape android:shape="rectangle">
            <solid android:color="@color/blue" />
            <corners android:radius="@dimen/dp10" />
        </shape>
    </item>

</ripple>
  • ripple_5.xml
<?xml version="1.0" encoding="utf-8"?>

<!--以此作為 backGround時(shí),控件沒有默認(rèn)背景色;生效的只有ripple中的色值;此時(shí),item 只要控制ripple 的范圍-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:color="@color/colorAccent"
    tools:targetApi="lollipop">

    <item android:id="@android:id/mask">
        <shape android:shape="rectangle">
            <solid android:color="@color/blue" />
            <corners android:radius="@dimen/dp10" />
        </shape>
    </item>

</ripple>
  • ripple_6.xml
<?xml version="1.0" encoding="utf-8"?>

<!--相當(dāng)于 ripple 和 selector 的疊加-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:color="@color/colorAccent"
    tools:targetApi="lollipop">

    <item>
        <selector>
            <item
                android:drawable="@drawable/daomeixiong"
                android:state_pressed="true" />

            <item android:drawable="@drawable/gongfuxiongmao" />
        </selector>
    </item>
</ripple>

(2)、java代碼中定義ripple

下列代碼依次對(duì)應(yīng)效果圖中的后五個(gè)

/**
 * 作者:CnPeng
 * 時(shí)間:2018/8/8
 * 功用:Ripple使用示例
 * 其他:
 */
public class RippleDrawableActivity extends AppCompatActivity {
    ActivityRippleBinding mBinding;

    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBinding = DataBindingUtil.setContentView(this, R.layout.activity_ripple);

        initTv1RippleBG(R.color.f9cf87);
        initTv2RippleBG();
        initTv3RippleBG();
        initTv4RippleBG();
        initTv5RippleBG();
    }

    /**
     * 作者:CnPeng
     * 時(shí)間:2018/8/8 下午3:37
     * 功用:xml中已經(jīng)設(shè)置背景為 ripple_1.xml 為背景,此處是更改ripple_1中的顏色
     * 說(shuō)明:
     */
    @SuppressLint("ClickableViewAccessibility")
    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    public void initTv1RippleBG(final int colorResId) {
        final RippleDrawable rippleDrawable = (RippleDrawable) mBinding.tvRippleBg1.getBackground();
        mBinding.tvRippleBg1.setOnTouchListener(new View.OnTouchListener() {
            @RequiresApi(api = Build.VERSION_CODES.M)
            @Override
            public boolean onTouch(View v, MotionEvent event) {
                rippleDrawable.setHotspot(event.getX(), event.getY());
                //如果radius小于控件的寬高中的大值,則,觸摸超出radius的部分時(shí),也只會(huì)在控件中心位置為起點(diǎn)以radius為半徑繪制ripple
                rippleDrawable.setRadius(200);
                rippleDrawable.setColor(ColorStateList.valueOf(getResources().getColor(colorResId)));
                return false;
            }
        });
    }

    /**
     * 作者:CnPeng
     * 時(shí)間:2018/8/8 下午12:02
     * 功用:以代碼的方式構(gòu)建rippleDrawable為背景——沒有設(shè)置mask
     * 說(shuō)明:http://www.tothenew.com/blog/ripple-effect-in-android/
     * https://www.programcreek.com/java-api-examples/index.php?api=android.graphics.drawable.RippleDrawable
     */
    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    private void initTv2RippleBG() {

        int[][] stateList = new int[][]{
                new int[]{android.R.attr.state_pressed},
                new int[]{android.R.attr.state_focused},
                new int[]{android.R.attr.state_activated},
                new int[]{}
        };

        //深藍(lán)
        int normalColor = Color.parseColor("#303F9F");
        //玫瑰紅
        int pressedColor = Color.parseColor("#FF4081");
        int[] stateColorList = new int[]{
                pressedColor,
                pressedColor,
                pressedColor,
                normalColor
        };
        ColorStateList colorStateList = new ColorStateList(stateList, stateColorList);

        RippleDrawable rippleDrawable = new RippleDrawable(colorStateList, null, null);
        mBinding.tvRippleBg2.setBackground(rippleDrawable);
    }

    /**
     * 作者:CnPeng
     * 時(shí)間:2018/8/8 下午12:02
     * 功用:以代碼的方式構(gòu)建rippleDrawable為背景——有drawable,但不設(shè)置mask
     * 說(shuō)明:http://www.tothenew.com/blog/ripple-effect-in-android/
     * https://www.programcreek.com/java-api-examples/index.php?api=android.graphics.drawable.RippleDrawable
     */
    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    private void initTv3RippleBG() {

        int[][] stateList = new int[][]{
                new int[]{android.R.attr.state_pressed},
                new int[]{android.R.attr.state_focused},
                new int[]{android.R.attr.state_activated},
                new int[]{}
        };

        //深藍(lán)
        int normalColor = Color.parseColor("#303F9F");
        //玫瑰紅
        int pressedColor = Color.parseColor("#FF4081");
        int[] stateColorList = new int[]{
                pressedColor,
                pressedColor,
                pressedColor,
                normalColor
        };
        ColorStateList colorStateList = new ColorStateList(stateList, stateColorList);

        Drawable drawable = getResources().getDrawable(R.drawable.act_attentioned);
        RippleDrawable rippleDrawable = new RippleDrawable(colorStateList, drawable, null);
        mBinding.tvRippleBg3.setBackground(rippleDrawable);
    }

    /**
     * 作者:CnPeng
     * 時(shí)間:2018/8/8 下午12:02
     * 功用:以代碼的方式構(gòu)建rippleDrawable為背景——無(wú)drawable,設(shè)置mask
     * 說(shuō)明:http://www.tothenew.com/blog/ripple-effect-in-android/
     * https://www.programcreek.com/java-api-examples/index.php?api=android.graphics.drawable.RippleDrawable
     */
    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    private void initTv4RippleBG() {

        int[][] stateList = new int[][]{
                new int[]{android.R.attr.state_pressed},
                new int[]{android.R.attr.state_focused},
                new int[]{android.R.attr.state_activated},
                new int[]{}
        };

        //深藍(lán)
        int normalColor = Color.parseColor("#303F9F");
        //玫瑰紅
        int pressedColor = Color.parseColor("#FF4081");
        int[] stateColorList = new int[]{
                pressedColor,
                pressedColor,
                pressedColor,
                normalColor
        };
        ColorStateList colorStateList = new ColorStateList(stateList, stateColorList);

        Drawable drawable = getResources().getDrawable(R.drawable.act_attentioned);
        RippleDrawable rippleDrawable = new RippleDrawable(colorStateList, null, drawable);
        mBinding.tvRippleBg4.setBackground(rippleDrawable);
    }

    /**
     * 作者:CnPeng
     * 時(shí)間:2018/8/8 下午12:02
     * 功用:以代碼的方式構(gòu)建rippleDrawable為背景——有drawable,設(shè)置mask
     * 說(shuō)明:http://www.tothenew.com/blog/ripple-effect-in-android/
     * https://www.programcreek.com/java-api-examples/index.php?api=android.graphics.drawable.RippleDrawable
     */
    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    private void initTv5RippleBG() {

        int[][] stateList = new int[][]{
                new int[]{android.R.attr.state_pressed},
                new int[]{android.R.attr.state_focused},
                new int[]{android.R.attr.state_activated},
                new int[]{}
        };

        //深藍(lán)
        int normalColor = Color.parseColor("#303F9F");
        //玫瑰紅
        int pressedColor = Color.parseColor("#FF4081");
        int[] stateColorList = new int[]{
                pressedColor,
                pressedColor,
                pressedColor,
                normalColor
        };
        ColorStateList colorStateList = new ColorStateList(stateList, stateColorList);

        float[] outRadius = new float[]{10, 10, 15, 15, 20, 20, 25, 25};
        RoundRectShape roundRectShape = new RoundRectShape(outRadius, null, null);
        ShapeDrawable maskDrawable = new ShapeDrawable();
        maskDrawable.setShape(roundRectShape);
        maskDrawable.getPaint().setColor(Color.parseColor("#000000"));
        maskDrawable.getPaint().setStyle(Paint.Style.FILL);

        ShapeDrawable contentDrawable = new ShapeDrawable();
        contentDrawable.setShape(roundRectShape);
        contentDrawable.getPaint().setColor(Color.parseColor("#f7c653"));
        contentDrawable.getPaint().setStyle(Paint.Style.FILL);

        //contentDrawable實(shí)際是默認(rèn)初始化時(shí)展示的;maskDrawable 控制了rippleDrawable的范圍
        RippleDrawable rippleDrawable = new RippleDrawable(colorStateList, contentDrawable, maskDrawable);
        mBinding.tvRippleBg5.setBackground(rippleDrawable);
    }
}

(3)、activity_ripple.xml

<?xml version="1.0" encoding="utf-8"?>
<layout>

    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fillViewport="true"
        android:orientation="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center_horizontal"
            android:orientation="vertical"
            android:padding="@dimen/dp10">

            <!--無(wú)界水波紋效果,所謂無(wú)界,實(shí)際是以空間寬度或高度中的大值作為直徑繪制一個(gè)園-->
            <TextView
                android:layout_width="150dp"
                android:layout_height="50dp"
                android:background="@drawable/ripple_1"
                android:clickable="true"
                android:gravity="center"
                android:text="不設(shè)置mask/wrapContent" />

            <TextView
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:background="@drawable/ripple_1"
                android:clickable="true"
                android:gravity="center"
                android:text="不設(shè)置mask/match_parent" />

            <!--有界水波紋效果。水波紋效果只在控件內(nèi)繪制-->
            <TextView
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:background="@drawable/ripple_2"
                android:clickable="true"
                android:gravity="center"
                android:text="mask/match_parent/drawable_color" />

            <TextView
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:background="@drawable/ripple_3"
                android:clickable="true"
                android:gravity="center"
                android:text="mask/match_parent/drawable_drawable" />

            <TextView
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:background="@drawable/ripple_4"
                android:clickable="true"
                android:gravity="center"
                android:text="match_parent/drawable_shape" />

            <TextView
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:layout_marginTop="@dimen/dp10"
                android:background="@drawable/ripple_5"
                android:clickable="true"
                android:gravity="center"
                android:text="match_parent/drawable_shape" />

            <TextView
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:layout_marginTop="@dimen/dp10"
                android:background="@drawable/ripple_6"
                android:clickable="true"
                android:gravity="center"
                android:text="match_parent/drawable_shape" />


            <!--測(cè)試代碼控制ripple顏色-->
            <TextView
                android:id="@+id/tv_rippleBg1"
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:layout_marginTop="@dimen/dp10"
                android:background="@drawable/ripple_1"
                android:clickable="true"
                android:gravity="center"
                android:text="代碼控制更改ripple.xml中的顏色" />

            <!--測(cè)試代碼控制ripple顏色-->
            <TextView
                android:id="@+id/tv_rippleBg2"
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:layout_marginTop="@dimen/dp10"
                android:clickable="true"
                android:gravity="center"
                android:text="代碼編寫ripple作為Tv背景_無(wú)derawable_無(wú)mask" />

            <!--測(cè)試代碼控制ripple顏色-->
            <TextView
                android:id="@+id/tv_rippleBg3"
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:layout_marginTop="@dimen/dp10"
                android:clickable="true"
                android:gravity="center"
                android:text="代碼控制ripple3_有drawable_無(wú)mask" />

            <!--測(cè)試代碼控制ripple顏色-->
            <TextView
                android:id="@+id/tv_rippleBg4"
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:layout_marginTop="@dimen/dp10"
                android:clickable="true"
                android:gravity="center"
                android:text="代碼控制ripple4_無(wú)drawable_有mask" />

            <!--測(cè)試代碼控制ripple顏色-->
            <TextView
                android:id="@+id/tv_rippleBg5"
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:layout_marginTop="@dimen/dp10"
                android:clickable="true"
                android:gravity="center"
                android:text="代碼控制ripple5_有drawable_有mask" />
        </LinearLayout>
    </ScrollView>
</layout>

四、總結(jié)

(1)、漣漪效果的應(yīng)用現(xiàn)狀

應(yīng)用名稱 是否應(yīng)用漣漪效果 應(yīng)用的位置
知乎 在底部導(dǎo)航和首頁(yè)列表中有應(yīng)用
QQ 無(wú) 無(wú)
微信 無(wú) 無(wú)
簡(jiǎn)書 無(wú) 無(wú)
支付寶 無(wú) 無(wú)
口碑 無(wú) 無(wú)
微博 無(wú) 無(wú)
美團(tuán) 無(wú) 無(wú)
淘寶 消息列表和Dialog中的按鈕

在查看了我自己常用的幾款軟件之后,發(fā)現(xiàn),只有知乎和淘寶在局部使用了這個(gè)漣漪效果,這。。。似乎有點(diǎn)尷尬啊

(2)、參考文章:

http://www.tothenew.com/blog/ripple-effect-in-android/

https://developer.android.com/reference/android/graphics/drawable/RippleDrawable

https://www.programcreek.com/java-api-examples/index.php?api=android.graphics.drawable.RippleDrawable

(3)、代碼地址

文中代碼地址為:https://github.com/CnPeng/CnPengAndroid.git
文中內(nèi)容對(duì)應(yīng)其中的:b_35_rippleDrawable 文件夾


本文到此結(jié)束,謝謝觀看!
如有不足,敬請(qǐng)指正!

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 228,156評(píng)論 6 531
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 98,401評(píng)論 3 415
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái),“玉大人,你說(shuō)我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 176,069評(píng)論 0 373
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)。 經(jīng)常有香客問我,道長(zhǎng),這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 62,873評(píng)論 1 309
  • 正文 為了忘掉前任,我火速辦了婚禮,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 71,635評(píng)論 6 408
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 55,128評(píng)論 1 323
  • 那天,我揣著相機(jī)與錄音,去河邊找鬼。 笑死,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 43,203評(píng)論 3 441
  • 文/蒼蘭香墨 我猛地睜開眼,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來(lái)了?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 42,365評(píng)論 0 288
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 48,881評(píng)論 1 334
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 40,733評(píng)論 3 354
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 42,935評(píng)論 1 369
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 38,475評(píng)論 5 358
  • 正文 年R本政府宣布,位于F島的核電站,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 44,172評(píng)論 3 347
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 34,582評(píng)論 0 26
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)。三九已至,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 35,821評(píng)論 1 282
  • 我被黑心中介騙來(lái)泰國(guó)打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 51,595評(píng)論 3 390
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 47,908評(píng)論 2 372

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

  • Android 自定義View的各種姿勢(shì)1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 172,618評(píng)論 25 708
  • afinalAfinal是一個(gè)android的ioc,orm框架 https://github.com/yangf...
    wgl0419閱讀 6,298評(píng)論 1 9
  • 周日的到來(lái),簡(jiǎn)直讓人感動(dòng),終于可以和肥仔黏在一起了。雖然實(shí)際上,他如唐僧般對(duì)蜘蛛精的百般撩撥不為所動(dòng)……魅力值-1...
    肥肥的胖胖閱讀 333評(píng)論 0 0
  • 沒有一個(gè)系統(tǒng)可以永不犯錯(cuò)。這個(gè)錯(cuò)誤可能是用戶犯的也可能是系統(tǒng)本身。不管是那種情況,掌控錯(cuò)誤都非常重要,因?yàn)檫@對(duì)于用...
    null111閱讀 470評(píng)論 0 0
  • 今天和大家來(lái)聊聊護(hù)膚那些事兒 這一年來(lái)我經(jīng)歷了一段不堪回首的護(hù)膚之路,曾經(jīng)讓我頗為自得的皮膚,在「胡亂」使用了各種...
    Audrey穿搭筆記閱讀 5,139評(píng)論 0 5