Android: Attempting to switch between two Images and display them as the same size

http://stackoverflow.com –
So, basically, I just want to display an image, and when that image is clicked, I want to replace it with another image (and go back and forth between the two images onClick). This works fine, but I want to display them as the exact same size, but no matter what I try, they're not appearing as the same size on screen.
Here's my java file:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final ImageView baneling = (ImageView) findViewById(R.id.bane);
baneling.setTag("alive");
baneling.setClicka
(HowTos)

I am using android ndk with opencv , I am giving two images as input and then one as output , my 2 input images are one is image and second is vignette , I am getting some kind of logical error from java side , below is my code of java