开发者

Display text to fill screen : Android

I am trying to display a text, that that will use the maximum possible screen in the device, in both landscape and portrait mode. i am a beginner. how to d开发者_StackOverflowo this?


android:layout_width="fill_parent"
android:layout_height="fill_parent"

increase textsize of text and see the result.


Use android:layout_width="fill_parent" and android:layout_height="fill_parent". For more info look here.


I agree with the other responses. But if you want to be really up-to-date, use match_parent instead.

http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html


android:layout_width="fill_parent" android:layout_height="fill_parent"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜