Setting android:hardwareAccelerated=“true” in <activity> or in <application>
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want my app, which relies heavily on GPU, to use hardware acceleration. On some forums I've been suggested to set android:hardwareAccelerated="true" inside <application> and on other forums same attribute inside <activity> inside my AndroidManifest.xml . Below is the representation of what it looks like: <application ... android:hardwareAccelerated="true" ...> <activity ... android:hardwareAccelerated="true" ...> </activity> </application> I ended up setting in both, yet I wonder, which one is the right way, and what is the difference? 回答1