1. 首页
  2. 移动开发
  3. 其他
  4. material components android compose theme adapter:一个库可重用XML定义的Material主题以在Jetpac

material components android compose theme adapter:一个库可重用XML定义的Material主题以在Jetpac

上传者: 2021-04-04 17:56:23上传 ZIP文件 769.12KB 热度 8次
MDC-Android撰写主题适配器 一个库,可以重用 XML主题的在进行主题化。 中主题的基础是可组合,您可以在其中提供包含样式参数的 , 和实例: MaterialTheme ( typography = type, colors = colors, shapes = shapes ) { // Surface, Scaffold, etc } 主题的允许通过XML主题属性对视图进行类似的主题设置,如下所示: < style name = " Theme.MyApp " parent = " Theme.MaterialComponents.DayNight " > <!-- Material color attributes --> < item xss=removed>@color/purple_50
下载地址
用户评论