For example, I'm battling a piloswine. I switch from my bronzong to my clefable. Do both bronzong and clefable gain the 1HP and 1ATK or does only clefable?
If it gained Experience from the battle, it will also gain EVs for the battle. This includes the EXP Share.