Hi guys, My application has an activity to display a textview on the screen, and it ran well on the emulator (it can fulfill the whole screen). However, when I try to run it on the device with the resolution 640x480, my application cannot fix the whole screen of this device (just keep the size as of 480x320).
I tried to set the fullscreen flag to hide the title bar, this is implemented in 'onCreate()' method of the activity as below: this.getWindow().setFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); And I also set the layout for .xml file like this: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:id="@+id/root" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/black"> <TextView android:id="@+id/txtView" android:layout_width="wrap_content" android:layout_height="20px" android:textColor="@drawable/black" android:layout_alignParentTop="true" android:layout_alignParentRight="true"> </TextView> </RelativeLayout> I don't know why my application cannot fulfill the whole screen as expected. Can anyone find out the reason why. Best regards, Minh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---