久久久久久久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(使用線程逐塊處理文件)
主站蜘蛛池模板: 午夜激情视频在线 | www.久久久 | 国产98色在线 | 日韩 | 久久久久久免费精品一区二区三区 | 国产精品成人一区二区三区 | 一区二区视频在线 | 99精品视频一区二区三区 | 国产精品一区二区三区久久 | 日韩欧美国产不卡 | 香蕉久久网 | 亚洲色图在线观看 | 欧产日产国产精品视频 | 亚洲欧美国产精品一区二区 | 欧美黄色网 | 久久久夜色精品亚洲 | 在线欧美小视频 | av免费看在线 | 久久久国产一区 | 国产成人精品免高潮在线观看 | 国产精品一区二区久久 | 久久国产精品99久久久久 | 五月激情久久 | 久久久久久久91 | 日产久久 | 伊人免费观看视频 | 99影视 | 日韩精品成人一区二区三区视频 | 国产www成人 | 亚洲欧美网站 | 18性欧美 | 精品国产乱码久久久久久闺蜜 | 成人精品免费视频 | 亚洲一区二区三区久久久 | 91在线观看网址 | 在线观看中文字幕 | 成人av播放 | av大片| 91日韩 | 精品国产欧美在线 | 麻豆视频在线免费观看 | 国产片侵犯亲女视频播放 |