set Top TextView Style Bus Stop - Android User Interface

Android examples for User Interface:TextView

Description

set Top TextView Style Bus Stop

Demo Code


//package com.java2s;

import android.graphics.Color;
import android.graphics.Typeface;

import android.widget.TextView;

public class Main {
    public static TextView setTopTextStyle_BusStop(TextView tv,
            Typeface font) {/* w  ww . ja va 2  s  .  c  om*/
        tv.setTypeface(font);
        tv.setTextColor(Color.BLACK);
        tv.setShadowLayer(2, 0, 0, Color.WHITE);
        return tv;
    }
}

Related Tutorials