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

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -