[Android] transfers the container touch event to another container ,!, Android mobile

Source: Internet
Author: User

[Android] transfers the container touch event to another container ,!, Android mobile

Ideas:

1. view. dispatchTouchEvent


Purpose:

1. Click through the container point to the control that is not its sub-control ,!

2. Upload the event to the following activity through transparent activity or dialog ,!

Note: 1> you can also use MotionEvent. obtain (downTime, eventTime, action, x, y, metaState) to simulate events, such as being used in Bootstrap ,!


Click container:

Public class MyLinearLayout extends LinearLayout {public MyLinearLayout (Context arg0, AttributeSet arg1) {// TODO Auto-generated constructor stubsuper (arg0, arg1);} @ Overridepublic boolean Merge (MotionEvent ev) {// TODO Auto-generated method stubMotionEvent event2 = MotionEvent. obtain (ev); // MainActivity. llTest is the target container that replicates events to llTestMainActivity. llTest. dispatchTouchEvent (event2); return super. onInterceptTouchEvent (ev );}}


When you click the button on the left, the event is also passed to the right:








Jin yongqun and Xia Chuan 1 Qian Kun moved the game

It should be a qualification issue. Qiankun's big migration requires more than 75 insights. It feels useless and it's too easy to defend against problems.

I would like to ask, in Warcraft 3, Zhang Wuji practiced where yuankun was moved and where he learned how to practice it !!

First, I forgot how much your character level should meet your requirements.
Then I went to the store in the lower right of my hometown to buy an attack claw.
When Yang dingtian appears, a prompt will appear in the upper-right corner of the screen.
Once it appears, go to the lower-left House of Hu qingniu (Pharmacy, although there is no way to go in, you can go in to the secret road. 'The upper right corner of the secret road has Yang dingtian's body. You need to attack the stone barrier before you can go in close to the body to complete the task.
Skills can be learned.

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.