Caf*_*olf 5 user-interface android
我看到一些应用已经支持材料设计了.例如,SMS应用Textra支持材料设计.它在我的KitKat上工作正常.如何在旧版Android上使用材质设计.我使用它时会出错
<resources>
<!-- your app's theme inherits from the Material theme -->
<style name="AppTheme" parent="android:Theme.Material">
<!-- theme customizations -->
</style>
Run Code Online (Sandbox Code Playgroud)
有什么解决方案吗?
没有直接的方法
<resources>
<!-- your app's theme inherits from the Material theme -->
<style name="AppTheme" parent="android:Theme.Material">
<!-- theme customizations -->
</style>
Run Code Online (Sandbox Code Playgroud)
但在 KitKat 中,我们可以通过使用 Translucent UI 毫不费力地带来 Material 主题的外观和感觉。
FLAG_TRANSLUCENT_STATUS or
<item name="android:windowTranslucentNavigation">false</item>
<item name="android:windowTranslucentStatus">true</item>
Run Code Online (Sandbox Code Playgroud)
查看这篇文章以获取更多信息:KitKat 中的材质主题外观和感觉
归档时间: |
|
查看次数: |
6173 次 |
最近记录: |