android - How to make content fill all the screen? -



android - How to make content fill all the screen? -

how create content fill screen regardless of screen size?

images below. want left image, not right:

if utilize relativelayout can alter container linearlayout , set layout_weight children:

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <textview android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="1" android:text="text 1"/> <textview android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="1" android:text="text 2"/> </linearlayout>

android

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -