Android Activity Will Not Fill WVGA Screen

I am developing an Activity using a simple LinearLayout with a button. When I try to work on my equipment (WVGA 480x800 screen), activity fills only the standard size (480x320), and the OS itself fills the entire screen.

What could be the problem.

Thanks,

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#FFF" android:fitsSystemWindows="true"> <Button android:text="@+id/Button01" android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button> </LinearLayout> 
+4
source share
1 answer

I believe that you need to indicate in the manifest file that you want the application to scale to a larger screen.

See http://developer.android.com/guide/practices/screens_support.html#attrs for details.

There is part of the <supports-screens> attribute in the manifest, which may have what you are looking for.

+6
source

Source: https://habr.com/ru/post/1305026/


All Articles