满屏玩了。
对于手机用户,使用adb shell连接到手机,取得root权限后修改ro.sf.lcd_density的值就能达到效果
另一种方法:
当然,如果你想保证你的Density不变,那可以只修改CompatibilityInfo.java这个文件,把DEFAULT分辨率的值改成当前的屏幕分辨率,我的是800x600的,于是改成:
1 /* *
2 * The default width of the screen in portrait mode.
3 */
4 // public static final int DEFAULT_PORTRAIT_WIDTH = 320;
5 public static final int DEFAULT_PORTRAIT_WIDTH = 600 ;
6 /* *
7 * The default height of the screen in portrait mode.
8 */
9 // public static final int DEFAULT_PORTRAIT_HEIGHT = 480;
10 public static final int DEFAULT_PORTRAIT_HEIGHT = 800 ;