如何在GitHub square calendar android中更改月份的文本颜色

如何在GitHub square calendar android中更改月份的文本颜色,android,Android,我正在我的应用程序中使用此GitHub。现在看下面的图片- 这个月的标题很暗,与主题不符。那我该怎么改变呢 <color name="Navigation_Color">@color/motivationQuoteColor</color> <!--same as selected color--> <color name="calendar_selected_day_bg">#c2e4ff&l

我正在我的应用程序中使用此GitHub。现在看下面的图片-

这个月的标题很暗,与主题不符。那我该怎么改变呢

 <color name="Navigation_Color">@color/motivationQuoteColor</color> <!--same as selected color-->

    <color name="calendar_selected_day_bg">#c2e4ff</color> 
    <color name="calendar_highlighted_day_bg">@color/toolbarColor</color>  
    <color name="calendar_text_selected">@color/colorPrimaryDark</color>
    <color name="calendar_text_unselectable">@color/whiteTextColor</color>
    <color name="calendar_text_active">@color/whiteTextColor</color>
    <color name="calendar_text_inactive">@color/motivationQuoteColor</color>
    <color name="calendar_divider">@color/whiteTextColor</color>
    <color name="calendar_bg">@color/motivationQuoteColor</color>
    <color name="calendar_inactive_month_bg">@color/motivationQuoteColor</color>
    <color name="calendar_active_month_bg">@color/motivationQuoteColor</color> 
    <color name="calendar_selected_range_bg">@color/motivationQuoteColor</color>
@color/motivationQuoteColor
#c2e4ff
@颜色/工具栏颜色
@颜色/原色暗
@颜色/白色文本颜色
@颜色/白色文本颜色
@颜色/动机报价颜色
@颜色/白色文本颜色
@颜色/动机报价颜色
@颜色/动机报价颜色
@颜色/动机报价颜色
@颜色/动机报价颜色
以上是GitHub项目提供的唯一颜色选择。我想把这个月的标题改成白色。顺便说一下,我搜索了谷歌,找到了(github.com),但它对我不起作用

编辑-我发现(GitHub问题)也有一个,但不起作用

以下是我的XML代码:

 <com.squareup.timessquare.CalendarPickerView
                android:id="@+id/calendar"
                android:layout_width="match_parent"
                android:layout_height="370dp"
                android:background="@color/calendar_bg">

            </com.squareup.timessquare.CalendarPickerView>

浏览您提供的github链接后

在styles.xml中添加以下代码:-

<resources xmlns:tools="http://schemas.android.com/tools">
.
.
.
<style name="CustomCalendarTitle">
<item name="android:textSize">@dimen/calendar_text_medium</item>
<item name="android:gravity">center</item>
<item name="android:paddingBottom">@dimen/calendar_month_title_bottommargin</item>
<item name="android:paddingTop">@dimen/calendar_month_topmargin</item>
<item name="android:color">@color/custom_calendar_text_selector</item>
 <item name="android:textColor">@color/colorAccent</item>

</style>
</resources>

.
.
.
@尺寸/日历\文本\中等
居中
@尺寸/日历\月份\标题\底部边距
@尺寸/日历\月份\上页边距
@颜色/自定义\日历\文本\选择器
@颜色/颜色重音
替换此项:-

 <com.squareup.timessquare.CalendarPickerView
            android:id="@+id/calendar"
            android:layout_width="match_parent"
            android:layout_height="370dp"
            android:background="@color/calendar_bg">

        </com.squareup.timessquare.CalendarPickerView>

在xml中使用此选项:-

<com.squareup.timessquare.CalendarPickerView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/calendar_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/custom_background"
android:clipToPadding="false"
android:paddingBottom="16dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:scrollbarStyle="outsideOverlay"
app:tsquare_dayBackground="@drawable/custom_calendar_bg_selector"
app:tsquare_dayTextColor="@color/custom_calendar_text_selector"
app:tsquare_displayDayNamesHeaderRow="false"
app:tsquare_dividerColor="@color/transparent"
app:tsquare_headerTextColor="@color/custom_header_text"
app:tsquare_titleTextStyle="@style/CustomCalendarTitle"
/>


您可以在声明此日历的地方发布您的xml吗PickerViewYea当然,我编辑了问题尝试以下解决方案@VijayI不明白请在回答中添加一些注释OK,它正在工作,感谢WINI的支持和您的时间。抱歉花了这么多时间。再次感谢styles.xml代码@color/colorAccent是更改颜色的关键