Discussion Forums  >  WebViews and HTML for Mobile

Replies: 6    Views: 110

recoore
I hate code!
Profile
Posts: 73
Reg: Mar 01, 2013
Kingston
4,880
06/21/13 06:40 PM (10 years ago)

How to center the NavBar Titles

I am using BT self host. All the NavBar Title are aligned left. How do I align them in the center on the Navbar?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/21/13 07:40 PM (10 years ago)
Odd... mine are centered. I always figured that was the default. iOS or Android? All apps or just one? All plugins? Cheers! -- Smug
 
recoore
I hate code!
Profile
Posts: 73
Reg: Mar 01, 2013
Kingston
4,880
like
06/21/13 09:27 PM (10 years ago)
it happen in all apps and all plugin....they all left align
 
recoore
I hate code!
Profile
Posts: 73
Reg: Mar 01, 2013
Kingston
4,880
like
06/21/13 09:41 PM (10 years ago)
its an android app
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/21/13 09:46 PM (10 years ago)
Interesting. Everything I've read so far tells me that they automatically align to the center. Since mine also align to the center, I'm a bit puzzled at your situation. Is this a 'Roman' character, or is this a double-byte character, such as farsi or japanese? I'm scratching my head on this... Screen shot? Cheers! -- Smug
 
BkkRon
Android Fan
Profile
Posts: 6
Reg: Jun 10, 2013
Bangkok
1,710
like
06/23/13 09:11 PM (10 years ago)
All my navbar titles are left aligned as well in my first android project. Looking at a number of android apps I have installed, that seems to be a typical style for android. But styles are highly variable in the android world, unlike iphone where the recommended style seems to be to center the navbar title. That makes sense, since it leaves room for buttons on the 2 sides ... It would be good to have control of the title alignment from the control panel.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/23/13 10:15 PM (10 years ago)
My apologies; I just cranked up my Android Tablet and sure enough; titles to the left. I've been so focused on iOS work these last few weeks... Regardless, these posts may help you: http://muthumanict.wordpress.com/2011/12/19/alligning-the-title-bars-text-in-android/ http://staticallytyped.wordpress.com/2011/03/18/android-dynamic-and-custom-title-bars/ http://android-elements.blogspot.com/2011/06/customizing-title-bar.html Cheers! -- Smug
 

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.