privatebooleanisTablet(){intlayout = getResources().getConfiguration().screenLayout;return(layout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_LARGE || (layout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_XLARGE; } 開發者ID:jathak,...
--> <resources> <!-- Define a new configuration for the resources_layout_reference layout, which uses the special tablet layout. --> <item type="layout" name="resources_layout_reference"> @layout/resources_layout_reference_tablet</item> </resources> Except as noted, this content is ...