H
H
Hakito2016-01-04 01:36:38
Java
Hakito, 2016-01-04 01:36:38

How to adjust window padding in android?

Hello!
I wrote my own style, which makes the window "Dialogue", that is, so that it does not occupy the entire screen, and the previous activity can be seen behind it. Here is the topic:

<style name="AppTheme.Dialog" >
        <item name="android:windowFrame">@null</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:backgroundDimEnabled">true</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="windowActionBar">false</item>
    </style>

It turned out like this:
2b315c06445d4d079a54285090df5624.png
How to add padding on the sides to the left and right?
I reviewed the system dialog styles, I didn’t find anything sensible, because even when I copy everything to my style, the result is the same. Missed something.
I can’t inherit from the system dialog style, since many attributes from AppTheme will have to be copied
Please help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gamega, 2016-01-04
@gadfi

you will do something strange, but oh well, it's up to you, just try using padding

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question