开发者

Display text to fill screen : Android

开发者 https://www.devze.com 2023-02-18 19:32 出处:网络
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_wid

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

精彩评论

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