mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
40 lines
1 KiB
Kotlin
40 lines
1 KiB
Kotlin
package org.thoughtcrime.securesms.conversation.v2.messages
|
|
|
|
import android.content.Context
|
|
import android.util.AttributeSet
|
|
import android.view.LayoutInflater
|
|
import android.widget.LinearLayout
|
|
import kotlinx.android.synthetic.main.view_quote.view.*
|
|
import network.loki.messenger.R
|
|
import org.thoughtcrime.securesms.database.model.MessageRecord
|
|
|
|
class QuoteView : LinearLayout {
|
|
|
|
// region Lifecycle
|
|
constructor(context: Context) : super(context) {
|
|
setUpViewHierarchy()
|
|
}
|
|
|
|
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) {
|
|
setUpViewHierarchy()
|
|
}
|
|
|
|
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {
|
|
setUpViewHierarchy()
|
|
}
|
|
|
|
private fun setUpViewHierarchy() {
|
|
LayoutInflater.from(context).inflate(R.layout.view_quote, this)
|
|
}
|
|
// endregion
|
|
|
|
// region Updating
|
|
fun bind(message: MessageRecord) {
|
|
textView.text = "I'm a quote"
|
|
}
|
|
|
|
fun recycle() {
|
|
// TODO: Implement
|
|
}
|
|
// endregion
|
|
} |