A user interface element that displays text to the user.
<datanapps.captextview.CapTextView
android:id="@+id/text2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:padding="5dp"
app:layout_constraintTop_toBottomOf="@+id/text1"
app:capsDropNumber="2"
app:capFont="@font/eb_garamond_regular"
app:capTextColor="@color/purple_700"
app:capTextSize="@dimen/cap_text_size"
app:bodyTextColor="@color/purple_700"
app:bodyTextSize="@dimen/body_text_size"
app:bodyTextFont="@font/eb_garamond_regular"
/>
app:capsDropNumber="2"
app:capFont="@font/eb_garamond_regular"
app:capTextColor="@color/purple_700"
app:capTextSize="@dimen/cap_text_size"
app:bodyTextColor="@color/purple_700"
app:bodyTextSize="@dimen/body_text_size"
app:bodyTextFont="@font/eb_garamond_regular"
fun setCapTextFont(@NonNull fontId:Int)
fun setCapTextAttrColor(@NonNull color:Int)
fun setBodyTextFont(@NonNull fontId:Int)
fun setHtmlText(text: String, isCapText:Boolean)
fun setHtmlText(text: String)
fun setTextScale(sizeInPx: Int)
-----------------------------
Hope it will help. Thanks
Copyright [2021] [datanapps]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0