Skip to content

Instantly share code, notes, and snippets.

View whitescent's full-sized avatar
😭
A proof of my faint existence

WhiteScent whitescent

😭
A proof of my faint existence
View GitHub Profile
object MsgData {
private const val author = "Jetpack Compose 博物馆"
val messages = listOf(
Message(author, "我们开始更新啦"),
Message(author, "为了给广大的读者一个更好的体验,从今天起,我们公众号决定陆续发一些其他作者的高质量文章"),
Message(author, "每逢佳节倍思亲,从今天起,参加我们公众号活动的同学可以获得精美礼品一份!!"),
Message(author, "荣华梦一场,功名纸半张,是非海波千丈,马蹄踏碎禁街霜,听几度头鸡唱"),
Message(author, "唤归来,西湖山上野猿哀。二十年多少风流怪,花落花开。望云霄拜将台,袖星斗安邦策,破烟月迷魂寨。酸斋笑我,我笑酸斋"),
Message(author, "伤心尽处露笑颜,醉里孤单写狂欢。两路殊途情何奈,三千弱水忧忘川。花开彼岸朦胧色,月过长空爽朗天。青鸟思飞无侧羽,重山万水亦徒然"),
Message(author, "又到绿杨曾折处,不语垂鞭,踏遍清秋路。衰草连天无意绪,雁声远向萧关去。恨天涯行役苦,只恨西风,吹梦成今古。明日客程还几许,沾衣况是新寒雨"),
package com.compose.examples // 根据你的包名来
import android.app.Application
import android.content.res.Configuration
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.Image
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.BackHandler
import androidx.activity.compose.setContent
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.animation.core.tween
import androidx.compose.foundation.gestures.FlingBehavior
import androidx.compose.foundation.gestures.ScrollableDefaults
import androidx.compose.foundation.gestures.animateScrollBy
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.imeAnimationTarget