Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

android paint drawtext multiline

// Kotlin language
val fm = paint.fontMetrics
val lineHeight = fm.bottom - fm.top + fm.leading
mText.split("
").forEachIndexed { idx, line ->
    val baseline = idx * lineHeight + (-fm.top)  // fm.top is negative
    canvas.drawText(line, 0f, baseline, paint)
}
Comment

PREVIOUS NEXT
Code Example
Java :: how to check if rs next is null 
Java :: bebra 
Java :: jadoh meaning 
Java :: x/=y is the same as x=x/y 
Java :: reset a jTable without deleting rows 
Java :: android set socket timeout 
Java :: bakht k takht sy yaklakht utara hwa shaks tuny dekha hai kbi jeet k hara hwa shaks in urdu 
Java :: java fill two dimensional array stream 
Java :: flutter android studio Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema 
Java :: hadoop fs get size of directory java 
Java :: jframe open another frame using button actionlistener 
Java :: constraints in Grails 
Java :: test function that call a function javascrip 
Java :: java sin-1 
Java :: detecting battery charging android 
Java :: is java good then c++ is good 
Java :: what does this means error: cannot find symbol StorageRef.child(mUser()).putFile(imageUri).addOnCompleteListener(new OnCompleteListener<UploadTask.TaskSnapshot() 
Java :: txt not chnage on fragment 
Java :: convert zipfile to bytebuffer 
Java :: spigot wolf death message 
Java :: how to put all words from a file in an array java 
Java :: java add xmlns attribute 
Java :: java replace ignore case 
Java :: how to get the current location in android 
Java :: java.lang.ArrayIndexOutOfBoundsException: -1 
Java :: nikita kaksharov 
Java :: Java/Perl - "sprintf function in java" or "string format" 
Java :: print string in reverse order using recursion java 
Java :: java.awt.datatransfer.clipboard example 
Java :: if(ResultSet.next()) 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =