首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Xamarin表单主题

Xamarin表单主题
EN

Stack Overflow用户
提问于 2017-04-13 18:33:02
回答 1查看 210关注 0票数 0

与轻主题资源合并后,导航栏的颜色发生了变化。如何在与轻主题资源合并后更改导航栏的颜色?

EN

回答 1

Stack Overflow用户

发布于 2017-04-13 22:51:35

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<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" <-------- check the value of this 
    android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
    app:tabIndicatorColor="@android:color/white"
    app:tabGravity="fill"
    app:tabMode="fixed" />

此颜色应定义导航栏的颜色。

代码语言:javascript
复制
<item name="colorPrimaryDark">#a5d6f7</item> <------- light blue
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43389916

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档