久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何實現 Google Play 圖書中使用的頁面卷曲類型

How do I implement the type of page curl used in Google Play Books?(如何實現 Google Play 圖書中使用的頁面卷曲類型?)
本文介紹了如何實現 Google Play 圖書中使用的頁面卷曲類型?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我一直在尋找一種合適的方法來模擬 iOS 應用中使用的翻頁/卷曲類型,但在 Android 應用中.我在 Android 上看到的最接近的東西是 Google Play Books 應用程序.他們是否使用了我沒見過的 SDK 的某些部分?有沒有機會得到類似的實現?

I've been searching for a proper way to emulate the kind of page flipping/curling used in the iOS apps but in an Android app. The closest thing I have seen on Android is the Google Play Books app. Are they using some part of the SDK that I haven't seen? Is there any chance of getting my hands on a similar implementation?

我見過的大多數示例都是使用某種基于 OpenGL 的 RenderView 構建的.這可能會奏效,但我必須確保屏幕不會徒勞無功,因為我不想使用太多電量.在處理不是 pow2 的紋理時,我也有點害怕使用 OpenGL.

Most of the examples I have seen are built using some sort of RenderView based on OpenGL. That would probably work, but I would have to make sure that the screen is not rendered in vain, since I don't want to use too much power. Also I'm a little afraid of using OpenGL when handling textures that are not pow2.

最好的問候,卡樂

推薦答案

你必須使用OpenGL才能在Android中制作這樣的效果并且必須使用下面常見的正弦圖方程:-

You have to use OpenGl for making such effect in Android and have to use the below common sinusoidal graph equation :-

y=Asin(2π/λ*x)

y=Asin(2π/λ*x)

在哪里,

A = 幅度(即我們想要的卷曲高度).

A = Amplitude (i.e. the elevation of curl we want).

λ = 波長(即我們想要的卷曲長度).

λ = Wavelength (i.e. the length of the curl we want).

x = X 軸變量,當您移動頁面時會發生變化.

x = The X axis variable which will change as you move the page.

你必須在 SurfaceView 上繪制 3 個頁面,即 'LeftPage' 、 'CenterPage' 和 'RightPage' , 'CenterPage' 始終可見并負責 'right curl' 動畫,而 'LeftPage' 負責 'left curl'動畫和RightPage"只是保持靜止.檢測手勢使用默認的 GestureDetector 類.

You have to draw 3 pages on SurfaceView namely 'LeftPage' , 'CenterPage' and 'RightPage', 'CenterPage' is always visible and is responsible for 'right curl' animation while 'LeftPage' is responsible for 'left curl' animation and 'RightPage' just stay static. For detecting gestures use default GestureDetector class.

您可以從這里下載示例.

這篇關于如何實現 Google Play 圖書中使用的頁面卷曲類型?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to wrap text around components in a JTextPane?(如何在 JTextPane 中的組件周圍環繞文本?)
MyBatis, how to get the auto generated key of an insert? [MySql](MyBatis,如何獲取插入的自動生成密鑰?[MySql])
Inserting to Oracle Nested Table in Java(在 Java 中插入 Oracle 嵌套表)
Java: How to insert CLOB into oracle database(Java:如何將 CLOB 插入 oracle 數據庫)
Why does Spring-data-jdbc not save my Car object?(為什么 Spring-data-jdbc 不保存我的 Car 對象?)
Use threading to process file chunk by chunk(使用線程逐塊處理文件)
主站蜘蛛池模板: 日日干av | 久久精品免费看 | 免费视频一区 | 免费不卡视频 | 久久免费观看视频 | 男男巨肉啪啪动漫3d | 亚洲成人免费在线观看 | 激情婷婷网| 国产一级黄色录像 | 伊人成人在线视频 | 特大黑人巨交吊性xxxx视频 | 理论片中文字幕 | 日韩欧美中文字幕在线观看 | 久久精品观看 | 国产精品成人一区 | 亚洲午夜在线 | 成人免费毛片网站 | 好色网站 | 午夜免费在线 | 成人不卡视频 | 91精品国产一区二区三区 | 夜夜嗨av一区二区三区 | 视频一二三区 | 欧美一级黄色片 | 黄色一级大片 | 天堂中文字幕免费一区 | 97视频在线免费观看 | 天天干天天拍 | 日韩成人在线免费观看 | 亚洲一区影院 | av香蕉| 色综合久久天天综合网 | 日韩欧美视频在线 | 亚洲一区二区久久 | 欧美激情综合网 | 成人午夜又粗又硬又大 | a级毛毛片 | 久久精品久久久久久久 | 三级在线观看视频 | 男女插插插视频 | 丁香婷婷激情 |