shamanland / floating-action-button

Implementation of a circular button made of paper that lifts and emits ink reactions on press.
http://shamanland.github.io/floating-action-button
Apache License 2.0
371 stars 88 forks source link

Extending LinearLayout #2

Closed olayinkasf closed 9 years ago

olayinkasf commented 10 years ago

I've modified the source to inherit from linear layout as I'm using a more complex view. But it ignores my padding attributes when rendering. How do I fix this?

ok3141 commented 10 years ago

There is well-known issue related to custom background drawable. All you need is just to save original padding values before setBackground() and restore them programmatically. Read details here: http://stackoverflow.com/q/10095196