detect the Clear Air Atmosphere: ① scattering of electromagnetic waves by the refractive index uneven structure caused by atmospheric turbulence; ② Stable Atmospheric stratified structure partial reflection of the incident electromagnetic wave; ③ sometimes the free electrons in the Middle Atmosphere scatter the electromagnetic wave; ④ the meteor debris scattering in the middle atmosphere. Scattering the air movement in the volume, so that the radar echo has a Doppler frequency deviation. the s
scrollview, And the onintercepttouchevent method of scrollview will be rewritten:
@Overridepublic boolean onInterceptTouchEvent(MotionEvent ev) {return false;}
12. in the getview method of the adapter, specify the view of the sub-item through getlayoutinflater (). inflate (Android. r. layout. simple_list_item_single_choice, parent, false) and getlayoutinflater (). inflate (Android. r. layout. simple_list_item_single_choice, null); the effect is different (the parameter is an example). The thr
the horizontal vertical direction of the mobile phone, and the front is positiveThe Y direction is the vertical direction of the mobile phone space, the direction of the sky is positive, and the direction of the earth is negativeTherefore, if your mobile phone is placed in different locations, the acceleration speed varies in three directions. Here, the acceleration in the three directions is different from the acceleration in the traditional sense (9.8 m/s2) and needs to be refined.The followi
Down is the interaction between the left and the right: shake. xml
This basically completes the dynamic effect.
Directly in the Code:
Animation shakeAnimation = AnimationUtils.loadAnimation(this, R.anim.shake_xy);view.startAnimation(shakeAnimation);
Now, the mobile phone shake and QQ sound prompts are added to the shake effect:
SoundPool soundPoolsoundPool = new SoundPool (10, AudioManager. STREAM_SYSTEM, 5); // The maximum number of sounds that can be released at the same time
Android native method. click the button on the Unity interface to vibrate the mobile phone! For the most basic interaction, refer to this article. The basic interaction between Unity and Android is achieved on this basis. In fact, it is almost the same! It may be repeated. When you consolidate yourself, haha! Test method: a real machine test is required !!! Implementation steps: 1. Create an Android project 1. Create a project
2. Import the jarJar directory of Unity: installation path of unity
This example for you to share the Android message prompts the specific code for your reference, the details are as follows
protected Audiomanager Audiomanager;
protected vibrator Vibrator; Audiomanager = (Audiomanager) getsystemservice (Context.audio_service); This method is vibrator = (vibrator) getsystemserv
Look at the effect chart first.
Main ideas:
1. Monitor the Touch event2, with WindowManager to add drag pictures3. Exchange list data with Collections.swap ()
Custom code:
public class Draggridveiw extends GridView {private final int press_time = 1000;//long time private int mdownx;//touch x sit Mark Private int mdowny;//The y-coordinate of the contact when private int mmovex;//move when the x coordinates private int mmovey;//when moving the y-coordinate private int moffset2top; Draggr
I announced from this blog post, my cocos2dx engine from cocos2dx3.1.1 jump to cocos2dx3.2, haha, in fact, the change is small, not in the way ~ ~ ~The following is said in the Cocos add Android phone vibration features, personal experience, online tutorials are slag ah, pit ratio is very, but also to see the original post http://www.cocos2d-x.org/boards/6/topics/8179, all in English, Egg pain annoyed for a long time, just solve ~ ~Let's get down to the chase. I believe that after reading this a
Have done a small project, which realized the shaking of the function and scraping a scraping function and playing background music, etc.Shake-shake function is mainly used for acceleration sensor :sensor.type_accelerometershake a shake function The main is to monitor the mobile phone acceleration changes, when the setting of a certain value, that is, trigger event . /** * FileName:MainActivity.java * @desc This class is used to display a shake-shake interface * @author HTP * @Date 20140311 * @v
This example for you to share the Android micro-wave function of the implementation method for your reference, the specific content as follows
Import java.util.ArrayList;
Import java.util.List;
Import Java.util.Random;
Import android.app.Activity;
Import Android.app.Service;
Import android.content.res.Resources;
Import Android.hardware.Sensor;
Import android.hardware.SensorEvent;
Import Android.hardware.SensorEventListener;
Import Android.hardware.SensorManager;
Import
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.