Thanks
Using java Syntax Highlighting
- int TEXT_OFFSET_X = 10;
- int TEXT_OFFSET_Y = 17;
- int TEXT2_OFFSET_Y = 50;
- canvas.drawText(selectedMapLocation.getFilm(),infoWindowOffsetX+TEXT_OFFSET_X,infoWindowOffsetY+TEXT_OFFSET_Y,getTextPaint());
- if(selectedMapLocation.getText().length() > 0) {
- canvas.drawText(selectedMapLocation.getText(),infoWindowOffsetX+TEXT_OFFSET_X,infoWindowOffsetY+TEXT2_OFFSET_Y,getTextPaint());
- }
- public Paint getTextPaint() {
- if ( textPaint == null) {
- textPaint = new Paint();
- textPaint.setARGB(255, 255, 255, 255);
- textPaint.setAntiAlias(true);
- }
- return textPaint;
- }
Parsed in 0.014 seconds, using GeSHi 1.0.8.4