[英]How to read text file from server and display only e.g. 100 last lines of it in textview
[英]How to put a TextView control in Android with a specific height (e.g. 5 lines)?
如何放置一個高度為5行的TextView控件? 我需要在手機上使用默認字體的5行文字上設置TextView的高度限制。 怎么做?
android:maxLines="5"
//這將使TextView最多只有這么多行。
android:lines="5"
將使TextView始終高5行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.