问题
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