【问题标题】:Android 'Complete action using' themeAndroid“使用完成操作”主题
【发布时间】:2015-09-25 20:08:10
【问题描述】:

我想制作一个应用程序,它使用与 Android 5 上的“完整操作使用”应用程序相同的主题。它甚至存在还是我必须自己编写?

【问题讨论】:

    标签: android material-design android-theme


    【解决方案1】:

    我终于找到了,如何实现这一点。主题是:Theme.Material.Light.NoActionBar,那么就需要添加一个fragment。编辑主题,使活动透明:

    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowIsFloating">true</item>
    <item name="android:backgroundDimEnabled">true</item>
    

    最后将片段的背景设置为白色。

    android:background="@color/primary"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-23
      • 2012-08-29
      • 2013-03-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多