is there any way in which i have a image view which has to change its state/view once pressed and remain in its state and I should be able to check its state whether it was pressed or is in pressed state right now or not? i used android:pressed but in that case the image state changes until it remains pressed and back to default when no pressed?
Share
U can Have a
onClickListenerto check whether the image is selected.. U can maintain a state using abooleanvariable there.. Try the below code…