All Downloads are FREE. Search and download functionalities are using the official Maven repository.

androidTest.tech.skot.core.view.SKStringViewProxy.kt Maven / Gradle / Ivy

There is a newer version: 1.2.9
Show newest version
package tech.skot.core.view

import android.widget.TextView
import androidx.fragment.app.Fragment
import tech.skot.core.components.SKActivity
import tech.skot.core.components.SKComponentView
import tech.skot.core.components.SKComponentViewProxy
import tech.skot.viewlegacy.test.R

class SKStringViewProxy(
    val content:CharSequence
): SKComponentViewProxy() {


    override val layoutId = R.layout.sk_spanned_string

    override fun bindTo(
        activity: SKActivity,
        fragment: Fragment?,
        binding: TextView
    ) = SKStringView(this, activity, fragment, binding).apply {
        setString(content)
    }
}

class SKStringView(
    proxy: SKStringViewProxy,
    activity: SKActivity,
    fragment: Fragment?,
    binding: TextView
): SKComponentView(proxy, activity, fragment, binding) {

    fun setString(content: CharSequence) {
        binding.text = content
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy