Comments (9)
By the way @yydcdut - great you eventually found some time again to enhance your great lib! thousands of end users will be thankful :)
from rxmarkdown.
Maybe kind of a callback in TextView that passes line and charachter or the complete text as string (with x
instead of the space character)?
from rxmarkdown.
Hi,
you mean, you want to click the checkbox?
from rxmarkdown.
yeah, right :)
from rxmarkdown.
@yydcdut Great you implemented a callback :)
Just one question: While the checkbox can be checked and unchecked in the user interface now easily, the callback returns always the initial value.
.setOnTodoClickCallback(new OnTodoClickCallback() {//todo or done click callback
@Override
public CharSequence onTodoClicked(View view, String line) {
Log.v("Note", noteContent.getText()); // <-- This always returns - [x] Test
return noteContent.getText();
}
Also the String line
always returns the initial value.
It would be great, if one could have the complete Text (including the changed checkbox-status) within the callback. Would that be possible?
from rxmarkdown.
Hi stefan,
First of all, the complete Text
means all the content text?
Mentioned in README, TextFactory
will destroy the integrity of the content text, so the text in TextView is not the same as the original content text user set. So here, what i thought when coding, the parameter line
just wanna tell you to change the original content text, not the text in TextView.
Possibly, I can hold the original text content, and return the complete text (including the changed checkbox-status) .
SO, I just want to think more about it.
from rxmarkdown.
Ah, i understand the problem.
Just one more thought: Wasn't it better to give the lineNumber instead of the line text? Maybe there are multiple lines with the same content, so it would ne safer to go by line number?
Let me hear what you think about the topic and what will be your solution :-)
from rxmarkdown.
Hi, can you create another issue for this?
from rxmarkdown.
from rxmarkdown.
Related Issues (20)
- Gives error in List HOT 1
- ArrayIndexOutOfBoundsException HOT 1
- Backslash HOT 1
- CodeBlock misplaces cursor HOT 2
- List should be interconvertible HOT 1
- Markdown gets not rendered in RxMDTextView when setting another text HOT 3
- Alternate Headers no longer displayed HOT 2
- unordered lists/bullet lists have duplicate indicators for new items
- how to user in rxandroid2 and rxjava2 HOT 2
- Drawing a line with --- does not work immediately HOT 3
- IndexOutOfBounce Exception when select and cut
- setOnLinkClickCallback does not appear to be working HOT 1
- Apostrophes in links don't get parsed correctly
- Add support for Latex math
- Link detection faulty
- Checkboxes are bigger in TextView when line contains '☑'-character
- add try catch when parsing image tag
- how can i add my own rules?
- How to change code font colour for TextFactory?
- how can i support maths formula in your editor ?
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 rxmarkdown.