简体   繁体   中英

In-app purchase, make google play UI transparent

As part of in-app purchasing I am starting an activity provided by the google play service using startIntentSenderForResult() as described in http://developer.android.com/google/play/billing/billing_integrate.html .

How do I make the started activity use a transparent background so my app is visible in the background with the in-app purchasing activity on top of it? The background of the google play activity is grey now.

I have seen that other apps (Babbel, used for learning new languages) use a transparent google play UI and I'm wondering how to do this.

The activity you are starting is a part of google play services. Its not yours to customize. Besides, it's not a good idea to think of customizing it. Its better to have "Similar looking UI perform similar functions" across applications. Showing the default google play payment activity imparts a trust in the user that your payment is handled not by you as an app developer, but by google using their gateway which they know and trust to be secure.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM