I am using Xamarin.Forms to create UI for my cross-platform app. I have created an action bar in Android. Now I want to know that the actionbars style accordingly Currently, the Actionbar title shows at the extreme left (according to the default behavior) I have changed the background color and text color. Now I want to align the title in the center and make it bold.
& lt; Resources & gt; This is my current resource file for style. & Lt; Style name = "Myethem" Original = "Android: Theme.Holo.Lite" & gt; & Lt ;! - Customize your subject here - & gt; & Lt; Item name = "Android: Actionbarstyle" & gt; @ Style / myactionbar & lt; / Item & gt; & Lt; / Style & gt; & Lt; Style name = "MyActionBar" Basic = "@Android: Style / Widget.Holow light.actionbora" & gt; & Lt; Item name = "Android: Background" & gt; @color / actionbankbackgrounds & lt; / Item & gt; & Lt; Item name = "android: titleTextStyle" & gt; @ Style / title textstyle & lt; / Item & gt; & Lt; / Style & gt; & Lt ;! - Action bar title text - & gt; & Lt; Style name = "TitleTextStyle" parent = "@Android: Style / Text Appointment" & gt; & Lt; Item name = "android: textcolor" & gt; @color / white & lt; / Item & gt; & Lt; / Style & gt; & Lt; / Resources & gt;
I apply it in my activity like this: - [activity (label = "mime mobile", theme = "@ style / Myself ", Icon =" @ drawable / icon ", ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation]]
How can I align and bold the font? Thanks for any suggestions
No comments:
Post a Comment