实现textview内容竖直显示
public class VerticalTextView extends TextView{
final boolean topDown;
public VerticalTextView(Context context,AttributeSet attrs){
super(context,attrs);
int gravity = getGravity();
if(Gravity.isVertical(gravity)&&
(gravity&Gravity.VERTCAL_GRAVITY_MASK)==Gravity.BOTTOM){
setGravity((gravity&Gravity.HORIZONTAL_GRAVITY_MASK)|Gravity.TOP);
topDown =