Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added method to change title text color and get title text color #835

Closed
wants to merge 2 commits into from
Closed

Conversation

michael-winkler
Copy link

This helper let the user change the tite text color via code

@quentin41500
Copy link
Member

Thank you for posting this PR. We recommend changing the color for title, weekdays and days like so:

  <style name="CustomTextAppearance" parent="TextAppearance.AppCompat.Medium">
    <item name="android:textColor">@android:color/holo_red_dark</item>
  </style>
      app:mcv_headerTextAppearance="@style/CustomTextAppearance"
      app:mcv_dateTextAppearance="@style/CustomTextAppearance"
      app:mcv_weekDayTextAppearance="@style/CustomTextAppearance"

You can also set it programmatically:

  /**
   * @param resourceId The text appearance resource id.
   */
  public void setHeaderTextAppearance(int resourceId) {
    title.setTextAppearance(getContext(), resourceId);
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants