Styling ActionBar for Android -


i using xamarin.forms create ui cross platform app. have created actionbar in android. want style actionbar accordingly. currently, actionbar title displays on extreme left (as per default behaviour). have changed background color , text color. wish align title in center , make bold.

here current resource file styling.

<resources>    <style name="mytheme" parent="android:theme.holo.light">     <!-- customize theme here. -->     <item name="android:actionbarstyle">@style/myactionbar</item>    </style>    <style name="myactionbar" parent="@android:style/widget.holo.light.actionbar">     <item name="android:background">@color/actionbarbackground</item>     <item name="android:titletextstyle">@style/titletextstyle</item>   </style>    <!-- action bar title text -->   <style name="titletextstyle" parent="@android:style/textappearance">     <item name="android:textcolor">@color/white</item>    </style> </resources> 

i apply activity this:-

[activity(label = "myapp.mobile",         theme = "@style/mytheme",         icon = "@drawable/icon",         configurationchanges = configchanges.screensize | configchanges.orientation)] 

how can align , make font bold? thank suggestions


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -