1997 toyota camry rear brakes

Rear brakes will not stay adjusted,I have all new shoes and hardware on them.

what would be the problem

As I remember the rear drum brakes use the parking brake application to automatically adjust the shoe travel. Cycle the handle a few times and they should adjust up. If that does not happen, you may have a sticking serrated wheel or incorrectly installed hardware. Eventually you have to adjust the parking brake cables at the handle to take up clearance there. I think I remember 7 clicks but reference the service manual for the exact specs.