2016-08-12 4 views
1

タブ付きページタイトルは、AndroidタイトルカットはXamarin.Formsに

でタブ付きページに

enter image description here

が、私はこれを使用しています

enter image description here

のiOSデバイスでの細かい作業をカットコード

public Tabbar() 
     { 
      //this.BarTextColor = Color.Maroon; 
      // New Feed 
      var navigationNewFeed = new NavigationPage(new NewFeedView()); 
      navigationNewFeed.Title = "News Feed"; 
      navigationNewFeed.Icon = "news"; 
      Children.Add(navigationNewFeed); 

      // Volunteer View 
      var navigationPageVolunteer = new NavigationPage(new VolunteerView()); 
      navigationPageVolunteer.Icon = "Volunteer"; 
      navigationPageVolunteer.Title = "Volunteer"; 
      Children.Add(navigationPageVolunteer); 


      // LAH View 
      var navigationPageLAH = new NavigationPage(new LAHView()); 
      navigationPageLAH.Icon = "lah"; 
      navigationPageLAH.Title = "LAH"; 
      Children.Add(navigationPageLAH); 



      // Notification View 
      var navigationPageNotification = new NavigationPage(new NotificationView()); 
      navigationPageNotification.Icon = "notification"; 
      navigationPageNotification.Title = "Notification"; 
      Children.Add(navigationPageNotification); 


      // Account View 
      var navigationPageAccount = new NavigationPage(new AccountView()); 
      navigationPageAccount.Icon = "account"; 
      navigationPageAccount.Title = "Account"; 
      Children.Add(navigationPageAccount); 


     } 
+0

教えてください、私の提案をお試しくださいましたか? –

答えて

1

カスタムスタイルとタブのテキストのサイズを変更します。 How to use custom style for tab

と変更スタイル:

<style name="CustomTab" 
     parent="@android:style/Widget.Holo.ActionBar.TabText"> 
    <item name="android:textSize">5sp</item> 
</style> 
0

、あなたのAndroid XFプロジェクトのTabbar.axmlを介して下部のテキストサイズを設定アプリを追加してみてください:tabTextAppearance = "アンドロイド:?ATTR/textAppearanceSmall"

<android.support.design.widget.TabLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    android:id="@+id/sliding_tabs" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:background="?attr/colorPrimary" 
    android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" 
    app:tabTextAppearance="?android:attr/textAppearanceSmall" 
    app:tabIndicatorColor="@android:color/white" 
    app:tabGravity="fill" 
    app:tabMode="fixed" />