---
title: "【转】设置android程序平板下全屏"
author: "zhanhao"
date: "2011-12-13T11:11:13Z"
tags: ["Android", "平板全屏"]
categories: ["移动开发"]
slug: "android"
draft: false
lastmod: "2011-12-13T11:11:13Z"
id: 1308418
url: "https://zhanhao.iteye.com/blog/1308418"
---

【转自】[http://blog.csdn.net/huoshen8211/article/details/7058928](http://blog.csdn.net/huoshen8211/article/details/7058928)

默认情况下写好的android程序在平板下不能全屏，显示的还是手机屏幕大小，

可以在AndroidManifest.xml文件中**&lt;/manifest&gt;** 标签上面添加

**&lt;supports-screens android:largeScreens="true" android:anyDensity="true"/&gt;**  
来实现让平板全屏显示，，

或添加

**&lt;supports-screens**  
**android:xlargeScreens="true"**  
**android:largeScreens="true"**  
**android:normalScreens="true"**  
**android:smallScreens="true"**  
**android:anyDensity="true" /&gt;**