Skip to content

Commit cc5532a

Browse files
committed
refactor(android): simplify RichTextView initialization
1 parent 6e6634f commit cc5532a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

android/src/main/java/com/richtext/RichTextView.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ class RichTextView : AppCompatTextView {
4646
}
4747

4848
private fun prepareComponent() {
49-
// Initialize the component with basic TextView setup
50-
text = "RichTextView - Ready for markdown!"
51-
textSize = 16f
52-
setTextColor(Color.BLACK)
5349
movementMethod = LinkMovementMethod.getInstance()
50+
setPadding(0, 0, 0, 0)
51+
setBackgroundColor(Color.TRANSPARENT)
5452
}
5553

5654
fun setMarkdownContent(markdown: String) {

0 commit comments

Comments
 (0)