Android custom view attributes not being applied to view
I am working on a paint app, and I have created a custom view called ColorSwitcherView which holds the primary/secondary color state:
package com.therealbluepandabear.pixapencil.customviews.colorswitcherview
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import androidx.core.content.ContextCompat
import com.therealbluepandabear.pixapencil.R
class...