I am trying to change the width of ImageView
from top and bottom separately. I want the width from top left-right to 100dp and from bottom left-right to 50dp. See the attached image for an idea:
I tried to do find a solution online but I did not find anything yet. I tried with the Android Scale library but I could not achieve the required result with it.
ScaleAnimation fade_in = new ScaleAnimation(0f, 1f, 0f, 1f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
fade_in.setDuration(1000); // animation duration in milliseconds
fade_in.setFillAfter(true); // If fillAfter is true, the transformation that this animation performed will persist when it is finished.
IV.startAnimation(fade_in);
Please guide me which library is capable of doing it or how it can be achieved?