Skip to content

Instantly share code, notes, and snippets.

@rygelouv
Created April 12, 2018 18:32
Show Gist options
  • Save rygelouv/0bfc4c5702a2e54693d294fde9309d31 to your computer and use it in GitHub Desktop.
Save rygelouv/0bfc4c5702a2e54693d294fde9309d31 to your computer and use it in GitHub Desktop.
class TextMultiStateView: LinearLayout
{
lateinit var text: TextView
lateinit var progress: ProgressBar
lateinit var image: ImageView
constructor(context: Context) : super(context){
init(context)
}
constructor(context: Context, attrs: AttributeSet): super(context, attrs){
init(context)
}
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {
init(context)
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment