Sometimes you need to set edittext to not display the cursor. After checking the Internet, it is generally a reflection system method:
If (Android. OS. Build. version. sdk_int Metinput. setinputtype (inputtype. type_null );} Else {Getwindow ().
Simple concepts are the goals pursued by many people, but in actual situations, everyone prefers comparison. They want to make their own things more beautiful. Forgetting simple is the concept of beauty. Simple makes more sense in Android products.
Address: http://xmchang.bokee.com/6922990.html
Android text is drawn to bitmap. OpenGL ES does not seem to be able to output text. Writing text to bitmap can be used as a texture to achieve text output.
The method for drawing text to
Screen coordinate (XS) vs device coordinate (xd)
Screen coordinate is related to screen rotation, which cocould be change after orietation. But device coordinate is fixed, left up is original point.
XS= XD * A + yd * B + C
YS= YD * D + yd *
Specifying the interface.
This example uses aidl, so the first step is to add an InterfaceDefinitionFile:
Frameworks/base/CORE/Java/Android/OS/ieneaservice. aidl
Package Android. OS;
Interface ieneaservice {
/**
* {@ Hide}
*/
Void
Android apps can set system themes through Android: Theme
• Android: theme = "@ Android: style/theme. dialog "shows an activity as the dialog box mode • Android: theme =" @ Android: style/theme. notitlebar "do not show
I use eclipse to start the simulator, click Start, display launch options, and then click launch to display starting Android emulator, and then there is nothing left. It can also be started. Check that the ADT version is 14.0.0.v201110171935-20599
Guess Android systemclock keeps system timer and RTC count sync.
Power on reset-> reserve RTC power only
Command reboot (System Software reset)-> reserve pm, RSC, RTC, gpio
For keep time for situations as sleep/wakeup, command reboot, power
In the file packages/apps/settings/src/COM/Android/settings/deviceinfosettings. Java
Setstringsummary ("build_number", build. Display );
The version number of settings -- about devices -- is specified.
Build. display is the DISPLAY variable in
Previously, pagination was implemented using gridview and activitygroup. because tabhost is not easy to use, there is another reason for poor level. if you want to help, rewrite view to solve any problem.
I will not explain much about the use of
There are a lot of examples of Web soft application, I also learn from others to modify the next, recommended a Web site: http://www.iteye.com/topic/685986
I have never understood this before. Today I carefully record it and use it later.
Hashmap
After passing the previous authentication, you can call the open APIs in the API. Generally, the applications we develop need to display Weibo information of some enterprises. For example, the MasterCard I developed previously showed MasterCard
First of all, we should first look at the case:
The static graph does not show the effect. If you have used this software (Zha ke), all of them know that her background will change. do you think it is very fashionable? At least it is better than
Do not use setimagebitmap, setimageresource, or bitmapfactory. decoderesource to set a large image,Because after decode is completed, these functions are ultimately completed through the createbitmap on the Java layer, and more memory is
Some time ago, when designing the UI, we saw that the pop-up menu of UC was well designed:
As a result, I wrote this effect on myself,The main code is as follows:DLG = new alertdialog. Builder (context). Create ();DLG. Show ();DLG. getwindow ().
// Relative to the given ID Control
Android: layout_above: place the bottom of the control on the control with the given ID;
Android: layout_below: place the bottom of the control under the control with the given ID;
Android:
When developing image browsers and other software, it is often necessary to display the thumbnail of an image. In general, we need to take a thumbnail of the image according to a fixed size, generally, the thumbnails are obtained using the
The Android platform is indeed very open. You can call almost any underlying interface, or even intercept text messages or incoming calls. These are incomparable to the j2s platform. This topic describes how to access the call history of
From: http://my.oschina.net/kut/blog/30564
Just a short time before getting started with programming on the Android platform, the rotten teaching materials were dizzy.
There is a question about how to customize the menu popped out. Of course, I didn'
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