• Announcements

    • andrewilley

      Poweramp v3 Project Update   04/24/2017

      As you may be aware, the Poweramp developer has been working hard on an updated material design user interface for Poweramp v3 which required a full ground-up rebuild of the code. It is hoped this will be ready for final beta-testing by the end of the May. See forum thread for more details and to discuss.    
Sign in to follow this  
Followers 0
tony

How to make skin support both 5.0+ and 5.0- android version

2 posts in this topic

Do I need to upload two different APKs in order to support 5.0+ and 5.0- ?

because ant dist-shared only works on 5.0+

And ant dist have problem on 5.0+ when using user's style as parent in some styles.

I notice in skin_custom_rules.XML the different of dist and dist-shared is the --shared-lib aapt manipulator.

Share this post


Link to post
Share on other sites

Provided that you updated your Android SDK (as described here: http://forum.powerampapp.com/index.php?/topic/5047-poweramp-apiskin-sdk-update-2014-11-15/) and the Poweramp Skin SDK, you can build skin (or update existing skin) to support both cases.

 

The problem with Lollipop skin handling is that they "reserved" the attribute inheritance, Poweramp skins was using previously. This makes styles derived from other skin styles not possible for Lollipop and all such styles should be manually "un-packed".

 

We provided example for both cases in skin sdk. You may want to check this file:

 

https://github.com/maxmpz/powerampapi/blob/master/poweramp_skin_sdk/skin_classic/res/values/classic_skin_styles_single_apk.xml

 

and compare it vs this one:

 

https://github.com/maxmpz/powerampapi/blob/master/poweramp_skin_sdk/skin_classic/res/values/classic_skin_styles.xml

 

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0