Studies of the hydrodynamic evolution of matter produced in fluctuations in p-barp collisions and in ultrarelativistic nuclear collisions. II. Transverse-momentum distributions.