Kah – The Developer

Archive for June 2009

Setting the Font in a View

Posted by: kahgoh on: 24 June, 2009

Sometime ago, I was asked how to control the font used in a customised view. In the customised view, the onDraw method is overridden and had code looking like this:

Paint textPaint = new Paint();
textPaint.setColor(Color.BLACK);
canvas.drawText(“Text to display”, posX,
posY, textPaint);
To change the font, Paint has a setTypeface method. This method takes in a Typeface [...]

Manage your Finances with GnuCash

Posted by: kahgoh on: 23 June, 2009

I have been GnuCash to help manage my finances for a while now. If used correctly, it is useful tool for tracking your finances and planning for those big ticket purchases. You do not require a lot of knowledge of accounting to use this software – just enough discipline to keep the data up to [...]