Code Monkey home page Code Monkey logo

Comments (4)

dgets avatar dgets commented on July 16, 2024

Well, despite the fact that it looks like a useful view, I'm definitely going to have to find out a different way to implement the clickable rows for each preset. TableLayout with RecyclerView (see also: TableLayout with RecyclerView was suggested on #android-dev on freenode).

Reason being for this is that the TableLayout is not being populated with multiple subsequent TextViews, but all of the contents are having linefeeds appended and are going into the same TextView, making them indistinguishable from each other.

So let's do the research on RecyclerView and decide upon a course of action for this issue.

from dton.

dgets avatar dgets commented on July 16, 2024

Got quite a way into implementing RecyclerView with this tutorial (note it's a YouTube video one). Having some problems with the RecyclerView not scrolling yet, being constrained or anchored properly yet, and other various layout errata, but all in all it's looking a lot better than it was before. Shouldn't take much from here to get things working properly, I don't think.

from dton.

dgets avatar dgets commented on July 16, 2024

This example should provide the information necessary information to be able to determine what CardView has been clicked from within the RecyclerView. Note that handling this from the xml's onClick attribute for the layout element is not the way to do things when they're getting this complex, certainly not if they're any moreso than this...

from dton.

dgets avatar dgets commented on July 16, 2024

Due to the issues with implementing all of that with RecyclerView containing CardViews, I've switched [again] to a LinearLayout holding TextViews. It didn't take long after implementing this to be able to programmatically add whatever I need to there, and even to register the onClick() handlers with support for recognizing which particular TextView had taken the click. We're going to be sticking with this route for now.

from dton.

Related Issues (14)

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.