Smartphone maker HTC Corp. is showing off a tablet computer that can be used either with a finger or with a battery-powered “pen” for drawing and note-taking.

The Taiwanese company demonstrated the HTC Flyer tablet on Tuesday at the Mobile World Congress trade show in Barcelona. It said the tablet will go on sale in the second quarter, but didn’t announce a price.

Tablets that work with pens have been around for years, but the recent crop, inspired by Apple Inc.’s iPad, permit using a finger to make entries. The Flyer will have a 7-inch screen, half the size of the iPad.

HTC also says it will sell two phones through AT&T Inc. that feature a “Facebook button” that will let users upload photos or share web pages with one push.