久久久久久久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(使用線程逐塊處理文件)
主站蜘蛛池模板: 操久久 | 91久久精品一区二区二区 | 久久9999久久 | 一区二区三区在线免费 | 久久中文字幕视频 | 亚洲国产精品久久久久 | 91精品久久久久久久久久入口 | 爱综合| 二区在线视频 | 欧美视频中文字幕 | 欧美在线一区二区三区 | 中文字幕日韩欧美 | 欧美专区在线 | 欧美色欧美亚洲另类七区 | h小视频 | 99精品99| 欧美电影免费观看高清 | 婷婷久久网 | 亚洲国产一区在线 | www.青青草 | 看片国产 | 日韩精品在线观看视频 | 三区在线观看 | 国产精品一区二区三区久久 | 97超碰成人 | 精品动漫一区 | 国产色爽 | 亚洲成人动漫在线观看 | 91欧美激情一区二区三区成人 | 影音先锋亚洲资源 | 亚洲乱码一区二区三区在线观看 | 97超碰人人草 | 日韩中文不卡 | 狠狠操婷婷 | 精品91久久 | 狠狠色香婷婷久久亚洲精品 | 国产精品成人一区二区三区夜夜夜 | 一级做a爰片久久毛片免费看 | 亚洲欧美在线观看视频 | 欧美成人一区二免费视频软件 | 国产精品久久久久久久久久久久 |