:) I had the following problem: I have a view, and I want to add borders to it. What I'm trying to do now is install an addition to the view (padding on all sides) and set the background color for it to fill the fill. The fact is that it seems to me that you can set indents only from above and to the left or from below and to the right, but not from all together. I. If I write
view.setPadding(border,border,border,border)
this will only fill at the top and left. To set the registration bottom and right, I have to write:
view.setPadding(-border,-border,0,0)
which will not leave left and top margins, etc. If I try to use margin, it moves the whole block (view + fill area), but not just the view, so this also does not work. Any ideas on how to do this without using a packaging layout? Thank!
source
share