Well, I tried Paint class, but it is not cool. What you tried?
My code is,
paint = new Paint();
paint.setColor(Color.BLACK);
paint.setTextSize(70);
paint.setColor(Color.RED);
paint.setAntiAlias(true);
Context mContext = getContext();
Typeface myTypeface = Typeface.createFromAsset(mContext.getAssets(),
"gothic.ttf");
paint.setTypeface(myTypeface);
@Override
protected void onDraw(Canvas canvas) {
canvas.drawText("There are" ,180 ,100, paint);
//other codes.
}
On Monday, June 11, 2012 4:47:47 PM UTC+5:30, Dancing Fingers wrote:
>
> Hi Guys,
> Does anyone know of an example where you combine a gaming canvas in 2/3 of
> the screen and the top is more of an standard xml type layout, to have
> scores, other online users, etc. I figured out 1 way but I was wondering
> what others have done.
> Thanks.
> Chris
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en