Skip to content

Instantly share code, notes, and snippets.

@AlexMisiulia
Last active December 17, 2019 19:56
Show Gist options
  • Save AlexMisiulia/5f5920b3a1e3b019171350c9936e598d to your computer and use it in GitHub Desktop.
Save AlexMisiulia/5f5920b3a1e3b019171350c9936e598d to your computer and use it in GitHub Desktop.
class TextTextView: LinearLayout {
constructor(context: Context?) : super(context) {
init()
}
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
init()
}
private fun init() {
LayoutInflater.from(context).inflate(R.layout.widget_text_text_view, this)
}
fun setText1(text: String) {
text1TextView.text = text
}
fun setText2(text: String) {
text2TextView.text = text
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment