Android: Opaque card.io view on all Samsung devices

99封情书 提交于 2019-12-11 09:58:50

问题


I have integrated card.io in my Android application and when I send an intent to invoke card.io activity, it opens up the camera view with card.io view totally opaque and I do not see the credit card in the view. This behavior is only seen on Samsung devices and not on other OEM devices. I see a grey colored rectangle instead of the card.io view and native camera view around this rectangle.

Surprisingly, sample card.io application also behaves the same view.

Could you please look into this issue and provide details on how to fix this issue? Is this a known issue?

Thanks for your support.


回答1:


I had this same problem. I saw you posted it in the issues here: https://github.com/card-io/card.io-Android-SDK/issues/21 so it looks like you were able to resolve it by adding android:hardwareAccelerated="true" in the action. I had to put it at the application level and it worked for me.




回答2:


I had the same problem on Note 3 and Note 4 devices until I removed android:hardwareAccelerated="false" from my manifest.



来源:https://stackoverflow.com/questions/24792440/android-opaque-card-io-view-on-all-samsung-devices

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!