I can do a custom app specific padding

<dimen name="my_padding">16dp</dimen>

or
<attr name="my_padding" format="reference|dimension" />

<style name="custom">
    <item name="my_padding">16dp</item></style>


I think both accomplish similar end goal right? i.e. not hard-coding the number 
in the layout file.

My question was - which method is preferred.

Thanks.



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to