Method and apparatus for building virtual keyboard

Disclosed are a method and an apparatus for building a virtual keyboard. The method comprises the steps: detecting the touch area of a finger operation; determining the number of keys to be disposed in a key region of the virtual keyboard according to the detected touch area of the finger operation and the area of the key region of the virtual keyboard; and arranging the determined number of keys in the key region of the virtual keyboard according to a preset policy. The number of keys arranged in the key region of the virtual keyboard according to the touch area when the user performs an operation and the area of the key region of the virtual keyboard, so that the area of each key in the virtual keyboard is adaptable to the touch area of a finger, and in this manner, one-hand operations of a user can be facilitated, and the probability of a misoperation in one-hand operations is reduced.