Skip to content

加载链接无法触发内部滑动事件 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
seven001 opened this issue Dec 26, 2016 · 2 comments
Open

加载链接无法触发内部滑动事件 #11

seven001 opened this issue Dec 26, 2016 · 2 comments

Comments

@seven001
Copy link

加载微信链接,比如http://i.eqxiu.com/s/6OELV9GN?eqrcode=1&from=timeline&isappinstalled=0
会发生冲突,html的链接内部事件没法触发,造成冲突了。

@YIGENB
Copy link

YIGENB commented Jan 21, 2020

加载微信链接,比如http://i.eqxiu.com/s/6OELV9GN?eqrcode=1&from=timeline&isappinstalled=0
会发生冲突,html的链接内部事件没法触发,造成冲突了。

我也碰到了一样的问题,所有链接加载之后都无法滑动

@YIGENB
Copy link

YIGENB commented Jan 21, 2020

贴上我的代码,不管什么url,webview内部html都无法滑动
` SlidingLayout sldinglayout=new SlidingLayout(cordova.getActivity());
sldinglayout.setLayoutParams(new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
sldinglayout.setSlidingMode(1);
// sldinglayout.setSlidingOffset(1.0F);
// sldinglayout.setSlidingDistance(5);
sldinglayout.setBackground(new ColorDrawable(toolbarColor));

            LinearLayout text_viewLayout=new LinearLayout(cordova.getActivity());
            text_viewLayout.setOrientation(LinearLayout.VERTICAL);
            DisplayMetrics outMetrics = new DisplayMetrics();
            sldinglayout_text=new TextView(cordova.getActivity());
            sldinglayout_text.setLayoutParams(new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
            sldinglayout_text.setGravity(Gravity.TOP);

// sldinglayout_text.setWidth(outMetrics.widthPixels);
// sldinglayout_text.setHeight(60);
sldinglayout_text.setTextSize(TypedValue.COMPLEX_UNIT_PX,30);
sldinglayout_text.setTextColor(Color.parseColor("#f5f3f3"));
sldinglayout_text.setPadding(16,50,16,16);
text_viewLayout.addView(sldinglayout_text);

            sldinglayout.setBackgroundView(text_viewLayout);
            sldinglayout.addView(webViewLayout);

// sldinglayout.addView(inAppWebView);
// sldinglayout.setBackgroundView(inAppWebView);

            main.addView(sldinglayout);`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants