A method of an electronic device for showing page flip effect when flipping a page, the electronic device comprising a storage unit which stores a flip-page operation table and flip effect parameters, wherein, the flip page parameters are a plurality of effect pages, each of the effect pages comprises a first part, a second part, and a third part, the flip-page operation table defines relationships between the effect pages and lengths of a first touch path or a second touch path, wherein, the method comprising:
- receiving touch signals produced by a touch input unit;
- determining whether a touch input is a first touch path or a second touch path and lengths of the touch input according to the touch signals;
- determining a target page according to the touch input being a first touch path or a second touch path;
- and
- rendering a series of combined pages by:
- obtaining an effect page when the touch path increase to lengths defined in the flip-page operation table;
- covering the current page with the obtained effect page, and covering the third part of the obtained effect page with a part of the target page whose size and location is the same as that of the third part of the obtained effect page, and produce a combined page if the touch path is the first touch path;
- covering the current page with the obtained effect page, and covering the first part of the obtained effect page with a part of the target page whose size and location is the same as that of the first part of the obtained effect page, and produce a combined page if the touch path is the second touch path;
- and
- displaying the combined page on the display unit.