mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
05/25/13 03:52 AM (12 years ago)

change navbar color in andoid

So for whatever reason many of the options I choose on the BT control panel never seem to do anything in my android apps. Two of the biggies are row height (menu list or menu with image) and navbar color. Is there a way to just hardcode it into the code what color I want? It'll be the same for the whole app. The row height I'm not too worried about for now, seems to take care of itself. Thanks!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/25/13 04:07 AM (12 years ago)
Hi, You can hardcode them here: List row height on menu list (BT_screen_menuListSimple): around line 146 (and just below this is small devices) //large devices... listRowHeight = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listRowHeightLargeDevice", "50")); In WB_screen_menuImage it's on around line 152 Navbar color is in BT_viewUtilities on around line 125, default is black (#000000) I have the same problem, some of the settings never seem to work from the control panel.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
05/25/13 04:16 AM (12 years ago)
THANKS
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/25/13 04:21 AM (12 years ago)
no problem
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
05/25/13 04:25 AM (12 years ago)
(duplicate post)
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
05/25/13 06:27 AM (12 years ago)
Just out of curiosity, I wonder why the color for the Nav. Bar doesn't work for you, this self-hosted? LA
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
05/25/13 07:18 AM (12 years ago)
No. It's never worked. Neither has row height.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/25/13 07:29 AM (12 years ago)
Navbar color works ok for me, row height doesn't work, neither does background audio. Odd how different users have different things working.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
05/25/13 08:49 AM (12 years ago)
I think it's flaky because the layout/style themes for Android really are controlled in .xml layout files. Davids method of using JSON for these inside the .java class file/Activity might have worked for some options in the past- but if we really want to utilize Android layouts properly - we need to be modding/creating/adding 'layout' files in our projects. I understand his concept of accessing these values thru the Control Panel- But the JSON approach just works better in iOS because the layout elements are all in the .m file. I'm excited about the move to Action bars and Android updates he's cooking up. We'll be able to use fragments to do this stuff easier - but the layout options will all still be in .xml files and those don't use JSON so curious to see how he works with this.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/25/13 09:39 AM (12 years ago)
Yes, looking forward to Actionbar and Fragments, as you know! Funny, just the other day I was thinking it would be brilliant to have an xml editor in the control panel and the xml gets generated into the project. Wonder if that's even possible.. I wonder if there'll be actionbarsherlock support too? Otherwise we'll have to build to something like api13?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
06/03/13 09:46 AM (12 years ago)
I found I needed to add android:layout_below="@+id/titleView" to the Description line in the xml it showed below the Title and not behind it
 

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.