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"这句即可。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM