Giter Site home page Giter Site logo

Comments (3)

oyty avatar oyty commented on September 7, 2024

<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorPrimary"
app:titleTextColor="@color/white"
app:theme="@style/AppTheme" />

from takephoto.

AndroidJohnsonWang avatar AndroidJohnsonWang commented on September 7, 2024

楼上的方法没有效果啊,其他都是白色,就确定是黑色

from takephoto.

Apples0609 avatar Apples0609 commented on September 7, 2024

在style.xml里边加入下边style:

<style name="MultipleImageSelectTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/multiple_image_select_primary</item> <item name="colorPrimaryDark">@color/multiple_image_select_primaryDark</item> <item name="colorAccent">@color/multiple_image_select_accent</item> <item name="actionModeStyle">@style/CustomActionModeStyle</item> <item name="windowActionModeOverlay">true</item> <item name="actionMenuTextColor">@android:color/white</item> </style>

最后的actionMenuTextColor属性就是确定文字颜色。

同时若要改变标题背景,在colors.xml加入:
<color name="multiple_image_select_primary">@color/title_bar_bg_color</color>

multiple_image_select_primary的值就是背景颜色

这两处修改的name都是固定的,改成别的就不生效了哈

from takephoto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.