We usually have this requirement when developing the UI. The following section shows the size of the screen.CodeYou can get the screen size on the Android platform. The code is as follows:
1. Display display = getwindowmanager (). getdefadisplay
In Android, the basic class for processing images is bitmap, which, as its name suggests, is bitmap. Memory usageAlgorithmThe image width is as follows:HeightConfig. If config is set to argb_8888, the above config is 4. One 480The memory occupied by
Many netizens may find that the mobile QQ Android version launched by Tencent recently contains an opening screen splash screen loading effect. Generally, a game or a large software may need a process to release resolution resources, it requires the
1. Modify imsi in the emulator.exe binary file.
Android4.0, Windows-SDK
1) Modify imsi In SDK-DIR/tools/emulator-arm.exe
2) use the Binary Modification tool (for example, ultraedit.pdf to open emulator-arm.exe
3) Find the default imsi (3102600
Http://www.cnblogs.com/lab-hit/articles/2430198.htmlAndroid Input Method Framework
/Frameworks/base/services/Java/inputmethodmanagerservice. Java is the control center of all input methods in the system. It manages the following three modules to
Http://www.cnblogs.com/salam/archive/2010/11/30/1892143.html
During development, full screen display, custom titles (using buttons and other controls), and other requirements are often required. Today we will talk about how to control the form
Http://hi.baidu.com/xmjmcai/blog/item/f22a468b1400ae8fa4c272a9.html
Http://hi.baidu.com/xmjmcai/blog/item/f22a468b1400ae8fa4c272a9.html
1. Menu type
1) optionsmenu selection menuThis is the most common menu for applications. The menu that
Http://blog.sina.com.cn/s/blog_3f8c71da0100spad.html
Android) on-off animation production principle
Boot animation file: bootanimation.zip
First, you must understand that android Android animation consists of a series of continuous PNG
Android slide gesture
I forgot where I learned it. Thanks to the original author for writing it clearly.
Code
Package COM. SL. quwei. UI. manage; import android. app. activity; import android. OS. bundle; import android. util. log; import android.
Android edittext has an attribute set Android: inputtype = "? "Is used to set the text type to help the input method display the appropriate keyboard type.
The following settings are available:
None,
Text,
Textcapcharacters Letter size,
Size of the
During aandroid development, you often need to click the screen and then make some reflection. How can you achieve certain actions by clicking a certain position or image on the screen?
The Touch Screen events supported by Android include pressing,
Basic class, must be familiar. To use it, you must derive your own activity subclass from activity.
It can be considered as the smallest independent task unit for interaction with users, so it is called "activity ". When an activity interacts with a
The entire process of using socket in Android ndk is divided into the following parts:
Part 1: Create a socket and bind the IP address and port
# Include # include # include # define max_data_buf_len 10240 int SD = invalid_socket; sockaddr_in
The following code is the code in the video tutorial of Mars. I commented on it.
Create two XML layout files main. xml and user. xml. The main. xml file is automatically created by the system.
Main. xml layout file code:
Android: layout_width =
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service