我正在使用Xamarin.Forms和一个可移植类库构建一个应用程序.我有一个标签页.我想更改选项卡式页面指示器的颜色.更改布局的其余部分是我已经管理的,我唯一需要的是更改浅蓝色选项卡页面指示器,如下所示:

我找不到任何可以在Xamarin.Droid中工作的东西.这是创建带有内容的选项卡式页面的代码:
class TabbedPageTry : TabbedPage
{
public TabbedPageTry()
{
Title = "TabbedPage";
var myPages = new CategoryDAO().GetCategories();
foreach (var item in myPages)
{
Children.Add(new TabPage(item.CategoryID) { BindingContext = item });
}
}
public class TabPage : ContentPage
{
public TabPage(int categoryID)
{
Padding = new Thickness(0, Device.OnPlatform(20, 0, 0), 0, 0);
var listView = new ListView
{
SeparatorColor = Color.FromHex("#101010"),
ItemsSource = new CourseDAO().GetCourses(),
IsPullToRefreshEnabled = false,
BackgroundColor = Color.White,
};
this.SetBinding(Page.TitleProperty, "Name");
Content = listView;
} …Run Code Online (Sandbox Code Playgroud)