Fixed bug with API level 17,
this.setTextAlignment(View.TEXT_ALIGNMENT_CENTER);