Giter Club home page Giter Club logo

toucheffects's Issues

自定义AlertDialog 的View时候报错

2017-08-06 04:24:36.976 11296-11296/com.deling.launcher E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.deling.launcher, PID: 11296
android.view.InflateException: Binary XML file line #95: com.lky.toucheffectsmodule.effects_view.TouchEffectsButton cannot be cast to android.view.ViewGroup
Caused by: java.lang.ClassCastException: com.lky.toucheffectsmodule.effects_view.TouchEffectsButton cannot be cast to android.view.ViewGroup
at android.view.LayoutInflater.rInflate(LayoutInflater.java:864)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)
at androidx.appcompat.app.AppCompatDialog.setContentView(AppCompatDialog.java:95)
at androidx.appcompat.app.AlertController.installContent(AlertController.java:232)
at androidx.appcompat.app.AlertDialog.onCreate(AlertDialog.java:279)
at android.app.Dialog.dispatchOnCreate(Dialog.java:403)
at android.app.Dialog.show(Dialog.java:302)
at com.hrs.setting.fragments.syssetting.wifi2.CustomDialogManager.createDialog(CustomDialogManager.java:59)
at com.hrs.setting.fragments.syssetting.wifi2.WifiContentDialog.createDetailDialog(WifiContentDialog.java:86)
at com.hrs.setting.fragments.syssetting.wifi2.SettingNet_wifiFragment.showWifiDetailDialog(SettingNet_wifiFragment.java:385)
at com.hrs.setting.fragments.syssetting.wifi2.SettingNet_wifiFragment.onItemClick2(SettingNet_wifiFragment.java:633)
at com.hrs.setting.fragments.syssetting.wifi2.SettingNet_wifiFragment$2.onItemClicked(SettingNet_wifiFragment.java:236)
at com.hrs.setting.adapter.WifiDisListAdapter$ViewHolder$1.onClick(WifiDisListAdapter.java:144)
at com.lky.toucheffectsmodule.effects_adapter.EffectsAdapter.lambda$createClick$0(EffectsAdapter.java:115)
at com.lky.toucheffectsmodule.effects_adapter.-$$Lambda$EffectsAdapter$Yq9_SbqlNb8wh814PtBEwLQABQY.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

TouchEffects造成RecyclerView点击错误

fragment中添加了7个item,点击低4个弹出activity后返回 ,然后点击第二个,发现点击第二个item获取到的信息还是刚才点击的第4个item的信息.去掉Toucheffects就不会有这个问题了.

重大bug,重大bug,重大bug

我的华为手机有时候点了一会儿之后,再次点击所有的按钮都无效了,点击没有反应。

启动报错!!!java.lang.NoSuchMethodError: No static method metafactory

java.lang.NoSuchMethodError: No static method metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; in class Ljava/lang/invoke/LambdaMetafactory; or its super classes (declaration of 'java.lang.invoke.LambdaMetafactory' appears in /apex/com.android.runtime/javalib/core-oj.jar)

列表滑动时可不可以不触发点击效果?

在普通的veiw或者RecyclerView中,如果执行滑动的手势,会触发点击效果。普通的view还好,但是RecyclerView触碰的item会闪烁一下,用户体验不是很好。这个有没有办法处理呢?我看了看微信,微信在滑动列表时item是没有反馈的,似乎是加了个延迟来判断的点击还是滑动。

直接闪退,类型转换异常

使用 androidx.appcompat.widget.AppCompatRadioButton 会报类型转换异常
java.lang.ClassCastException: com.lky.toucheffectsmodule.effects_view.TouchEffectsButton cannot be cast to androidx.appcompat.widget.AppCompatRadioButton

建议收集

有任何建议都可以在这里提出,作者会认真阅读。

dialog报错

android.view.InflateException: Binary XML file line #97: com.lky.toucheffectsmodule.effects_view.TouchEffectsButton cannot be cast to android.view.ViewGroup

不能适配圆角的情况

设置ripple的情况下,带圆角的view点击效果指示的还是不带圆角的view,影响点击体验

部分不起作用

目前发现个问题,正常在layout布局里静态添加到xml的控件正常 ,但动态创建后 通过FrameLayout add 到 这样的view 不起作用

ClassCastException

带有webview的界面中使用,webview加载完成后出现如下错误:
09-05 21:03:06.917 3779-3872/com.xujl.mvcbind W/art: Method processed more than once: java.lang.String org.chromium.net.X509Util.hashPrincipal(javax.security.auth.x500.X500Principal)
09-05 21:03:07.289 3779-3779/com.xujl.mvcbind W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 3779
09-05 21:03:08.689 3779-3779/com.xujl.mvcbind W/art: Method processed more than once: java.util.Map com.android.webview.chromium.WebViewUrlWatcher.readConfigFile()
09-05 21:03:08.933 3779-3779/com.xujl.mvcbind W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 3779
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: android.view.InflateException: Binary XML file line #95: com.lky.toucheffectsmodule.effects_view.TouchEffectsButton cannot be cast to android.view.ViewGroup
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at androidx.appcompat.app.AppCompatDialog.setContentView(AppCompatDialog.java:94)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at androidx.appcompat.app.AlertController.installContent(AlertController.java:232)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at androidx.appcompat.app.AlertDialog.onCreate(AlertDialog.java:279)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.app.Dialog.dispatchOnCreate(Dialog.java:394)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.app.Dialog.show(Dialog.java:295)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at com.just.agentweb.DefaultUIController.onOpenPagePrompt(DefaultUIController.java:83)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at com.just.agentweb.AgentWebUIControllerImplBase.onOpenPagePrompt(AgentWebUIControllerImplBase.java:44)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at com.just.agentweb.DefaultWebClient.deepLink(DefaultWebClient.java:258)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at com.just.agentweb.DefaultWebClient.shouldOverrideUrlLoading(DefaultWebClient.java:301)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at com.just.agentweb.WebViewClientDelegate.shouldOverrideUrlLoading(WebViewClientDelegate.java:58)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at com.android.webview.chromium.WebViewContentsClientAdapter.shouldOverrideUrlLoading(WebViewContentsClientAdapter.java:342)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at org.chromium.android_webview.AwContentsClient.shouldIgnoreNavigation(AwContentsClient.java:168)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading(AwContentsClientBridge.java:256)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:39)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.os.Looper.loop(Looper.java:148)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5539)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at java.lang.reflect.Method.invoke(Native Method)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:745)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:635)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: Caused by: java.lang.ClassCastException: com.lky.toucheffectsmodule.effects_view.TouchEffectsButton cannot be cast to android.view.ViewGroup
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.view.LayoutInflater.rInflate(LayoutInflater.java:836)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.view.LayoutInflater.parseInclude(LayoutInflater.java:971)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.view.LayoutInflater.rInflate(LayoutInflater.java:831)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
09-05 21:03:09.060 3779-3779/com.xujl.mvcbind W/System.err: ... 24 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.