Display text shadow in Android textview

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

Set background image tile for Android

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 elastic listview scrolling

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

Common android technology websites

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

Android obtains the absolute path of assets.

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

Android uses sharedpreferences for data storage

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

Android calls WebService to upload images

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

[Android] batch data insertion improves the speed

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

Android rewriting onbackpressed () function failure

@ 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

Refreshing simple images and views for Android

Create View: Import Android. content. context;Import Android. Graphics. Canvas;Import Android. Graphics. color;Import Android. Graphics. paint;Import Android. Graphics. rect;Import Android. Graphics. rectf;Import Android. View. view; Public class

Android: Read mobile phone information

1) read imsi, IMEI, and mobile phone number: TelephonyManager tm = (TelephonyManager) this .getSystemService(Context.TELEPHONY_SERVICE); String deviceid = tm.getDeviceId(); String tel = tm.getLine1Number(); String imei =tm.getSimSerialNumber();

Source code for calling Web service from Android

Package com. Android; Import java. util. arraylist;Import java. util. hashmap;Import java. util. iterator;Import java. util. List;Import java. util. Map;Import java. util. Map. entry; Import org. ksoap2.soapenvelope;Import org. ksoap2.serialization.

[Android] Precautions for using cursoradapter

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.

[Android automated testing] robotium initial experience

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/

HTTP Communication performance in Android applications

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. opencv for Android Development Environment Configuration

Reference: http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html Http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/android_dev_intro.html#android-dev-intro Android-Environment Configuration Http:

Android uses size resources dimens

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

Differences between webview, webviewclient, and webchromeclient in Android

  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,

Data Type when fields are created in the android Database

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

Android broadcast mechanism (two registration methods)

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

Total Pages: 2774 1 .... 2394 2395 2396 2397 2398 .... 2774 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.