【问题标题】:Android: App Compat Theme - Dialog When LargeAndroid:Appcompat 主题 - 大型对话框
【发布时间】:2013-08-26 22:16:21
【问题描述】:

我想使用 AppCompat 库,但是没有 Dialog 主题,也没有我可以扩展或使用的 DialogWhenLarge 主题。

有没有一种方法可以扩展基本主题并使其成为 DialogWhenLarge,可能使用文件夹和自定义样式项。

谢谢

【问题讨论】:

    标签: android dialog android-appcompat


    【解决方案1】:

    关闭这张票。想知道答案的朋友可以看看这个。

    ActionBar in a DialogFragment

    以及文件夹值中的这种自定义样式-大

    <style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light">
        <!-- API 14 theme customizations can go here. -->
    </style>
    
     <style name="MyAppCompatDialogTheme" parent="AppBaseTheme">
        <item name="android:windowIsFloating">false</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowSoftInputMode">stateAlwaysHidden</item>
        <item name="android:windowActionModeOverlay">true</item>
        <item name="android:windowIsTranslucent">true</item>
    </style>
    

    但是我想我已经决定使用 DialogFragment 的路线,然后我可以将其加载到手机上的活动中,或者在平板电脑上显示为对话框,而不是这种将活动变成的半混搭方式一个对话框。

    【讨论】:

    • 您是否有机会在此处链接该方法的示例?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-06
    • 2011-07-13
    • 1970-01-01
    • 1970-01-01
    • 2017-11-24
    相关资源
    最近更新 更多