Android Question Text View Fixed characters

BitsAndBytes

Active Member
Licensed User
I have a text view that holds a number. How i can display the symbol $ as fixed char on the right side of text view?

Thank you
 

BitsAndBytes

Active Member
Licensed User
Thank you but i mean instead of this...

coinBitmap.Initialize(File.DirAssets , coinStr)
coinBitmap.InitializeSample(File.DirAssets , coinStr, coinBitmap.Width, coinBitmap.Height)
coinBitmapDrawable.Initialize(coinBitmap)

R.Target = TextErgasiaValue
R.RunMethod4("setCompoundDrawablesWithIntrinsicBounds",Array As Object(Null,Null, coinBitmapDrawable,Null), Array As String(coinStringCommand,coinStringCommand,coinStringCommand,coinStringCommand))

which shows a bitmap at the right side of the text view instead i want to show a string character
 
Upvote 0

BitsAndBytes

Active Member
Licensed User
Dim cCanvas As Canvas
Dim bmpCoin As Bitmap
Dim bmpCoinDrawable As BitmapDrawable

bmpCoin.InitializeMutable(32dip,32dip)
cCanvas.Initialize2(bmpCoin)
cCanvas.DrawText(strCoinSymbol, 1dip, 1dip, Typeface.SANS_SERIF, intFontSize, Colors.Black, "CENTER")
bmpCoinDrawable.Initialize(bmpCoin)

R.Target = textView
R.RunMethod4("setCompoundDrawablesWithIntrinsicBounds",Array As Object(Null,Null, bmpCoinDrawable, Null),Array As String( coinStringCommand, coinStringCommand, coinStringCommand, coinStringCommand))
End Sub.. I am getting error Drawable is not initialized....
 
Upvote 0
Top