|
Post by jinghis on Jul 9, 2013 9:12:31 GMT -5
Hi! there! I have been using this wonderfull music player for a quite long time now ... But every time I noticed it's great sounding and costumization, something bothered me. Where are the skins ? ... So I made up my mind, and try to make one ( or more if it's a success ), but searching on the net and not finding anything really annoyed me . So Can someone lend me a hand it? And here is what I need most : - How can I import custom text in the skin? ( I tried one but something doesn't want to work ) - Drawable & Layout XMLs ( okok most of them quite speakable but not all of them ) So that is all for now. And if it's done I really like to make a pdf tutorial for this app. And maybe we can beat PowerAmp in theming .
|
|
|
Post by GoneMAD on Jul 9, 2013 9:38:57 GMT -5
I provided like 11 skins.. feel free to attempt to modify the existing ones but as it is now its much too difficult to release to the public as an official way to make skins.. plus in 1.5 and 2.0 im redoing the UI so all of the existing skins are going to have to be redone anyway
Google does not provide an easy way for one to skin an app so the way GMMP basically does it is just packaging all the layouts and images in a separate apk, when gmmp goes to load a view.. it finds it in the apk and uses that instead of the one stored locally.. so it basically takes the knowledge of doing android UI development to do anything complex with the skins. Also much of the UI for now playing and the equalizer view is dynamically created directly in code (which is why there are many small layout files) which complicates things even more.
That being said.. i'll still answer your questions to help out
Most of the text is done in code.. i believe the more static elements are defined in the layouts.. like in the artist list there is "Albums:", and "Tracks:" which is fixed in the layout xml.. the layout should reference @string/Albums or something similar.. values/strings.xml has all the text definitions
the layout xmls are exactly what the sound like.. they define portions of the UI layout. The drawables xmls are basically the combination of multiple images/drawables to create a more complex UI element. I dont have my code in front of me now but I know there are a bunch of drawables for the buttons. The drawable xml for that will define what image shows in each of the buttons states (pressed, highlighted, unpressed, etc). Most of the UI elements have something like this.. a text box would define what image is used when its unselected/selected, a checkbox would define its unchecked state, checked state, checked & pressed state, etc.
I would say the most important thing you need to remember is any element in a layout xml with an ID is important.. the code is expecting it to be that specific type and expects it to be in a specific part of the hierarchy.. so changing those around would most likely result in crashes
with 1.5/2.0 i do hope to make the skin creation easier.. just maintaining and updating the 11 or so there are now takes me a lot of time and is extremely tedious so I would like to improve that
|
|
|
Post by jinghis on Jul 9, 2013 9:52:00 GMT -5
... darn. Well at least I didn't had to wait years for the anwser. Thank you. And sooner or later, I release a High tech like skin ^^. Hope you will enjoy it ^^.
|
|
|
Post by MrGoodtunes on Jul 6, 2014 14:01:52 GMT -5
Though it's been a year already, I'm willing to wait longer for skinnability. Wanting to develop a UI with player and scrollable queue on screen at once:
|
|
|
Post by GoneMAD on Jul 6, 2014 15:01:02 GMT -5
Though it's been a year already, I'm willing to wait longer for skinnability. Wanting to develop a UI with player and scrollable queue on screen at once: 1.6 allows that on most phones via split mode. Prefs -> UI -> Split View (or something like that)
|
|
|
Post by MrGoodtunes on Jul 6, 2014 17:07:36 GMT -5
Yesss! Found it, under Tablet. Works great on my S4 Mini. Thanks! Yet another feature helping to make GMMP the best player on Android. The only thing left to be desired now is skinnability, so I can have queue list art thumbnails (with correct aspect ratio), and precise positioning (thanks to the slider being being sort of an extention of your finger allowing you to see where you're moving it to). BTW split mode is also available and working on my S4 Mini via XMultiWindow module, except that for the other half screen, I have to use a different player, thereby losing some functionality:
|
|
|
Post by GoneMAD on Jul 6, 2014 19:59:19 GMT -5
Yesss! Found it, under Tablet. Works great on my S4 Mini. Thanks! Yet another feature helping to make GMMP the best player on Android. The only thing left to be desired now is skinnability, so I can have queue list art thumbnails (with correct aspect ratio), and precise positioning (thanks to the slider being being sort of an extention of your finger allowing you to see where you're moving it to). BTW split mode is also available and working on my S4 Mini via XMultiWindow module, except that for the other half screen, I have to use a different player, thereby losing some functionality: skinability is not easiest.. the UI is being redesigned so i'll see what possibilities there are after that. The current skins can technically be made by anyone (one would have to decompile an existing skin and modify it), the a skin contains the full layout xml so if things dont line up with what GMMP's code is expecting it would crash.. which is why i never released any info on how to make skins. The second i change something UI wise it would break all skins
|
|
|
Post by GoneMAD on Jul 6, 2014 20:00:15 GMT -5
oh and the split mode availability is determined by your screens density width/height. I set it to the moto g's or better
|
|