Android Pay Style Button not coming its Display Google wallet Style button -


i integrated android pay using developer reference: https://developers.google.com/android-pay in ui of buy button got old google wallet style button :--enter image description here

i want android pay style button :--enter image description here

i used supportwalletfragment this. below wallet fragment style:

walletfragmentstyle walletfragmentstyle = new walletfragmentstyle()                 .setbuybuttontext(buybuttontext.buy_with_google)                 .setbuybuttonwidth(dimension.match_parent); 

the situation same button still old google wallet style. hack if need can try this:

create wallet fragment in normal way hide it.
create custom button android pay' one.

when user clicks custom button can click manually hidden android pay button this. (when fragment has been created of course).

if (walletfragment != null && walletfragment.getview() != null &&                         ((framelayout) walletfragment.getview()).getchildcount() > 0) {                     ((framelayout) walletfragment.getview()).getchildat(0)                             .callonclick();                 } 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -