Align-text: center not working for actionbar tag

android

#1

I m new to native script and learning from tutorials, but cusomizing the CSS of the screens, by giving different values, i m trying to align the text of action bar to the center of the screen, but its not working and creating a error, and not showing result on the screen .
thank you :slight_smile:


#2

You canโ€™t center action bar title, itโ€™s by design of Android. But you can add your custom view to take full control.

https://docs.nativescript.org/ui/action-bar#how-to-create-custom-title-view-instead-of-the-actionbar-title