Code example for PagerTitleStrip

0
	private Point triThird  = new Point();
    private static final int[] ATTRS = new int[] {
        android.R.attr.textColor
    }; 
	public MyPagerTitleStrip(Context context) {
		super(context);
 
		// TODO Auto-generated constructor stub 
	} 
	public void setPage(int page){
		if (page == 0){
			mPaint.setColor(getResources().getColor(R.color.back1));
		} else { 
			mPaint.setColor(getResources().getColor(R.color.back2));
		} 
	} 
	public MyPagerTitleStrip(Context context, AttributeSet attrs) {
		super(context, attrs);
		middleView = (TextView) this.getChildAt(1);
		mPaint = new Paint();
Connect your IDE to all the code out there  Get Codota for Java