Coder Social home page Coder Social logo

Comments (13)

3llomi avatar 3llomi commented on June 21, 2024

#17

from recordview.

bettersharing avatar bettersharing commented on June 21, 2024

Hello 3Ilomi,
I have created the class in kotlin as stated in #17, but it still doesn't work. When I create this, a new layout "custom_preview" appears in which it tells me that "android" " is invalid. Prefixed namespace bindings may not be empty".
Should I add something else in this class? What could be wrong?

from recordview.

bettersharing avatar bettersharing commented on June 21, 2024

Please, can you help me?

from recordview.

3llomi avatar 3llomi commented on June 21, 2024

Please share the code you have + the error you got

from recordview.

bettersharing avatar bettersharing commented on June 21, 2024

pbTir

Above you can see the problem that arises.

This is my own RecyclerView:

class CustomRecyclerView : RecyclerView {
constructor(context: Context?) : super(context!!) {}
constructor(context: Context?, @nullable attrs: AttributeSet?) : super(context!!, attrs) {}
constructor(context: Context?, @nullable attrs: AttributeSet?, defStyle: Int) : super(
context!!,
attrs,
defStyle
) {
}

override fun onInterceptTouchEvent(ev: MotionEvent): Boolean {
    val action = ev.action
    when (action) {
        MotionEvent.ACTION_DOWN -> super.onTouchEvent(ev)
        MotionEvent.ACTION_MOVE -> return false // redirect MotionEvents to ourself
        MotionEvent.ACTION_CANCEL -> super.onTouchEvent(ev)
        MotionEvent.ACTION_UP -> return false
        else -> {}
    }
    return false
}

@SuppressLint("ClickableViewAccessibility")
override fun onTouchEvent(ev: MotionEvent): Boolean {
    super.onTouchEvent(ev)
    //Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() );
    return true
}

}

the xml file is the one from the first post but changing recylerView to the name of my own recyclerView.

What should I add in my own recyclerView to fix the error?

from recordview.

bettersharing avatar bettersharing commented on June 21, 2024

Can you help me please?

from recordview.

3llomi avatar 3llomi commented on June 21, 2024

Send me a demo project so I can look into it.

from recordview.

hami9872 avatar hami9872 commented on June 21, 2024

@3llomi have you resolved this issue ??

from recordview.

hami9872 avatar hami9872 commented on June 21, 2024

Can you help me please?

did you find any solution?

from recordview.

3llomi avatar 3llomi commented on June 21, 2024

@hami9872 Did you test the solution mentioned above?
Can you send me a sample Project so I can look into it?

from recordview.

hami9872 avatar hami9872 commented on June 21, 2024

@hami9872 Did you test the solution mentioned above? Can you send me a sample Project so I can look into it?

image

Here is the demo project when I use recycler view with this Library layouts overlap as @bettersharing mentioned before.
My Application.zip

from recordview.

3llomi avatar 3llomi commented on June 21, 2024

@hami9872 I need fully working demo that demonstrates the issue please. I can't find the issue in the app you sent.

from recordview.

shahimclt avatar shahimclt commented on June 21, 2024

I had this exact same issue. But I managed to fix it by adding this to the AppBarLayout:

    app:liftOnScroll="false"
    android:elevation="6dp"

from recordview.

Related Issues (20)

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.