My app does not use the entire screen when ran on an Android phone
I am creating a graphics based game that uses 开发者_StackOverflowa DrawView.java page to display my game. This replaces an XML file because I draw everything in the DrawView page. However, it is only drawing on about 1/2 of the screen. My question is:
What line of code determines how much of the screen is being used?
Here is a picture of my problem:
Does your DrawView have these parameters?
android:layout_width="fill_parent"
android:layout_height="fill_parent"
If yes, then i need to see the code.
精彩评论