Discussion Forums  >  Status Bar, Navigation Bar

Replies: 12    Views: 321

Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
03/26/13 04:53 AM (11 years ago)

Modifying Android Nav Bar Title

Has anybody had any success in changing the horrible default black navbar in Android? No matter what tweeks I do to the code or changes I make in the BT CP it always appears black :(
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
03/26/13 04:55 AM (11 years ago)
I have sen many threads regarding this,many of them succesull,but i could never tryed it..following
 
Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
like
03/26/13 05:00 AM (11 years ago)
@MgoBlue gave me a tip several months back he got it working by modifying the act_title.xml file, seemed a simple mod but it never worked for me. I was hoping that over the few past months others would have been wanting to achieve similar. The black nav bar and text makes my app look real ugly and amature
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
03/26/13 05:11 AM (11 years ago)
Ya mine too i will try to add a picture there to just have to find the xml file.
 
Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
like
03/26/13 05:13 AM (11 years ago)
res > layout > act_title.xml
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
03/26/13 06:55 AM (11 years ago)
The easiest way to change the navbar background is to replace the default image with another image of your choice. Yes, the bt navbar is nothing but an image. Its in the drawable folder with name - bt_bg_title or something like that.
 
Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
like
03/26/13 07:06 AM (11 years ago)
will try now thanks, I take it the nav bar title text will still be displayed? How do I make this hidden?
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
03/26/13 07:10 AM (11 years ago)
keep the screen title field blank in bt control panel or remove the reference of android text from xml layout file and see...
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
03/26/13 07:40 AM (11 years ago)
on Self Hosted the image name for the Android titlebar is hardcoded into the BT_viewUtilities Look @ line 107 You can overwrite the file name there or use your own The default is just a 10x35 grey png file that tiles. you can replace that file, rename it or make your own. You can change the size of that titlebar if you use a bigger image or tinker with the xml file. Lots of options to dress it up.
 
Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
like
03/26/13 08:50 AM (11 years ago)
excellent thanks, what are the optimal dimensions for the titlebar image? I have modified with a custom image but seems to stretch the image to fit, this concerns me as each varying screen size will re-size image automatically and make the nav bar ugly.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/26/13 09:41 AM (11 years ago)
Agree. Ugly. There's also an option in the control panel to hide the nav bar..
 
recoore
I hate code!
Profile
Posts: 73
Reg: Mar 01, 2013
Kingston
4,880
like
06/01/13 06:47 PM (10 years ago)
Isn't there a way via some sort of coding that says: "overlay the navBar with this image" ? Therefore i could end up with a transparent background PNG logo in the middle of the navbar? I use BT selfhosted
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/04/14 03:10 PM (9 years ago)
this started for changing text and ended up with using an image, anyone know how to change the text color, and maybe center it? bt v3 self
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.