If you design and develop a web app on an Android device, you should consider the display of Web pages on different screens. Because Android has many different types of phone screens, you should consider the factors that affect the display of Web pages on Android devices.Note: The following features described in this article have been supported on Android 2.0 or later versions of Android browsers (Android s
Android official getting started documentation-Supports different screensAndroid official getting started documentation [10] supports Different screen Supporting Different ScreensSupports different screens
This lesson teaches you1. Create Different Layouts2. Create Different Bitmaps
You shoshould also read• Designing for Multiple Screens• Providing Resources• Iconography design guide
This lesson teaches yo
Supporting different screenspreviousnext
This lesson teaches you
Create different layouts
Create different bitmaps
You shoshould also read
Designing for multiple screens
Supporting multiple screens
Iconography Design Guide
The screen size and pixel density of Android devices are different. Your applications run on Android devices of different sizes or pixel density. Therefore, you should add some al
Syntax (syntax ):
Android: smallscreens = ["true"| "False"]Android: normalscreens = ["true"| "False"]Android: largescreens = ["true"| "False"]Android: xlargescreens = ["true"| "False"]Android: anydensity = ["true"| "False"]Android: requiressmallestwidthdp ="Integer"Android: compatiblewidthlimitdp ="Integer"Android: largestwidthlimitdp ="Integer"/>
Included in (contained in ):
Description ):
This element is used to specify the screen size supported by the application and enable the screen compat
Address: http://docs.huihoo.com/android/2.2/guide/practices/screens_support.html
This article is a bit outdated, and there should be the latest on the network.
Supports multiple screens
Android is designed to run on a variety of devices that provide screen sizes and resolutions. For applications, the platform provides consistent cross-device environment and handles many complex application UIS to adapt to display on the screen. At the same time, th
Android learning route (18) Supports different devices-Supports different screens
Android uses two common attributes: size and density to classify the device screens. You need to first predict what screen devices your application will be installed on, including the screen size and density. In this way, you need to provide some optional resource classes so that your applications can be best displayed on devi
For Android resources and internationalization problems, we usually create an Android project. The directory structure is shown in:
Let's take a look at the layout and values directories. The xml files in layout are the layout files used by our applications, and the sring in values. xml is used to store text resources. A key corresponds to a value.However, in actual application development, landscape screens (land) and vertical
density is the basis for the Android screen to zoom in and out, so how does Android fit so many screens?In fact, each Android phone screen has an initial fixed density, these values are 120, 160, 240, 320, 480, we right vote called "system density." Did you find the pattern? There is a twice-fold relationship between the separated values. In general, the 240x320 screen is low-density 120dpi, that is, the ldpi;320x480 screen is medium density 160dpi,
Tags: Aerial painting HTTPHuanghuali screen in QianlongScreen screen is one of the oldest furniture in China. It was available as early as Zhou Chao. In addition, the most expensive furniture in the world is also a screen. At an auction in Hong Kong, China in 2003, a screen embedded with Rosewood Baobao made about 25 million yuan. In ancient times, there were many functional screens. First, it is a symbol of power, but a screen must be placed on a maj
[WebView 2]: using Web Apps to support screens with different resolutions, webviewapps
We learned in the previous article (1. [one of WebView learning]: Introduction to Web Apps). Let's continue learning today.
(Blog address: http://blog.csdn.net/developer_jiangqq), reprint please note.
Author: hmjiangqq
Email: jiangqqlmj@163.com
Because Android devices have a lot of resolutions, different screen and pixel density, you should consider that the webpag
At first, the first two screens that were exposed to the left and right were switched inInnovation stems from imitation 3: switching between the two screens left and right. In this article, I would like to thank the author for providing us with such a good demo.
What is viewpager?
It is a class that enables smooth switching between the left and right screens.
Reference: http://developer.android.com/guide/topics/manifest/supports-screens-element.html
If the application adjusts the size attribute to fill the screen, the application must support the given size. Generally, for most applications, the system can do this well, and you do not need to do any extra work to make the application work on a screen larger than a handheld device. However, it is often important to optimize the UI of an application by provi
Linux users, especially Ubuntu or CentOS users, are basically used to clearing terminal screens by using the clear command or Ctrl + L combination shortcut keys. However, this operation does not actually clear the screen. it just gives people the illusion that the screen is cleared. However, when you scroll up with the mouse, you can still see the output from the previous command operations. When processing a large amount of text, this situation will
This is some bloggers own self-adaptive understanding of the Android screen, there is no place to spray.First of all, observe the new Project Res folder, you can expect to find Drawable folder has many, such as drawable-hdpi, drawable-ldpi, drawable-mdpi, drawable-xhdpi, These folders are Google for the screen self-adaptation to do the preparation, meaning that friends in the screen to adapt before you should prepare 5 sets of resource pictures to come out of the problem. The corresponding propo
The Curses function library provides a terminal-independent way to write full-screen character-based programs. Curses also manages the keyboard, providing an easy-to-use non-blocking character input mode.The Curses function library optimizes the movement of the cursor and minimizes the need to refresh the screen, thus reducing the number of characters that must be sent to the character terminal.The curses library has several different implementations. Linux uses ncurses (new curses), which can b
Android horizontal and vertical screens should solve two problems: one. Layout problem; 2. Reload.1. layout problems:If you do not want the software to switch between the horizontal and vertical screens, the easiest way is to do so in the AndroidManifest of the project. in xml, add the android: screenOrientation attribute to the activity you specified. It has the following parameters:"Unspecified"The defaul
This article translated from: http://developer.android.com/training/basics/supporting-devices/screens.html
Android uses two attributes to classify the screen of a device: size and density. You should imagine the device screen size and density range for installing your app. For example, you should include some optional resources to optimize the display appearance of your applications on screens of different sizes and density.
1. Four general dimensions
Method One: Configure in Androidmanifest.xmlAssuming you don't want the software to switch between the screens and the screen, the easiest way is to find the activity you specified in the project's androidmanifest.xml with the Android:screenorientation attribute. He has the following number of references:"Unspecified": The default value is inferred from the system for the display direction. The decision strategy is device-dependent, so different devic
In 1997, it was a spring. An old man drew a circle on the edge of the South China Sea. This circle was painted in our big Shenzhen City! The person who draws the circle is Comrade Xiaoping.
In the spring of 2014, the popularization of mobile devices has become another revolution in the development of the Internet. We draw one circle after another on various small screens, the user's mobile experience is becoming better without intention, because more
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.