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

时间:2017-01-08 14:14:11   收藏:0   阅读:770
<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"这句即可。

原文:http://www.cnblogs.com/blosaa/p/6261898.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!