diff --git a/app/src/main/java/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java b/app/src/main/java/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java
index 522fb1818b404d9704b7dd3f222e277900c9ca43..685f341811cffb79fad8d4bfd8fd9c52a7b3c5ce 100644
--- a/app/src/main/java/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java
+++ b/app/src/main/java/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java
@@ -19,6 +19,7 @@ package com.android.calendar.selectcalendars;
import android.content.Context;
import android.content.res.Resources;
import android.database.Cursor;
+import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.provider.CalendarContract.Calendars;
import android.view.LayoutInflater;
@@ -28,6 +29,7 @@ import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.CheckBox;
+import android.widget.ImageView;
import android.widget.ListAdapter;
import android.widget.TextView;
@@ -181,8 +183,8 @@ public class SelectCalendarsSimpleAdapter extends BaseAdapter implements ListAda
TextView calendarName = (TextView) view.findViewById(R.id.calendar);
calendarName.setText(name);
- View colorView = view.findViewById(R.id.color);
- colorView.setBackgroundColor(color);
+ ImageView colorView = view.findViewById(R.id.color);
+ colorView.setColorFilter(color, PorterDuff.Mode.SRC_ATOP);
colorView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
@@ -207,8 +209,10 @@ public class SelectCalendarsSimpleAdapter extends BaseAdapter implements ListAda
int textColor;
if (selected) {
textColor = mColorCalendarVisible;
+ colorView.setImageResource(R.drawable.circle);
} else {
textColor = mColorCalendarHidden;
+ colorView.setImageResource(R.drawable.circle_outline);
}
calendarName.setTextColor(textColor);
diff --git a/app/src/main/res/layout/mini_calendar_item.xml b/app/src/main/res/layout/mini_calendar_item.xml
index 7310d015efefdb792580a5d04803bc1fa602b25c..23b5dfbc0bd598969dd1a9d807e17d91332ded58 100644
--- a/app/src/main/res/layout/mini_calendar_item.xml
+++ b/app/src/main/res/layout/mini_calendar_item.xml
@@ -20,14 +20,14 @@
android:layout_height="48dip"
android:minHeight="?android:attr/listPreferredItemHeight" >
-
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index a7747a591aa0fd15ec309ae3ff7929c986f08652..81ca80e0eb2d468c1648b2dbabef5dc1070425a3 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -105,8 +105,8 @@
@android:color/transparent
@color/color_default_primary_text
- @color/background_color
- @color/foreground_color
+ @color/e_primary_text_color
+ @color/e_disabled_color
@color/color_default_primary_text
@color/color_default_secondary_text
#61000000
@@ -215,7 +215,7 @@
#303030
@color/bg_black
- #FFDDDDDD
+ @color/colorPrimary
@color/color_default_primary_text
@color/color_default_secondary_text
@color/grid_line_black
@@ -293,8 +293,8 @@
#FFDDDDDD
- #ffffff
- #757575
+ @color/calendar_visible
+ @color/calendar_hidden
#ffffff
#757575
#61ffffff
@@ -322,7 +322,7 @@
#424242
@color/color_non_focus_item_bg
- #FFDDDDDD
+ @color/colorPrimary
@color/color_default_primary_text
@color/color_default_secondary_text
@color/grid_line_dark
@@ -399,8 +399,8 @@
#FFDDDDDD
- #ffffff
- #757575
+ @color/calendar_visible
+ @color/calendar_hidden
#ffffff
#757575
#61ffffff