0

In old views I used android:padding="?dialogPreferredPadding" which is

<!-- Preferred padding for dialog content. -->
<attr name="dialogPreferredPadding" format="dimension" />

I can find this attribute in code by android.R.attr.dialogPreferredPadding but I do not know how can I get the value of this attribute in Jetpack Compose?

Row(
    modifier = Modifier
        .padding( <use dialogPreferredPadding here> )

Thank you!

t0m
  • 3,004
  • 31
  • 53
  • Does this answer your question? [Get color value programmatically when it's a reference (theme)](https://stackoverflow.com/questions/17277618/get-color-value-programmatically-when-its-a-reference-theme) – dominicoder Mar 08 '23 at 22:50
  • It's little different but it helped me. Thank you. – t0m Mar 09 '23 at 11:50

0 Answers0