Coder Social home page Coder Social logo

Comments (9)

drchen avatar drchen commented on August 23, 2024 1

Awesome. I'll close the issue for now. Let me know if you have more questions. : )

from material-components-android.

Snezhe avatar Snezhe commented on August 23, 2024

@drchen

from material-components-android.

drchen avatar drchen commented on August 23, 2024

I think you need to move <item name="android:background">?attr/colorA</item> from materialRangeDatePicker to myMaterialCalendar instead. The theme settings will be applied to all views which may cause the problem I think.

Let me know if this solves your issue.

from material-components-android.

Snezhe avatar Snezhe commented on August 23, 2024

@drchen With that change the header and background color are separated which is great but now it doesn't apply the color that I'm setting for the background (which is bright blue color) but instead, it applies some other black color. And also now my background color is transparent. Do you have any idea what might cause this?

Screenshot_1646325032

from material-components-android.

drchen avatar drchen commented on August 23, 2024

Hmm... I'm not entirely sure. Are you overriding ?attr/colorSurface anywhere?

from material-components-android.

Snezhe avatar Snezhe commented on August 23, 2024

@drchen No I'm not in the styles about the material date range picker, but I have it in some other styles in the project

from material-components-android.

drchen avatar drchen commented on August 23, 2024

That's very weird. Can you let me know what colorA and colorB is?

from material-components-android.

Snezhe avatar Snezhe commented on August 23, 2024

@drchen colorA is : #343434;
colorB is: #484848

from material-components-android.

Snezhe avatar Snezhe commented on August 23, 2024

@drchen Okay so I set the surfaceColor instead of background color in materialRangeDatePicker and it seems to be working now, the color is a little bit lighter but I will check what might cause that

from material-components-android.

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.