Jump to content


Photo

draw9patch how to use?!

- - - - -

  • Please log in to reply
4 replies to this topic

#1
davidevinavil

davidevinavil

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,005 posts
  • Gender:Male
  • Location:Crevoladossola (VB)
  • Devices:Acer Liquid Metal
Hi all, i'm trying to edit Settings.apk to get power widget with transparent background..
Image of background is/res/drawable-hdpi-v4/appwidget_bg.9.png
I've opened it with gimp and set alpha level to get transparency, then I've opened appwidget_bg.9.png with draw9patch whitout result..
Someone know how to use it?
The result is this first and after applying patch is the same :/
I've tried a lot with different settings into draw9patch

Attached Files


Edited by davidevinavil, 25 May 2011 - 09:57 AM.

  • 0
If you like my work, offer me a beer

#2
CedricGatay

CedricGatay

    Enthusiast

  • Members
  • PipPipPip
  • 241 posts
  • Gender:Male
  • Location:Tours, France
  • Interests:Software development
  • Devices:Nexus 4 / Nexus 7
  • Twitter:@Cedric_Gatay
You have to add black pixel bar on the edge of your picture to use it, check the android developer documentation in order to do so.
If you want good customizable power widget, have a look at Widgetsoid :P

  • 0
Take the time to try out my apps !
Come visit my Blog, need developers, ask for code-troopers !

#3
davidevinavil

davidevinavil

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,005 posts
  • Gender:Male
  • Location:Crevoladossola (VB)
  • Devices:Acer Liquid Metal
I've already tried it..
Now I've do this
From original pict I've cut border background whit gimp, edit it and save without border..
All whitout using draw9patch :/

This is original pic

Attached File  orig.png   3.45KB   5 downloads

and this pic edited by gimp

Attached File  mod.png   3.1KB   4 downloads

and this is the result

Attached File  snapshot__1_.png   618.51KB   6 downloads

  • 0
If you like my work, offer me a beer

#4
davidevinavil

davidevinavil

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,005 posts
  • Gender:Male
  • Location:Crevoladossola (VB)
  • Devices:Acer Liquid Metal

You have to add black pixel bar on the edge of your picture to use it, check the android developer documentation in order to do so.
If you want good customizable power widget, have a look at Widgetsoid :P


Do you know wich image is to edit and where is located to get transparency notification bar with android UI?
In acer UI had to edit status_bar_tracking.xml into BubbleNotification.apk, but it don't work for android UI :/

  • 0
If you like my work, offer me a beer

#5
CedricGatay

CedricGatay

    Enthusiast

  • Members
  • PipPipPip
  • 241 posts
  • Gender:Male
  • Location:Tours, France
  • Interests:Software development
  • Devices:Nexus 4 / Nexus 7
  • Twitter:@Cedric_Gatay

Do you know wich image is to edit and where is located to get transparency notification bar with android UI?
In acer UI had to edit status_bar_tracking.xml into BubbleNotification.apk, but it don't work for android UI :/

Sorry I have no clue about that

  • 0
Take the time to try out my apps !
Come visit my Blog, need developers, ask for code-troopers !




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users