Android: Opaque card.io view on all Samsung device

2019-07-25 17:13发布

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.

标签: card.io
2条回答
Ridiculous、
2楼-- · 2019-07-25 17:56

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

查看更多
可以哭但决不认输i
3楼-- · 2019-07-25 17:57

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.

查看更多
登录 后发表回答