j2emanue
j2emanue

Reputation: 62549

HCE android:apduServiceBanner attribute for tap and pay - does it have to be 260 X 96 dp

Per the documentation here the android:apduServiceBanner for tap and pay icon should be 260 X 96 dp ? So what folder should i put this image in ? should i place it in mdpi ? What if i want to add icons for each density myself, is it ok ? Please if you can help me decide which android folder to put the service banner icon. I've tried putting the graphic into mdpi but i want to know what is the recommended way.

Required assets for payment applications

To provide a more visually attractive user experience, HCE payment applications are required to provide an additional asset for their service: a so-called service banner.

This asset should be sized 260x96 dp, and can be specified in your meta-data XML file by adding the android:apduServiceBanner attribute to the <host-apdu-service> tag, which points to the drawable resource.

Upvotes: 3

Views: 1045

Answers (1)

Sam Edwards
Sam Edwards

Reputation: 894

Yes, those are the correct dimensions.

apduServiceBanner should be 260x96 dp. In pixels, that works out to...
  - drawable-xxhdpi: 780x288 px
  - drawable-xhdpi:  520x192 px
  - drawable-hdpi:   390x144 px
  - drawable-mdpi:   260x96  px

Reference: Android Card Emulation Reference Application

Upvotes: 5

Related Questions