JetPack知識(shí)點(diǎn)實(shí)戰(zhàn)系列四:使用 TabLayout,ViewPager2 搂誉,RecyclerView實(shí)現(xiàn)實(shí)現(xiàn)歌單廣場(chǎng)頁(yè)面

為了實(shí)現(xiàn)循序漸進(jìn)的學(xué)習(xí)徐紧,本節(jié)先來(lái)利用TabLayout,ViewPager2 炭懊,RecyclerView實(shí)現(xiàn)實(shí)現(xiàn)歌單廣場(chǎng)頁(yè)面并级。網(wǎng)易云音樂(lè)APP的頁(yè)面效果如下所示:

網(wǎng)易云音樂(lè)歌單廣場(chǎng)界面

首先我們利用TabLayout和ViewPager2來(lái)實(shí)現(xiàn)上下聯(lián)動(dòng)的框架,讓上面部分Tab和下面部分左右滑動(dòng)能關(guān)聯(lián)起來(lái)凛虽。

上下結(jié)構(gòu)

ViewPager2

ViewPager2是2019年Google開(kāi)發(fā)大會(huì)發(fā)布的死遭。然后現(xiàn)在已經(jīng)發(fā)布了穩(wěn)定版本1.0.0

ViewPager2是基于RecyclerView進(jìn)行的優(yōu)化凯旋,并且提供了如下一些新的功能:

  1. 支持 橫向horizontal縱向vertical 的滾動(dòng)
  2. 支持從右向左RTL的布局
  3. 支持動(dòng)態(tài)添加Fragments 或者 Views呀潭。
設(shè)置ViewPager2可以通過(guò)以下一些步驟:

添加ViewPager2

  • 在app.gradle文件中添加如下依賴(lài)
implementation 'androidx.viewpager2:viewpager2:1.0.0'
  • 創(chuàng)建PlayListSquareFragment,在對(duì)應(yīng)的布局文件R.layout.fragment_play_list_square中將根布局改為ConstraintLayout至非,在根布局中加入一個(gè)ViewPager2元素
加入ViewPager2
  • 創(chuàng)建PlayListFragment钠署,這個(gè)Fragment是展示每個(gè)獨(dú)立的歌單列表的頁(yè)面。目前只放置一個(gè)文本荒椭。
歌單列表

然后修改PlayListFragment.kt文件的代碼如下:


class PlayListFragment : Fragment() {

    // 1 
    companion object {
        const val QueryKey = "query_key"
        fun getInstance(key: String): PlayListFragment {
            val fragment = PlayListFragment()
            Bundle().also {
                it.putString(QueryKey, key)
                fragment.arguments = it
            }
            return fragment
        }
    }

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        return inflater.inflate(R.layout.fragment_play_list, container, false)
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        // 2
        arguments?.getString(QueryKey)?.let {
            query_tv.text = it
        }
    }

}

代碼很好理解:

  1. 在伴生對(duì)象中建立了有一個(gè)參數(shù)名key的getInstance類(lèi)方法來(lái)創(chuàng)建PlayListFragment,
  2. 將參數(shù)名key對(duì)應(yīng)的值設(shè)置在TextView上

ViewPager2設(shè)置Adapter

  • PlayListSquareFragment頁(yè)面中的viewpager建立一個(gè)Adapter類(lèi)---PlayListSquareAdapter類(lèi)谐鼎。修改該類(lèi)的代碼如下:
class PlayListSquareAdapter(fragment: Fragment, private val items: Array<String>): FragmentStateAdapter(fragment) {

    // 1. 
    override fun getItemCount(): Int {
        return items.size
    }

    // 2
    override fun createFragment(position: Int): Fragment {
        return PlayListFragment.getInstance(items[position])
    }

}

代碼中兩個(gè)方法的作用是:

  1. 告訴ViewPager2總共顯示多少Fragment,即構(gòu)造函數(shù)中items的數(shù)組長(zhǎng)度
  2. 告訴ViewPager2每個(gè)Fragment對(duì)應(yīng)的對(duì)象趣惠,每個(gè)Fragment對(duì)象需要顯示一個(gè)文字狸棍,這個(gè)是通過(guò)構(gòu)造函數(shù)的items獲取到的。
  • ViewPager2設(shè)置Adapter

PlayListSquareFragment類(lèi)中加入如下代碼

private lateinit var playListNamesArray: Array<String>

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
    super.onViewCreated(view, savedInstanceState)
    // 1 
    playListNamesArray =  resources.getStringArray(R.array.play_list_names)
    // 2
    PlayListSquareAdapter(this, playListNamesArray).also {
        viewpager.adapter = it
    }

}

代碼的意義如下:

  1. strings.xml中讀取字符串?dāng)?shù)組
<string-array name="play_list_names">
    <item>推薦</item>
    <item>官方</item>
    <item>精品</item>
    <item>綜藝</item>
    <item>工作</item>
    <item>華語(yǔ)</item>
    <item>流行</item>
</string-array>
  1. 將字符串?dāng)?shù)組設(shè)置給Adapter味悄,然后將Adapter設(shè)置給ViewPager2對(duì)象

監(jiān)聽(tīng)ViewPager2的滾動(dòng)

  • PlayListSquareFragment類(lèi)中添加一個(gè)OnPageChangeCallback屬性
private val viewPagerChangeCallback = object : ViewPager2.OnPageChangeCallback() {
    override fun onPageSelected(position: Int) {
        super.onPageSelected(position)
        Toast.makeText(requireActivity(), "選擇了${playListNamesArray[position]}", Toast.LENGTH_SHORT).show()
    }
}
  • ViewPager2注冊(cè)回調(diào)
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
    super.onViewCreated(view, savedInstanceState)
    ...
    viewpager.registerOnPageChangeCallback(viewPagerChangeCallback)
}
總結(jié)

目前為止草戈,達(dá)到了階段性勝利,ViewPager2可以橫向滑動(dòng)了侍瑟。

ViewPager2

提示:

設(shè)置viewPager.orientation = ORIENTATION_VERTICAL 就能實(shí)現(xiàn)垂直翻頁(yè)的效果

設(shè)置viewPager.layoutDirection = ViewPager2.LAYOUT_DIRECTION_RTL 就能實(shí)現(xiàn)從右到左的布局

TabLayout

TabLayout屬于Google的Material Design庫(kù)中的控件唐片。它能和ViewPager2完美的銜接。

設(shè)置TabLayout可以通過(guò)以下一些步驟:

添加TabLayout

  • 在項(xiàng)目的app對(duì)應(yīng)的buildle.gradle中導(dǎo)入庫(kù):
implementation 'com.google.android.material:material:1.2.1'
  • 在布局文件中中加入TabLayout
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/constraint_root"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".Fragment.PlayListSquareFragment">
    <!-- TabLayout -->
    <com.google.android.material.tabs.TabLayout
        android:id="@+id/tablayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/colorPrimary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:tabRippleColor="#F5F5F5"
        app:tabIndicatorFullWidth="false"
        app:tabMode="scrollable"
        app:tabTextColor="#424242"
        app:tabSelectedTextColor="@color/colorAccent"
        />
    <!-- ViewPager2 -->
    <androidx.viewpager2.widget.ViewPager2
        android:id="@+id/viewpager"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/tablayout">

    </androidx.viewpager2.widget.ViewPager2>
</androidx.constraintlayout.widget.ConstraintLayout>

注意:引入的是com.google.android.material.tabs.TabLayout, 因?yàn)檫€有一個(gè)TabLayout.

我們來(lái)看一下設(shè)置的屬性

  1. app:tabRippleColor="#F5F5F5" 是點(diǎn)擊TabItem時(shí)候的波紋顏色
  2. app:tabIndicatorFullWidth="false" Indicator的寬度和標(biāo)題長(zhǎng)度一致涨颜,不是和TabItem的長(zhǎng)度一致
  3. app:tabMode="scrollable" TabItem很多的情況下可以滾動(dòng)
  4. app:tabTextColor="#424242" 沒(méi)有選中的文字的顏色
  5. app:tabSelectedTextColor="@color/colorAccent" 選中后文字的顏色
  • TabLayoutViewPager2關(guān)聯(lián)
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
    super.onViewCreated(view, savedInstanceState)
    ...
    TabLayoutMediator(tablayout, viewpager) { tab, position ->
        tab.text = playListNamesArray[position]
    }.attach()
}

借助TabLayoutMediatorattach方法即可將TabLayoutViewPager2關(guān)聯(lián)起來(lái)费韭。

效果如下
效果

RecyclerView

到此為止我們實(shí)現(xiàn)了不同類(lèi)型歌單頁(yè)面的切換,但是每個(gè)歌單的內(nèi)容頁(yè)還沒(méi)有內(nèi)容庭瑰。接下來(lái)我們用RecyclerView來(lái)實(shí)現(xiàn)歌單列表星持。

添加RecyclerView

  • 修改fragment_play_list.xml,添加一個(gè)RecyclerView作為容器
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/constraint_root"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".Fragment.PlayListFragment" >

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/recyclerview"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

給RecyclerView添加網(wǎng)格布局管理器

  • PlayListFragment 中初始化一個(gè)GridLayoutManager弹灭,然后賦值給RecyclerView
private lateinit var grideLayoutManager: GridLayoutManager

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
    super.onViewCreated(view, savedInstanceState)
    // 1.2
    grideLayoutManager = GridLayoutManager(requireActivity(), 3)
    recyclerview.layoutManager = grideLayoutManager
}

GridLayoutManager的布局是網(wǎng)格布局钉汗,構(gòu)造函數(shù)的3代表每行顯示3個(gè) Item羹令。

  • RecyclerView的每個(gè)Item設(shè)置樣式

新建一個(gè)item_playlist.xml布局文件,布局文件的樣式設(shè)置如下:

item樣式

創(chuàng)建RecyclerView.Adapter

ViewPager2一樣损痰,RecyclerView也是利用適配器模式構(gòu)建View福侈。需要新建一個(gè)Adapter繼承自RecyclerView.Adapter

適配器的代碼如下:

// 1
class PlaylistItemAdapter(private val playlists: List<PlayItem>):
    RecyclerView.Adapter<PlaylistItemAdapter.PlaylistItemHolder>() {

    // 2
    override fun onCreateViewHolder(
        parent: ViewGroup,
        viewType: Int
    ): PlaylistItemHolder {
        val v = LayoutInflater.from(parent.context).inflate(R.layout.item_playlist, parent, false)
        return PlaylistItemHolder(v)
    }

    // 3
    override fun onBindViewHolder(holder: PlaylistItemHolder, position: Int) {
        val playitem = playlists[position]
        holder.bindPlayItem(playitem)
    }

    // 4
    override fun getItemCount() = playlists.size


    // 5
    class PlaylistItemHolder(private val view: View) : RecyclerView.ViewHolder(view) {
        
        private var playItem: PlayItem? = null

        // 6
        fun bindPlayItem(item: PlayItem) {
            playItem = item
            view.play_title_tv.text = item.name
            if (item.playCount > 100000) {
                view.number_tv.text = view.resources.getString(R.string.wan, item.playCount/ 10000)
            } else {
                view.number_tv.text = "${item.playCount}"
            }
            if (item.highQuality) {
                view.highquality_iv.visibility = View.VISIBLE
            } else {
                view.highquality_iv.visibility = View.INVISIBLE
            }
            // 7
            Glide.with(view.context).load(item.coverImgUrl).into(view.play_iv)
        }
    }

}

這段代碼代表的意義如下:

  1. 新建的PlaylistItemAdapter需要繼承自RecyclerView.Adapter卢未,且需要指明一個(gè)泛型肪凛,這個(gè)泛型類(lèi)型是RecyclerView.ViewHolder的子類(lèi)。
  2. PlaylistItemAdapter需要復(fù)寫(xiě)三個(gè)方法辽社,onCreateViewHolder方法的作用是根據(jù)Item的布局生成PlaylistItemHolder對(duì)象伟墙。
  3. onBindViewHolder方法主要是實(shí)現(xiàn)數(shù)據(jù)和視圖的綁定,當(dāng)然這個(gè)綁定是通過(guò)RecyclerView.ViewHolderbindPlayItem方法實(shí)現(xiàn)的滴铅。
  4. getItemCount方法是告知RecyclerView應(yīng)該顯示多少個(gè)Item戳葵,而這個(gè)值是構(gòu)造傳入的playlists參數(shù)確定的。
  5. PlaylistItemHolderRecyclerView.ViewHolder的子類(lèi)汉匙,有一個(gè)view參數(shù)的構(gòu)造函數(shù)拱烁。
  6. 數(shù)據(jù)和視圖的綁定的具體實(shí)現(xiàn)。
  7. 由于圖片是從網(wǎng)絡(luò)加載的噩翠,這里將圖片網(wǎng)絡(luò)請(qǐng)求和加載交給了Glide庫(kù)去實(shí)現(xiàn)戏自。

說(shuō)明:Glide庫(kù)需要引入依賴(lài)

implementation 'com.github.bumptech.glide:glide:4.11.0'

annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

將Adapter賦值給RecyclerView

回到PlayListFragment類(lèi),添加如下代碼:

// 1
private var playItemList: ArrayList<PlayItem> = ArrayList()
// 
private lateinit var adapter: PlaylistItemAdapter

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
    super.onViewCreated(view, savedInstanceState)
    ...
    // 2
    adapter = PlaylistItemAdapter(playItemList)
    // 3
    recyclerview.adapter = adapter
}

代碼含義說(shuō)明:

  1. 定義一個(gè)空的ArrayList伤锚,作為Adapter的數(shù)據(jù)源
  2. 根據(jù)ArrayList初始化Adapter
  3. Adapter賦值給RecyclerView

目前為止擅笔,RecyclerView設(shè)置完成了。

不過(guò)很遺憾屯援,還無(wú)法顯示內(nèi)容猛们,因?yàn)?strong>playItemList還是個(gè)空數(shù)組,還沒(méi)有元素狞洋。

網(wǎng)絡(luò)數(shù)據(jù)請(qǐng)求和數(shù)據(jù)填充

onViewCreated中添加如下代碼弯淘,就實(shí)現(xiàn)了網(wǎng)絡(luò)數(shù)據(jù)請(qǐng)求和數(shù)據(jù)填充。

myScope.launch {
    // 1
    val response = MusicApiService.create().getHotPlaylist(30, 0)
    // 2
    playItemList.addAll(response.playlists)
    // 3
    adapter.notifyDataSetChanged()
}
  1. 網(wǎng)絡(luò)請(qǐng)求是上節(jié)的主要內(nèi)容徘铝,不再贅述
  2. 將請(qǐng)求到的數(shù)據(jù)放入數(shù)據(jù)源playItemList
  3. adapter調(diào)用notifyDataSetChanged執(zhí)行刷新界面
效果

優(yōu)化界面

將圖片設(shè)置成有5dp的圓角

設(shè)置圓角有多種實(shí)現(xiàn)方法耳胎,這里介紹兩種:

方法一:使用clipToOutlineViewOutlineProvider
  • View擴(kuò)展一個(gè)方法
/* View設(shè)置圓角 */
fun View.clipViewCornerByDp(dp: Float) {
    clipToOutline = true
    outlineProvider = object : ViewOutlineProvider() {
        override fun getOutline(view: View?, outline: Outline?) {
            view?.let {
                outline?.setRoundRect(0, 0, width, height, it.context.dp2px(dp).toFloat())
            }
        }
    }
}

  • 這里涉及到一個(gè)DP轉(zhuǎn)PX的問(wèn)題惯吕,所以調(diào)用了ContextEx的轉(zhuǎn)換方法
fun Context.dp2px(dpValue: Float): Int {
    val scale = resources.displayMetrics.density
    return (dpValue * scale + 0.5f).toInt()
}
  • ImageView直接調(diào)用clipViewCornerByDp方法
override fun onCreateViewHolder(
        parent: ViewGroup,
        viewType: Int
    ): PlaylistItemHolder {
    val v = LayoutInflater.from(parent.context).inflate(R.layout.item_playlist, parent, false)
    // 使用的地方
    v.play_iv.clipViewCornerByDp(5.0F)
    return PlaylistItemHolder(v)
}
方法二:使用Glide庫(kù)的RequestOptions
  • 給ImageView擴(kuò)展一個(gè)方法
fun ImageView.loadRoundCornerImage(context: Context, path: String, roundingRadius: Int = 5, placeholder: Int = R.mipmap.ic_launcher, useCache: Boolean = false) {
    getOptions(placeholder, useCache).also {
        Glide.with(context).load(path).apply(RequestOptions.bitmapTransform(RoundedCorners(context.dp2px(roundingRadius.toFloat())))).apply(it).into(this)
    }
}
  • bindPlayItem時(shí)ImageView調(diào)用loadRoundCornerImage方法
 view.play_iv.loadRoundCornerImage(view.context, item.coverImgUrl,5)

幾個(gè)界面的請(qǐng)求地址不同

接下來(lái)我們來(lái)實(shí)現(xiàn)不同的頁(yè)面的請(qǐng)求對(duì)應(yīng)的數(shù)據(jù)惕它。

// 1
private lateinit var catName: String


override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
    super.onViewCreated(view, savedInstanceState)
    ...
    // 2
    arguments?.getString(QueryKey)?.let {
        catName = it
    }
    // 3
    requestData()
}


fun requestData() {
    myScope.launch {
        when (catName) {
            "推薦" -> {
                val response = MusicApiService.create().getRecommendPlaylist(30, 0)
                playItemList.addAll(response.playlists)
            }
            "精品" -> {
                val response = MusicApiService.create().getHighQualityPlaylist(30, 0)
                playItemList.addAll(response.playlists)
            }
            "官方" -> {
                val response = MusicApiService.create().getCatPlaylist(30, 0, "new", null)
                playItemList.addAll(response.playlists)
                }
            else -> {
                val response = MusicApiService.create().getCatPlaylist(30, 0, null, catName)
                playItemList.addAll(response.playlists)
            }
        }
        adapter.notifyDataSetChanged()
    }
}

這段代碼的意思應(yīng)該還是比較清晰的:

  1. 定義catName保存?zhèn)魅氲?strong>QueryKey
  2. 獲取傳入的QueryKey
  3. requestData方法是根據(jù)不同的QueryKey執(zhí)行不同的請(qǐng)求
效果
最后效果

下節(jié)預(yù)告

這個(gè)界面目前還有個(gè)問(wèn)題,就是沒(méi)法滑到底部后實(shí)現(xiàn)加載更多數(shù)據(jù)的功能废登。

Google提供了一個(gè)這Paging庫(kù)來(lái)實(shí)現(xiàn)加載更多缔赠,但是需要LiveData的支持啸蜜,所以后面會(huì)介紹LiveData及其相關(guān)的知識(shí)再來(lái)實(shí)現(xiàn)加載更多的功能。

敬請(qǐng)期待匣吊。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市昧穿,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖虎韵,帶你破解...
    沈念sama閱讀 216,402評(píng)論 6 499
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異缸废,居然都是意外死亡包蓝,警方通過(guò)查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,377評(píng)論 3 392
  • 文/潘曉璐 我一進(jìn)店門(mén)企量,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)测萎,“玉大人,你說(shuō)我怎么就攤上這事届巩」枨疲” “怎么了?”我有些...
    開(kāi)封第一講書(shū)人閱讀 162,483評(píng)論 0 353
  • 文/不壞的土叔 我叫張陵恕汇,是天一觀的道長(zhǎng)腕唧。 經(jīng)常有香客問(wèn)我,道長(zhǎng)拇勃,這世上最難降的妖魔是什么四苇? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 58,165評(píng)論 1 292
  • 正文 為了忘掉前任,我火速辦了婚禮方咆,結(jié)果婚禮上月腋,老公的妹妹穿的比我還像新娘。我一直安慰自己瓣赂,他們只是感情好榆骚,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,176評(píng)論 6 388
  • 文/花漫 我一把揭開(kāi)白布。 她就那樣靜靜地躺著煌集,像睡著了一般妓肢。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上苫纤,一...
    開(kāi)封第一講書(shū)人閱讀 51,146評(píng)論 1 297
  • 那天碉钠,我揣著相機(jī)與錄音,去河邊找鬼卷拘。 笑死喊废,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的栗弟。 我是一名探鬼主播污筷,決...
    沈念sama閱讀 40,032評(píng)論 3 417
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼乍赫!你這毒婦竟也來(lái)了瓣蛀?” 一聲冷哼從身側(cè)響起陆蟆,我...
    開(kāi)封第一講書(shū)人閱讀 38,896評(píng)論 0 274
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎惋增,沒(méi)想到半個(gè)月后叠殷,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,311評(píng)論 1 310
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡诈皿,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,536評(píng)論 2 332
  • 正文 我和宋清朗相戀三年溪猿,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片纫塌。...
    茶點(diǎn)故事閱讀 39,696評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡诊县,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出措左,到底是詐尸還是另有隱情依痊,我是刑警寧澤,帶...
    沈念sama閱讀 35,413評(píng)論 5 343
  • 正文 年R本政府宣布怎披,位于F島的核電站胸嘁,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏凉逛。R本人自食惡果不足惜性宏,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,008評(píng)論 3 325
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望状飞。 院中可真熱鬧毫胜,春花似錦、人聲如沸诬辈。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 31,659評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)焙糟。三九已至口渔,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間穿撮,已是汗流浹背缺脉。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 32,815評(píng)論 1 269
  • 我被黑心中介騙來(lái)泰國(guó)打工, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留悦穿,地道東北人攻礼。 一個(gè)月前我還...
    沈念sama閱讀 47,698評(píng)論 2 368
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像咧党,于是被迫代替她去往敵國(guó)和親秘蛔。 傳聞我的和親對(duì)象是個(gè)殘疾皇子陨亡,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,592評(píng)論 2 353

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