|
|
|
@ -34,11 +34,6 @@ class ContentView : FrameLayout { |
|
|
|
|
init() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : |
|
|
|
|
super(context, attrs, defStyleAttr) { |
|
|
|
|
init() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun init() { |
|
|
|
|
//设置背景防止切换背景时文字重叠 |
|
|
|
|
setBackgroundColor(context.getCompatColor(R.color.background)) |
|
|
|
|