1. Check out our companion app, Forums for Android! Download from Google Play

Setting shadow on text?

Discussion in 'Application Development' started by Grendizer, Mar 20, 2010.

  1. Grendizer

    Grendizer Member
    Thread Starter
    15

    Mar 14, 2010
    10
    0
    15
    Hi all,

    I'm wondering how to set shadow on text ?
    I have this part I want to be shadowed...

    Code (Text):
    1. paint.setColor(Color.BLACK);
    2. paint.setTextSize(55);
    3. paint.setFakeBoldText(false);
    4. paint.setShadowLayer(1, 0, 0, Color.BLACK); //This only shadows my whole view...
    5. canvas.drawText(dateDayText, 50, 100, paint);
     

    Advertisement

  2. Grendizer

    Grendizer Member
    Thread Starter
    15

    Mar 14, 2010
    10
    0
    15

Share This Page

Loading...