Android Canvas: put Text in the middle of the screen
Code: [code] paint = new Paint(Paint.ANTI_ALIAS_FLAG); paint.setTextAlign(Paint.Align.CENTER); canvas.drawText("Hello Text", getMeasuredWidth()/2, getMeasuredHeight()/2, paint); [/code]
Code: [code] paint = new Paint(Paint.ANTI_ALIAS_FLAG); paint.setTextAlign(Paint.Align.CENTER); canvas.drawText("Hello Text", getMeasuredWidth()/2, getMeasuredHeight()/2, paint); [/code]
Code: [java] canvas.drawBitmap(bitmap, (getMeasuredWidth()/2)-(bitmap.getWidth()/2), (getMeasuredHeight()/2 -(bitmap.getHeight()/2)), null); [/java]
Um das Originaldatum der Datei SIMG0011.jpg anzupassen: exiftool -DateTimeOriginal=”2003:05:26 10:51:00″ SIMG0011.jpg
Source: Introduction To REST Concepts