I need to set negative margin in PercentRelativeLayout but when I try it in xml as follows it doesn't work.
app:layout_marginTopPercent="-10%"
I tried setting negative margin programmatically when parent is measured but PercentRelativeLayout preserves its children LayoutParams and reverts any changes made to them.
Setting negative margin in dp works as follows but I absolutely need to give a negative margin relative to parent size.
android:layout_margin="-10dp"
How can I do it, any ideas?
I ended up translating the view with negative value depending on parent size when parent is measured. It's not a solid solutions but It works in my case.