android中textview设置为多行文本时,如何让文字从最顶开始显示

<span style="white-space:pre">    </span><EditText
            android:layout_width="match_parent"
            android:layout_height="200dp"
            android:inputType="textMultiLine"
            android:textColor="#4c4d51"
            android:background="@null"
            android:gravity="left|top"
            android:textSize="13sp"/>

加上Android:gravity="left|top"这句即可。

posted @ 2017-01-08 13:46  云中雀  阅读(3800)  评论(0编辑  收藏  举报