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