Create your own skins
-
- Posts: 9
- Joined: Mon Jun 13, 2011 8:03 am
- Phone: Samsung Galaxy S, Android 2.3.4
Re: Create your own skins
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?
- 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
Can you post your new skin? If it becomes black it means you made a mistake with images, or you found a bug 

Cyril
-
- Posts: 9
- Joined: Mon Jun 13, 2011 8:03 am
- Phone: Samsung Galaxy S, Android 2.3.4
Re: Create your own skins
Here it is.
It also did the same thing when I changed the file names to colors, the same colors of the background.
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
- 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
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
-
- Posts: 9
- Joined: Mon Jun 13, 2011 8:03 am
- Phone: Samsung Galaxy S, Android 2.3.4
Re: Create your own skins
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.
- 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
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
- 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
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

Sent from my Adam using Tapatalk
see all my skins here : http://lepetitpingouin.fr/smartkeyboard/ !
Like it ? buy me a beer
______________________________
Greg
Like it ? buy me a beer

______________________________
Greg
-
- Posts: 9
- Joined: Mon Jun 13, 2011 8:03 am
- Phone: Samsung Galaxy S, Android 2.3.4
Re: Create your own skins
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!
- 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
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 :
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
If you want to use a colour, try this way :
Code: Select all
<color-top>#FF1b1b1b</color-top>
<color-bottom>#FF1b1b1b</color-bottom>

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
Like it ? buy me a beer

______________________________
Greg
-
- Posts: 9
- Joined: Mon Jun 13, 2011 8:03 am
- Phone: Samsung Galaxy S, Android 2.3.4
Re: Create your own skins
I know, the .9 was a stupid mistake :/ thanks though!
I tried to fix the xml, but it still doesn't work. Attached.
I tried to fix the xml, but it still doesn't work. Attached.
- Attachments
-
- 3DKeyP.zip
- (53.1 KiB) Downloaded 468 times