josephivie
08/05/2016, 4:59 PMSomeViewType.styleDefault()
in a file I name Style.kt
and style it in there, calling styleDefault()
whenever I make a view.
However, in your case, the style part is in the LayoutParams
. That's a bit trickier. I usually don't even bother breaking that out into a function, but if you need to, making an extension function on the containing view for it makes the most sense.