-
Toast is a mechanism used to display display information in Android, unlike Dialog, Toast has no focus, and Toast displays a limited amount of time, and it will automatically disappear after a certain amount of time. The default effect is:
Default toast style", ;
Customize the display position effect, **is:
toast = ,"Custom location toast", ;0, 0);
toast = ,"Toast with **", ;0, 0); linearlayout toastview = (linearlayout) ;imageview imagecodeproject = new imageview(getapplicationcontext())0);
Fully custom effects, ** is:
layoutinflater inflater = getlayoutinflater();view layout = , viewgroup) findviewbyid(;imageview image = (imageview) layout .findviewbyid(; textview title = (textview) ;"attention"); textview text = (textview) ;"Fully custom toasts"); toast = new toast(getapplicationcontext())12, 40);
For other threads, it is:
new thread(new runnable() start();
-
Tools Raw materials.
eclipse
SDK method steps.
It is a mechanism used to display display information in Android, and unlike Dialog, Toast has no focus, and Toast displays a limited amount of time, and it will automatically disappear after a certain amount of time. The default effect is:
Default toast style", ;
2.Customize the display position effect, **is:
toast = , custom position toast", ;0, 0);
toast = , toast with **", ;0, 0); linearlayout toastview = linearlayout) ;imageview imagecodeproject = new imageview(getapplicationcontext())0);
4.Fully custom effects, ** is:
layoutinflater inflater = getlayoutinflater();view layout = , viewgroup) findviewbyid(;imageview image = imageview) layout .findviewbyid(; textview title = textview) ;"attention");textview text = textview) ;"Fully custom toasts");toast = new toast(getapplicationcontext())12, 40);
5.For other threads, it is:
new thread(new runnable() start();
-
How to skillfully use the effects of the five toasts in Android development experience.
On the Windows 7 development platform, the Android Studio development tools use the following methods to limit the maximum number of characters that can be entered in EditText. >>>More
MVC, MVP and MVVM are the three common architectural design patterns, and the current use of MVP and MVVM is relatively widespread, of course, MVC is not outdated. >>>More
executable file,You can double-click to install it.,Just remember the installation directory and it's OK.,Because you'll need this installation directory later.。 If it is a compressed package, you just need to remember the location after decompression; The following figure shows the contents of the decompressed file; >>>More
Adding the Eclipse plug-in is easy, but once you open Eclipse, click Help ->Install New Software....Then click add will come out of an add site window,Here name enter android (just take one yourself),Enter the network address of the plugin in location: >>>More
1. In Photoshop, create a selection around the eyes and feather the selection with 5 pixels or more. In some cases, it may be necessary to increase the amount of feathering up to 15 pixels. The amount of feathering applied depends on the resolution of the image and the severity of the red-eye problem. >>>More