Comments (4)
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 TextView
s, 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.
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.
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.
Due to the issues with implementing all of that with RecyclerView
containing CardView
s, I've switched [again] to a LinearLayout
holding TextView
s. 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)
- Dynamic addition of tone entries to TableLayout HOT 2
- Remove hardcoded strings
- Determine proper way to lay out RecyclerView
- Wipe LinearLayout in preparation for new items in updateDisplay()
- Figure out how to stop more than 1 tone's playback HOT 1
- Learn to add more resource files
- Implement a method for deleting preset entries HOT 2
- Create README
- Add JavaDoc
- Constrain/anchor display elements HOT 1
- Frequency text entry doesn't reset when clicking into HOT 1
- Add ability to save & retrieve the preset frequencies listing HOT 2
- Create globals HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dton.