Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,814,105 Members 44,914 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 112
Posts: 150
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 84
Posts: 428
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 2,923
Posts: 1,253
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 1,560
Posts: 1,229
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 2,923
Posts: 1,253
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 1,560
Posts: 1,229
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 10,731
Posts: 13,329
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
Check My SoundCloud for my music remakes,mixes etc Click Here
Check My Website to find a portfolio and about me Click Here
 
GSculerlor
Old
#18  
GSculerlor's Avatar
Senior Member
Thanks Meter 84
Posts: 428
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:	38
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 1,560
Posts: 1,229
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