Double XP happens when you kill 2 people with one shot, or getting a headshot.
Sometimes, weekend special events give double XP.
Notice the XP bar says x200 percent.
Getting a headshot.