1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package cn.flightfeather.thirdapp.view.calendarview
 
import android.content.Context
import android.graphics.Color
import android.view.LayoutInflater
import cn.flightfeather.thirdapp.util.dp
import cn.flightfeather.thirdapp.util.sp
import com.haibin.calendarview.R
import com.haibin.calendarview.WeekBar
 
/**
 * @author riku
 * Date: 2020/5/14
 */
class ProgressWeekBarView(context: Context) : WeekBar(context) {
    init {
        LayoutInflater.from(context).inflate(R.layout.cv_week_bar, this, true)
        setTextColor(Color.BLACK)
        setTextSize(12.sp)
        setBackgroundResource(cn.flightfeather.thirdapp.R.drawable.shape_week_bar_bg)
    }
}