hboregio / babushkatext Goto Github PK
View Code? Open in Web Editor NEWA simpler way to style your TextViews
License: Apache License 2.0
A simpler way to style your TextViews
License: Apache License 2.0
Hi
Thank for your effort.
I have a question about this class.
When i use this in the list view..
AirPortName.addPiece(new BabushkaText.Piece.Builder(listData.get(position).getAirPortName())
.backgroundColor(Color.parseColor("#DFF1FE"))
.textColor(Color.parseColor("#073680"))
.style(Typeface.BOLD)
.build());
AirPortName.display();
this is my code.
But problem is ..duplicated the text when i scroll up and down.
so..I try this code
AirPortName = (BabushkaText)row.findViewById(R.id.title);
AirPortName.reset();
AirPortName.addPiece(new BabushkaText.Piece.Builder(listData.get(position).getAirPortName())
.backgroundColor(Color.parseColor("#DFF1FE"))
.textColor(Color.parseColor("#073680"))
.style(Typeface.BOLD)
.build());
AirPortName.display();
Use this...
AirPortName.reset();
is it right?
Thanks a lot.
For example:
bt.addPiece(new BabushkaText.Piece.Builder("please\n")
.style(Typeface.BOLD)
.textSize(35)
.build());
bt.addPiece(new BabushkaText.Piece.Builder("change textcolor")
.textSize(20)
.build());
bt.display();
I get textview with black text colour (default color)
Then I call
bt.setTextColor(getResources().getColor(R.color.white));
And textColor remains black.
I understand what there is no built-in ability to change spannable text colour on the fly, but it's would be very helpful function.
能给其中某几个字符添加点击事件吗。
Babushka means grandmother in Russian :)
Hi, I was looking for your amazing Babushka Text, I implemented it on my java class file, all ok, but I need to link it was Resource (you said :
BabushkaText babushka = (BabushkaText)findViewById(R.id.babushka_text);), and when I do it (for me : BabushkaText text = (BabushkaText)findViewById(R.id.text_preview);) where text_preview is a TextView, there's an error (normal :D) !
So, how could I implement the Babushka on XML file ?
Thank you, and, have a good day !
PS : My text_preview on XML is 👍
Hi,
First of all, thanks for your library, it looks really nice.
But it will be much better to give an ability to add custom spans.
Thanks.
Update to API 28.
This link
thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.