Dialog on Android KitKat seems to be cut

后端 未结 6 2025
鱼传尺愫
鱼传尺愫 2020-12-08 15:35

I used dialog theme for an Activity and it works fine on Android <= 4.3 but not on the latest KitKat 4.4. Here\'s a screenshot of the problem:

6条回答
  •  有刺的猬
    2020-12-08 16:18

    I had the exact same problem as you describe and show in your screenshots. The problem happened only on KitKat.

    In my case it happened on some popup dialogs which used a custom style. Next is a style which reproduces the problem when applie to a dialog. Notice the first line, which has the attribute parent="android.Theme", by removing that attribute the problem got solved.

    
    

    To fix it I removed the parent attribute so the first line would look now like next: