Create your own skins

This is where you can share and download open skins for Smart Keyboard!
Haloruler64
Posts: 9
Joined: Mon Jun 13, 2011 8:03 am
Phone: Samsung Galaxy S, Android 2.3.4

Re: Create your own skins

Post by Haloruler64 »

I'm trying to edit an existing theme, 3DKey, and I cannot get it to work after adding in the part to get the prediction bar to change. Every time I edit the xml, the skin becomes all black. Can anyone help?
User avatar
cyril
Developer
Posts: 2079
Joined: Tue Feb 02, 2010 4:02 pm
Phone: Nexus One 2.3
Location: Nice, France

Re: Create your own skins

Post by cyril »

Can you post your new skin? If it becomes black it means you made a mistake with images, or you found a bug ;)
Cyril
Haloruler64
Posts: 9
Joined: Mon Jun 13, 2011 8:03 am
Phone: Samsung Galaxy S, Android 2.3.4

Re: Create your own skins

Post by Haloruler64 »

Here it is.

It also did the same thing when I changed the file names to colors, the same colors of the background.
Attachments
3DKeyP.zip
(64.66 KiB) Downloaded 595 times
User avatar
cyril
Developer
Posts: 2079
Joined: Tue Feb 02, 2010 4:02 pm
Phone: Nexus One 2.3
Location: Nice, France

Re: Create your own skins

Post by cyril »

So it's normal it doesn't work, as the images you used for the prediction bar (at least the background image is not a valid 9-patch image, it doesn't even have a 1-pixel border)
Cyril
Haloruler64
Posts: 9
Joined: Mon Jun 13, 2011 8:03 am
Phone: Samsung Galaxy S, Android 2.3.4

Re: Create your own skins

Post by Haloruler64 »

Right, they're .9 :/ why don't colors work in that field instead of a filename? I tried putting in a hex color but it didn't work either.
User avatar
cyril
Developer
Posts: 2079
Joined: Tue Feb 02, 2010 4:02 pm
Phone: Nexus One 2.3
Location: Nice, France

Re: Create your own skins

Post by cyril »

I didn't try actually, but colors instead of an image should work exactly like for the keyboard background (it's exactly the same code handling both)
Cyril
User avatar
meyergre
Posts: 196
Joined: Thu Apr 21, 2011 8:12 pm
Phone: Nexus one 2.3.4, Notion Ink Adam 3.0.1
Location: Alsace, France

Re: Create your own skins

Post by meyergre »

i confirm. i updated my honeycomb skin with a gradient for the prediction bar, it works like a charm :-)

Sent from my Adam using Tapatalk
see all my skins here : http://lepetitpingouin.fr/smartkeyboard/ !
Like it ? buy me a beer ;)
______________________________
Greg
Haloruler64
Posts: 9
Joined: Mon Jun 13, 2011 8:03 am
Phone: Samsung Galaxy S, Android 2.3.4

Re: Create your own skins

Post by Haloruler64 »

I tried colors, it didn't work. Could you take a look at the skin.xml? See what I did wrong? It'd be SO appreciated!
User avatar
meyergre
Posts: 196
Joined: Thu Apr 21, 2011 8:12 pm
Phone: Nexus one 2.3.4, Notion Ink Adam 3.0.1
Location: Alsace, France

Re: Create your own skins

Post by meyergre »

Got it... your picture is not a 9patch (.9.png), it's a simple PNG file with 1x1px size.
If you want to use a colour, try this way :

Code: Select all

<color-top>#FF1b1b1b</color-top>
<color-bottom>#FF1b1b1b</color-bottom>
instead of your picture. It should solve your problem. ;)

Calling your file .9.png is not enough. Have a look at this page for more explanations ;)
see all my skins here : http://lepetitpingouin.fr/smartkeyboard/ !
Like it ? buy me a beer ;)
______________________________
Greg
Haloruler64
Posts: 9
Joined: Mon Jun 13, 2011 8:03 am
Phone: Samsung Galaxy S, Android 2.3.4

Re: Create your own skins

Post by Haloruler64 »

I know, the .9 was a stupid mistake :/ thanks though!

I tried to fix the xml, but it still doesn't work. Attached.
Attachments
3DKeyP.zip
(53.1 KiB) Downloaded 468 times
Post Reply