Newstrong's 博客

Kratos
专注于用户阅读体验的响应式博客主题
未分类

ZonedDateTime toString compatability with ISO 8601

I am trying to ensure that calling toString() on my ZonedDateTime Object will comply with ISO-8601 format. The documentation for the toString() method states: ...The output is compatible with ISO-8601 if the offset and ID are the same Does this mean that there…

2024年10月29日 0条评论 4点热度 0人点赞 newstrong 阅读全文
未分类

Jetpack 自定义 DropDownMenu

@Composable fun DropDownMenu(initPosition: Int, values: List<String>, onValueChange: (String) -> Unit) { val expanded = remember { mutableStateOf(false) } val itemPosition = remember { mutableIntStateOf(initPosition) } Box( modifier = Modifier .backgr…

2024年10月11日 0条评论 4点热度 0人点赞 newstrong 阅读全文
未分类

Compose 动画 (三) : AnimatedVisibility 从入门到深入,实现组件的隐藏和显示

1. AnimatedVisibility 是什么 AnimatedVisibility是Android Compose中的一个高级别动画API。 可以实现Compose组件的显示和隐藏,并且可以指定显示/隐藏时候的动画效果。(EnterTransition/ExitTransition) 和 animateXxxAsState、animateContentSize、Crossfade、AnimatedContent 这几个API一起,都是Compose的高级别动画API,是比较易用的。 2. AnimatedVi…

2024年10月10日 0条评论 3点热度 0人点赞 newstrong 阅读全文

近期文章

  • 世界,您好!
  • ZSH Git Plugin 别名表格
  • Prefer Function Reference over Lambda in Kotlin? Wrong!
  • ZonedDateTime toString compatability with ISO 8601
  • Jetpack 自定义 DropDownMenu
标签聚合
kotlin googleplay gpt

COPYRIGHT © 2026 Newstrong's 博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang