如何设置一个textview的文字显示为垂直居中,水平居左呢

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView  
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:gravity="center_vertical|left"
    android:text="@string/hello"
    />
</LinearLayout>

posted @ 2014-05-14 14:30  James.Ye  阅读(5269)  评论(0编辑  收藏  举报