Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,375 Members 45,250 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][GB]How to place a custom icon on the title bar of a certain app

Tip us?
 
Typhus_
Old
#11  
Typhus_'s Avatar
Senior Member
Thanks Meter 109
Posts: 149
Join Date: Jan 2013
Location: Lisbon
OK Sniper.

Thanks anyway.

I'll try to figure it out.
A "themed custom ROM" for Galaxy Y DUOS

If you like my work, or if I've helped you in some way, please consider buying me a drink, will 'ya?
 
GSculerlor
Old
#12  
GSculerlor's Avatar
Senior Member
Thanks Meter 80
Posts: 410
Join Date: Oct 2013
Location: Malang
How to place the icon on all apps ?
What You SEE Is What You GET
Quote:
Getting Close With My Work :

 
Sniper Killer
Old
#13  
Sniper Killer's Avatar
Recognized Contributor - OP
Thanks Meter 2871
Posts: 1,248
Join Date: Dec 2012
Location: /system/build.prop
Quote:
Originally Posted by GSculerlor View Post
How to place the icon on all apps ?
You should replace the icon with activity_title_bar.9.png on framework-res.apk/res/drawable-xdpi/. The png which you are going to replace must be a 9 patch png and also must be renamed to "activity_title_bar".
 
san122
Old
(Last edited by san122; 28th March 2014 at 02:54 AM.)
#14  
san122's Avatar
Senior Member
Thanks Meter 1541
Posts: 1,227
Join Date: Jan 2013
Location: Unavailable.
Quote:
Originally Posted by Sniper Killer View Post
You should replace the icon with activity_title_bar.9.png on framework-res.apk/res/drawable-xdpi/. The png which you are going to replace must be a 9 patch png and also must be renamed to "activity_title_bar".
In our case its deawable-ldpi or mdpi in most of the roms instead of xdpi.:thumbup::thumbup::thumbup:

Sent from my GT-S5360 using Tapatalk 2
 
Sniper Killer
Old
#15  
Sniper Killer's Avatar
Recognized Contributor - OP
Thanks Meter 2871
Posts: 1,248
Join Date: Dec 2012
Location: /system/build.prop
Quote:
Originally Posted by san122 View Post
In our case its deawable-ldpi or mdpi in most of the roms instead of xdpi.:thumbup::thumbup::thumbup:

Sent from my GT-S5360 using Tapatalk 2
I wrote xdpi so it could be every density. X -> l, m, h.

Sent from my GT-S5830i using Tapatalk 2
 
san122
Old
#16  
san122's Avatar
Senior Member
Thanks Meter 1541
Posts: 1,227
Join Date: Jan 2013
Location: Unavailable.
Quote:
Originally Posted by Sniper Killer View Post
I wrote xdpi so it could be every density. X -> l, m, h.

Sent from my GT-S5830i using Tapatalk 2
Oh sorry i took it as xhdpi

Sent from my GT-S5360 using Tapatalk 2
 
SpaceCaker
Old
#17  
SpaceCaker's Avatar
Recognized Themer / Contributor
Thanks Meter 10496
Posts: 13,111
Join Date: Mar 2011
Location: netherlands
actually it doesnt really matter if u place pngs in xhdpi or hdpi.

only they need the proper size ofhdpi

this way we can also use a lot of xhdpi pngs on our little devices without resizing

why?
android very clever

they have their own resizing already inside only png needs proper size for its dpi.



Sent from my S500 using xda app-developers app
 

My Github Click Here
Github BroadcomCM Click Here
Github CyanoSpaceMod Click Here
Github MSR-Roms Click Here
Check My SoundCloud for my music remakes,mixes etc Click Here
Linux HP-Pavilion-G7 3.11.0-23-generic #40-Ubuntu SMP Wed Jun 4 21:05:23 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
 
GSculerlor
Old
#18  
GSculerlor's Avatar
Senior Member
Thanks Meter 80
Posts: 410
Join Date: Oct 2013
Location: Malang
How to resize title bar ?

Sent from my GT-S5360 using xda app-developers app
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1396398955942.jpg
Views:	37
Size:	14.8 KB
ID:	2663523  
What You SEE Is What You GET
Quote:
Getting Close With My Work :

 
san122
Old
#19  
san122's Avatar
Senior Member
Thanks Meter 1541
Posts: 1,227
Join Date: Jan 2013
Location: Unavailable.
Quote:
Originally Posted by GSculerlor View Post
How to resize title bar ?

Sent from my GT-S5360 using xda app-developers app
If you placed rhis title bar only in settings then you need to add attribute windowtitlesize in your style.
If you did this via framework then open res/values/styles.xml abd search windowtitlesize and increase its value.
50.0 dip will look good for your titlebar.

Sent from my GT-S5360 using Tapatalk 2

The Following User Says Thank You to san122 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes