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 :--
i want android pay style button :--
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
Post a Comment