package com.remax.visualnovel.ui.chat

import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatEditText
import com.remax.visualnovel.R
import com.remax.visualnovel.utils.spannablex.utils.dp
import com.remax.visualnovel.widget.uitoken.view.UITokenEditView


class ChatEditView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)
    : AppCompatEditText(context, attrs, defStyleAttr) {


    init {
        isFocusable = true
        isFocusableInTouchMode = true
        isClickable = true

        setBackgroundResource(R.color.transparent)
        setPadding(0, 12.dp, 0, 12.dp)
    }


    fun clearText() {
        setText("")
    }
}