Detection of Image changing Button on Same Activity Android

In Android One Image Button which change the image when click the button. That issue how to detect in appium. anyone can help me


so if i click on “1” Button. “1” Image button goes to pressed state and change the image. How we test this. that button is selected