We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Composable private fun ComposeUIImageItem( imgResId: Int, contentDescription: String, imgWidth: Dp = 56.dp, imgHeight: Dp = 90.dp ) { AndroidView( factory = { context -> SkinCompatImageView(context).apply { setImageResource(imgResId) setContentDescription(contentDescription) } }, update = { it.setImageResource(imgResId) }, modifier = Modifier .width(imgWidth) .height(imgHeight) ) }
简要思路:使用 Android View 来承载具体换肤的 View 遇到的问题:切换之后不会触发 Compose 重组,因为没有触发到 applySkin() 个人想法:修改起来较为复杂,工作时间有限,目前还是换成 Android 的自定义 View 来实现了。目测使用支持 Compose 的换肤框架会比较合理
The text was updated successfully, but these errors were encountered:
No branches or pull requests
简要思路:使用 Android View 来承载具体换肤的 View
遇到的问题:切换之后不会触发 Compose 重组,因为没有触发到 applySkin()
个人想法:修改起来较为复杂,工作时间有限,目前还是换成 Android 的自定义 View 来实现了。目测使用支持 Compose 的换肤框架会比较合理
The text was updated successfully, but these errors were encountered: