BALTIMORE ( TheStreet) -- Apparel, a category hardest hit during the recession, was, surprisingly, Under Armour's ( UA) saving grace in its second quarter. The athletic apparel and footwear maker posted a surprise profit, as its apparel business offset a decline in footwear sales. Under Armour said it even expects full-year earnings above Wall Street's consensus, sending shares of the company up 4% to $26.63 in morning trading. During the quarter, the company earned $1.44 million, or 3 cents per share, from $1.38 million, or 3 cents per share, a year earlier. Analysts expected a loss of 2 cents. Revenue rose to $164.6 million from $156.7 million. Clothing revenue spiked 16.5% to $112 million, while footwear revenue tumbled 18.4% to $37.5 million from last year. Looking forward, Under Armour expects full-year earnings in the range of 80 cents to 82 cents per share, a penny higher than analysts' forecast. --Reported by Jeanine Poggi in New York.