The textview control has a method to control the addition of shadows:
Mtextview. setshadowlayer (10f, 11f, 5f, color. Yellow); the first parameter is The Blur radius, and the greater the Blur. The second parameter is the X horizontal distance from
Taking linearlayout as an example, the background attribute provided by linearlayout will stretch the background image, which is rather ugly. In fact, we only need to make a few modifications to achieve the effect of CSS background images in Web
Android 2.3 and later versions support the overscroll of listview. It is convenient to make auto-scroll like iPhone, and roll back over the top or bottom of the list. I did not find an example of Google for half a day yesterday. I tried again today
Below are some common android websites I have collected. If you have any good information, please recommend it.
Http://www.eOeandroid. coM/
Http://www.java2s.com/Open-Source/Android/CatalogAndroid.htm
Method 1:String Path = "file: // android_asset/file name ";
Method 2:Inputstream abpath = getclass (). getresourceasstream ("/assets/file name ");
To convert to the string type
String Path = new string (inputstreamtobyte (abpath ));
Private
The sharedpreferences provided by Android is similar to WindowsProgramCommon INI files are saved in the form of key-value (data type differentiation ). For example, it can be used to save the user's last login information, the volume setting of the
After taking a picture of a project recently, we need to upload the image to the server, and the server is written by the CS WebService. Generally, webservcie communication is called to transmit strings in XML or JSON format. I have never uploaded
The project encountered the function of processing batch data insertion. Later, the data insertion effect is improved, and transactions are used.
Override method in contentprovider:
@ Override public contentproviderresult [] applybatch (arraylist
@ OverridePublic void onbackpressed (){// Todo auto-generated method stubSuper. onbackpressed ();Toast. maketext (this, "Haha", Toast. length_long). Show ();// Return;}
In this way, when you press, the activity exits and prompts "Haha "!
When
Cursoradapter is used in the project, which is summarized as follows:
Sometimes this error is reported. For example, if a cursoradapter is used for an activity in the tab, clicking the tab will cause the following exception:Java. Lang.
Robotium performs Android automated testing for the initial experience. The content of this article is as follows:
I. Only APK, robotium testing without source code:
Ii. Source Code test of APK to be tested:
Robotium Web site: http://code.google.com/
1): precise CT: 100-continue: http. Protocol. Precise CT-continue
Keep CT 100 continue is actually a header attribute in HTTP 1.1, that is, if you set keep CT 100 continue, it means that when the client sends data to the server, you must first
1. Create a file named dimens. XML in the values folder, as shown below:
text area button 150px 100px 30mm 10mm # f00
2. Create a file named test_dimens.xml in the layout folder, as shown below:
3. Create a
In the design of webview, The webview class is not required to do anything. Some chores are assigned to others, so that webview can focus on parsing and rendering. Webviewclient helps webview process various notifications and request events,
I am a newbie. I used field transformations in the database in the past few days. I found these common fields in the database field. I will share them with you, data Types and fields that are frequently used for table creation in the android
In Android, to accept broadcast information, we have to implement this broadcast receiver by ourselves. We can inherit broadcastreceiver to have a broadcast receiver. There is not enough receiver. We have to rewrite the onreceiver method in
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