first.Also, note that Android 3.2 has a new API to give you more precise control over the layout resources of the application for different screen sizes. These new features will make your application especially important for tablet optimization. More details will be mentioned in the section "declaring Tablet Layouts f
1. Background
We know that Android provides a system screen-cutting function, which is to hold down the power button and the volume minus button for 0.5 seconds, and the system will perform a screen-cutting function. So to achieve the function of the system screen, is to capture
. ORIENTATION_SQUARE: orientName = "square"; default: orientName = "undefined";} Logger. get (). I ("conf. orient: "+ orientName );
Note that the definitions of constants related to the two (ActivityInfo and Configuration) are inconsistent. constants in ActivityInfo are used to determine the display direction, the constants in the Configuration object are clear actual display directions, which may be four: UNDEFINED, LANDSCAPE, and PORTRAIT) and SQUARE (SQUARE ).
Finally, let's take a look at
Brief Introduction to Android touch screen Gesture Recognition and android touch screen gesture
Most of the time, the use of touch screen Fling, Scroll and other Gesture (Gesture) operations will greatly improve the user experience of the application, such as rolling the
physical machine, the orientation option is required for the screen shift"Focus" If you want to make the program can be tested on the Android emulator need to write Orientation|keyboardhiddenIf the missing Keyboardhidden option does not prevent the destruction of the activityAnd in the later mentioned Onconfigurationchanged event can only capture vertical
1. simulator Information
The color depth of the android simulator is 16 bits, that is, R/G/B = 5/6/5. Therefore, some special processing is required to obtain the screen image.
We can log on to the android simulator using ADB. First, dump the/dev/fb0 content, and then copy the dump file to PC (UBUNTU) and run the convert command to process it.
Obtain the framebu
Android devices run on a variety of screens that have different screen sizes (screen sizes) and screen densities (display density). Screen sizes represents the actual physical size of the screens, such as 5-inch mobile phones, 7-inch tablets, and 8-inch tablets.
Http://www.android100.org/html/201505/24/149342.htmlUI designers need to know Android screen knowledge-Android 100 share a lot of designers and engineers are confused by the numerous screens of Android devices, I do both UI design, but also part of the Android interface layo
the starter in the Force assistant.This is what it looks like after the installation. It is similar to the android pad, and the touch screen shows great performance:
For external apk application import, you can use the function in.
The Android app can run on the computer, and the key step is packet capture. The famo
double-click a line of network requests, and the right side will display the specific request contents (requests header) and the returned content (Response header and content), such as:You can find that fiddler can view the data returned by the network request in various formats, including header, TextView (text), ImageView (picture), Hexview (hex), WebView (Web Form), Auth ( Proxy-authenticate header), Caching (header cache), Cookies, Raw (original data format), JSON (JSON format), XML (XML fo
can find that fiddler can view the data returned by the network request in various formats, including header, TextView (text), ImageView (picture), Hexview (hex), WebView (Web Form), Auth ( Proxy-authenticate header), Caching (header cache), Cookies, Raw (original data format), JSON (JSON format), XML (XML format) is very convenient.Stop network Monitoring, remove the proxy settings of WiFi, or fiddler quit after the phone on the screen Oh.If you nee
(original data format), JSON (JSON format), XML (XML format) is very convenient.Stop network Monitoring, remove the proxy settings of WiFi, or fiddler quit after the phone on the screen Oh.If you need to restore the phone without password status, the Android side can be set by the system-security-trusted credentials-users, click on the certificate to delete or clear the credentials to remove all user certi
), ImageView (picture), Hexview (hex), WebView (Web Form), Auth ( Proxy-authenticate header), Caching (header cache), Cookies, Raw (original data format), JSON (JSON format), XML (XML format) is very convenient.Stop network Monitoring, remove the proxy settings of WiFi, or fiddler quit after the phone on the screen Oh.If you need to restore the phone without password status, the Android side can be set by t
left, his position has not changed, and this refers to the passage of getLeft (),getTop () , GetRight (),getbottom () the position obtained, that is, the position determined by layout . Since the location has not changed, then clicking on the second linear Layout and button Click event is also a response, which means that the location of the capture click event is not entirely in the layout position. Because the hand is not stretched out to the
directory to your android project. Naming rules: Resource Name-delimiter
Note: If the landscape or portrait screen is not specified, both the layout and the bitmap above are applicable to the landscape and landscape screens. If you want to specify a horizontal screen, such as drawable-land-hdpi portrait screen draw
Articles from:http://blog.csdn.net/zshq280017423/article/details/8928616/The biggest headache for a colleague from Android development is a real-bag grab, and then fiddler can help you solve the problem.Here are the steps I use in using the procedure:1. Fiddler (http://fiddler2.com/)2. Install to the computer, my computer system is Win73. Open the Fiddler software, the interface and other capture software i
Official address: http://developer.android.com/guide/practices/screens_support.htmlI. Recommendations on layout adaptation1, do not use absolute Layout 2, try to use match_parent instead of fill_parent. 3, can use the weight of the place as far as possible the use of weight (android:layout_weight) 4, if it is a solid color background, as far as possible using the shape of Android custom. 5. If you need to fit at a specific resolution, you can create a
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.