Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP Sniper Killer

24th March 2014, 12:41 AM   |  #11  
Typhus_'s Avatar
Senior Member
Flag Lisbon
Thanks Meter: 112
 
150 posts
Join Date:Joined: Jan 2013
More
OK Sniper.

Thanks anyway.

I'll try to figure it out.
27th March 2014, 07:52 AM   |  #12  
GSculerlor's Avatar
Senior Member
Flag Malang
Thanks Meter: 84
 
430 posts
Join Date:Joined: Oct 2013
More
How to place the icon on all apps ?
27th March 2014, 05:36 PM   |  #13  
Sniper Killer's Avatar
OP Recognized Contributor
Flag Tirana, Albania
Thanks Meter: 2,992
 
1,265 posts
Join Date:Joined: Dec 2012
More
Quote:
Originally Posted by GSculerlor

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".
28th March 2014, 03:32 AM   |  #14  
san122's Avatar
Senior Member
Flag Unavailable.
Thanks Meter: 1,564
 
1,231 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by Sniper Killer

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
Last edited by san122; 28th March 2014 at 03:54 AM.
28th March 2014, 08:11 AM   |  #15  
Sniper Killer's Avatar
OP Recognized Contributor
Flag Tirana, Albania
Thanks Meter: 2,992
 
1,265 posts
Join Date:Joined: Dec 2012
More
Quote:
Originally Posted by san122

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
28th March 2014, 08:25 AM   |  #16  
san122's Avatar
Senior Member
Flag Unavailable.
Thanks Meter: 1,564
 
1,231 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by Sniper Killer

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
28th March 2014, 04:11 PM   |  #17  
SpaceCaker's Avatar
Recognized Themer / Contributor
Flag netherlands
Thanks Meter: 10,805
 
13,384 posts
Join Date:Joined: Mar 2011
More
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
2nd April 2014, 02:36 AM   |  #18  
GSculerlor's Avatar
Senior Member
Flag Malang
Thanks Meter: 84
 
430 posts
Join Date:Joined: Oct 2013
More
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  
2nd April 2014, 03:03 AM   |  #19  
san122's Avatar
Senior Member
Flag Unavailable.
Thanks Meter: 1,564
 
1,231 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by GSculerlor

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: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes