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"
精彩评论