Several things to try:-
1) as suggested above, take pads out, and cycle pistons in and out a few times. Hold one piston in with a screwdriver whilst the other one pushes out. You don't need to go far – 2-3mm maybe. repeat 3 or 4 times per side. the idea is that you're getting stiction out of the seals by lubricating them repeatedly, this will even up piston movement. I find avid pistons need this every month or two, more in winter.
2) once you've done the above, push both pistons all the way back, re-install pads, and loosen the caliper mounting bolts so that the caliper moves about on the spherical washers. Put the wheel in the fork with disc on and tighten up the qr. with the caliper still loose, squeeze the lever a few times so the caliper self aligns, and whilst holding the brake tight on, pinch up the caliper mount bolts. Release lever pressure and fully tighten caliper mount bolts.
all the above will centralise the disc in the caliper. if it still doesn't work you may have a bent rotor or need to space the avid caliper bracket with spacers from the fork leg.