Is there a way to stop longer Xamarin Shell tab titles being truncated?

前端 未结 1 885
面向向阳花
面向向阳花 2020-12-21 11:33

I\'m doing some testing with the Tab Bar in Xamarin Shell. If the tab\'s title is too long it gets truncated even though there is clearly more than enough room to show the w

相关标签:
1条回答
  • 2020-12-21 12:30

    In styles.xml add a 10sp in your MainTheme.Base style. You can also change the color when selected by changing colorPrimary.

     <style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
    
        <!-- colorPrimary is used for the default action bar background -->
        <item name="colorPrimary">#3B9894</item>
    
        <item name="android:textAllCaps">false</item>
    
        <item name="colorAccent">#544B99</item>
        <item name="android:textSize">14sp</item>
      </style>
    
    0 讨论(0)
提交回复
热议问题