New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Android navigation and tabs title color #767
Comments
@N3ll - do you think this will make it in the 1.5 release? If not, what is the native code to setBackgroundColor for the tabview? I'm a web dev and I have no idea how to figure out the abstraction to do this as someone pointed out it was possible via the native options on another the forums related to this. |
This is pretty important for us as well... we can't match the app to the designers mockup, so we can't complete it to deploy at all. |
All app samples on NativeScript shows how to change navigation style, but only on iOS. |
Until there is an API or support for CSS to apply to the tabs, you can create a styles.xml file in your App_Resources/Android/values folder with the following and it should at least change the background of your TabView.
Also make sure you have those colors defined in a colors.xml file in the same folder. It's working for my app, I can't get the ActionBar to style but the TabView should work. Maybe someone more familiar with Android styling can help out. |
@N3ll These things are just so key right now...can you guys maybe throw us a bone and do like a 1.4.4 or 1.4.5 that exposes\fixes actionbar\tab styling? |
@sitefinitysteve @calebeaires That said you can set some of the colors by accessing the native Android views and working on them directly. Check out this gist to see how to do that. Hope that helps for now. |
After the #999 PR here are the styling options:
TabView
|
Amazing! |
Yes :) |
What @calebeaires said. :) can't wait to try this. |
Can't wait for 1.5 now! |
Thanks for that snippet. Also how do you change the color of the ellipses when you have these: <ActionBar.actionItems>
<ActionItem text="Edit Room" android.position="popup" />
<ActionItem text="Add Device" android.position="popup" />
<ActionItem text="Add Room" android.position="popup" />
<ActionItem text="Log Out" tap="logOut" android.position="popup" />
</ActionBar.actionItems> |
Thanks @vakrilov. |
Is it possible to change the background color per tab? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
On this exemple, NativeScript dont change the text color from title bar, and title tabs bar.
Or
The text was updated successfully, but these errors were encountered: