JEWEL
(Extension Developer 🧩)
May 5, 2023, 3:04am
1
[FREE] ReadMoreTextView Extension
Using the ReadMoreTextView is very easy, it’s just functionality added to it for showing read more and read less. you can set the default number of lines for the TextView collapsed state.You can easily set text content for “Read More” and “Read Less” and can set color to differentiate read more text content.
Create Text View
Using this blocks you can create ReadMoreTextView in a HorizontalArrangement. Also you can design the text view with your need.
view
- AndroidViewComponent
text
- String
text Color
- Integer
text Size
- Integer
maximumLine
- Integer
collapseText
- String
expandText
- String
color Code
- String/Integer
Expanded
This event will be triggered when user clicked on expandText
.
Collapsed
This event will be triggered when user clicked on collapseText
.
Demo ↓
Extension specifications:
com.jewel.readmoretextview.aix (14.4 KB)
Version: 2.0
Released On: 05 May 2023 (GMT+06:00 Bangladesh Standard Time)
More Extensions: GitHub Repositories
11 Likes
Nice extension.
This can be done without extension also, by comparing text length.
1 Like
JEWEL
(Extension Developer 🧩)
May 5, 2023, 3:52am
3
May be, but this free extension help you to do the job very easily & shortly.
It’s also provide you click events.
(Thanks)
2 Likes
Md_Tohaa
(Md Toha)
May 5, 2023, 6:33am
4
Thank you so much! I was looking for this type of extension. I also requested @iamwsumit to make one.
Md_Tohaa
(Md Toha)
May 5, 2023, 6:47am
6
How can i do like this?
How can I add three dots at the end of a text so that they appear only when the text exceeds the available space? I know that I can add them after a certain number of characters, but I want the text to be displayed in full within the available space and the three dots to be added only when necessary.
I know it’s possible to do it this way but I want it to show automatically according to the space. Like Nio-tron which has an option called Ellipsize (End).
Md_Tohaa
(Md Toha)
May 5, 2023, 6:50am
7
I dont want to expand it…just want to show text with 3 dot by its space/maxline
JEWEL
(Extension Developer 🧩)
May 5, 2023, 8:12am
8
this can be done without extension
You can do that by using length and segment text blocks.
Use if then condition, if length of text is greater than a specified number of charecters then segment the text and join with 3 dots.
Md_Tohaa
(Md Toha)
May 5, 2023, 8:22am
10
Please read full topic again
Md_Tohaa
(Md Toha)
May 5, 2023, 8:23am
11
@Still-learning can i do this using this extension?
Md_Tohaa
(Md Toha)
May 5, 2023, 8:27am
12
I want to show text by maxline…not charecters…
You can do that by using this extension by setting maximum lines but instead of 3 dots u will get See More text.
If the extension developer add one more field to set text of see more button, this extension will be more useful.
JEWEL
(Extension Developer 🧩)
May 5, 2023, 8:29am
15
You can set expandText
as ...
for doing this job
Md_Tohaa
(Md Toha)
May 5, 2023, 8:30am
16
Can i set textview non clickable?
JEWEL
(Extension Developer 🧩)
May 5, 2023, 8:33am
17
Ok, I’ll add a new option to turn off/on click mode.
So you can do the job more easily.
(Thanks for the idea)
1 Like
Also if possible add option to set text for button. For eg. Instead of see more button if i want to set read more or 3 dots.
So this will give users more customisations.
JEWEL
(Extension Developer 🧩)
May 5, 2023, 9:05am
19
this features already available, you can set what you want
1 Like
Md_Tohaa
(Md Toha)
May 5, 2023, 1:21pm
20
Also add an option for custom font typeface.Then it will be completed extension @JEWEL