MCQs > IT & Programming > Android Game Development > Which of the following methods is used to display text on screen in eclipse?

Android Game Development MCQs

Which of the following methods is used to display text on screen in eclipse?


Answer

Correct Answer:

public void displayString(Canvas canvas, String text, int x, int y){

for (int i = 0; i < text.length(); i++) {

Character Ch = text.CharAt(i);

if (glyphs.get(ch) != null) {

canvas.drawBitmap(glyphs.get(ch), x + (i * width), y, null); } } } 


Explanation:

Note: This Question is unanswered, help us to find answer for this one

Android Game Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Android Game Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it