• android自定义Dialog


    添加<item name="android:windowIsFloating">true</item>
    报错需要另外添加
    parent="@android:style/Theme.Translucent"
        <style name="ScanDialog" parent="@android:style/Theme.Translucent">
            <item name="android:windowIsFloating">true</item>
            <item name="android:windowTitleSize">160dip</item>
    
            <item name="android:windowFrame">@null</item>
    
    
    
            <item name="android:windowContentOverlay">@null</item>
            <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
            <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
            <item name="android:windowCloseOnTouchOutside">true</item>
            <item name="android:windowActionModeOverlay">true</item>
    
            <item name="android:colorBackgroundCacheHint">@null</item>
    
            <item name="android:windowTitleStyle">@style/ScanDialogWindowTitle</item>
    
    
    
        </style>
        <style name="ScanDialogWindowTitle">
            <item name="android:maxLines">1</item>
            <item name="android:scrollHorizontally">true</item>
            <item name="android:textAppearance">@style/ScanDialogWindowTitleX</item>
    
        </style>
    
        <style name="ScanDialogWindowTitleX">
            <item name="android:textSize">11sp</item>
        </style>
    

      

  • 相关阅读:
    iOS开发-ScrollView图片缩放
    算法-随机不重复数列生成
    iOS开发-舒尔特表
    iOS开发-音乐播放
    iOS开发-简单的图片查看器
    iOS开发-Interface Builder的前世今生
    iOS开发-DatePicker控件
    iOS开发-UI基础Demo
    Objective-C-Category类别
    Objective-C面向对象之实现类
  • 原文地址:https://www.cnblogs.com/coolyylu/p/15042691.html
Copyright © 2020-2023  润新知