1. 判断是否为平板
public boolean isScreenLarge(){
boolean sIsScreenLarge = false;
final int screenSize = getResources().getConfiguration().screenLayout &
Configuration.SCREENLAYOUT_SIZE_MASK;
sIsScreenLarge = screenSize == Configuration.SCREENLAYOUT_SIZE_LARGE ||
screenSize == Configuration.SCREENLAYOUT_SIZE_XLARGE;
return sIsScreenLarge ;
}