Change imagebutton when pressed in RecyclerView

I added ImageButton in CardView in RecyclerView and i made it to add item in favourite (i made sqlite to save favourite ) now i want to make when i open activity that RecyclerView on it show ImageButton with different image if it in Favourite and when pressed on it change image
simply i want to make favourite button (Star image ) like gmail app