Skip to content

双个PAG如何实现同步播放(中间有个TextView) #2641

Answered by kevingpqi123
L-Evan asked this question in Q&A
Discussion options

You must be logged in to vote

最佳方案就是使用一个 PAGView,构建一个 PAGComposition, 将多个 pag 文件组合在一起,比如,PAGComposition 尺寸为 1280 * 720, 添加了两个 pag 文件,尺寸分别是 400* 400, 300* 300,中间没有覆盖的区域渲染的时候就是透明的,不影响你和其它原生 View 叠加,如果仅仅是渲染的过程中文本变化(如上面提到的TextView可能根据时间各种要素变化 ), 在 pag 文件设计的时候添加一个文本图层就可以,渲染的过程中是支持随时修改文本内容的

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@L-Evan
Comment options

@kevingpqi123
Comment options

@L-Evan
Comment options

Answer selected by kevingpqi123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants