/**
* Selects the Day on position 'index'.
* @param index
* @param dayLayout
* @param check: True if checkDays() should be called.
*/
private void activateDay(int index, LinearLayout dayLayout, boolean check) {
weekdaysSelection[index] = true;
dayLayout.setTag(true);
Drawable bg = ContextCompat.getDrawable(getBaseContext(), R.drawable.circle_step);
int colorPrimary = ContextCompat.getColor(getBaseContext(), R.color.accent);
bg.setColorFilter(new PorterDuffColorFilter(colorPrimary, PorterDuff.Mode.SRC_IN));
dayLayout.setBackground(bg);
TextView day = (TextView) dayLayout.findViewById(R.id.day);
day.setTextColor(ContextCompat.getColor(getBaseContext(),R.color.md_white_1000));
if(check) {
checkDays();
}
}
AddPillSetTime.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:ePills
作者:
评论列表
文章目录