Center TextView programowo Android

yourTextView.setGravity(Gravity.CENTER);
Fedeboss