AlertDialog 自定义背景

来源:互联网 发布:mac 查找路径 编辑:程序博客网 时间:2024/05/18 01:25
 A  内容为ListView时,更改如下item改变相应的颜色
         
         topDark 更改title背景颜色
        <item name="android:topDark">@drawable/popup_top_dark</item>
         
         存在title 和 button 时  centerBright 为content背景图片
        <item name="android:centerBright">@drawable/popup_center_bright</item>
         
         存在title 不存在 button 时  bottomBright 为content背景图片 -->
        <item name="android:bottomBright">@drawable/green</item>


         bottomMedium 更改bottom背景颜色
        <item name="android:bottomMedium">@drawable/popup_bottom_medium</item>   
        
        B  内容为文字时,更改如下项目改变相应颜色
        
         topDark 更改title背景颜色 
        <item name="android:topDark">@drawable/alert_red</item>
        
         centerDark 更改content背景颜色 
        <item name="android:centerDark">@drawable/alert_gray</item>
         
         bottomMedium 更改bottom背景颜色 
        <item name="android:bottomMedium">@drawable/alert_white</item>


        <item name="fullDark">@android:drawable/popup_full_dark</item>
        <item name="topDark">@android:drawable/popup_top_dark</item>
        <item name="centerDark">@android:drawable/popup_center_dark</item>
        <item name="bottomDark">@android:drawable/popup_bottom_dark</item>
        <item name="fullBright">@android:drawable/popup_full_bright</item>
        <item name="topBright">@android:drawable/popup_top_bright</item>
        <item name="centerBright">@android:drawable/popup_center_bright</item>
        <item name="bottomBright">@android:drawable/popup_bottom_bright</item>
        <item name="bottomMedium">@android:drawable/popup_bottom_medium</item>
        <item name="centerMedium">@android:drawable/popup_center_medium</item>