Giter Club home page Giter Club logo

babushkatext's People

Contributors

revedko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

babushkatext's Issues

Support for custom spans

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.

set text color has no effect

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.

i have a problem..

i want to use babushktext, so i copy .java code.
but i have a problem with my code...
I'd really appreciate it if you help me
------------solve it kkk.... how do i delete this post--------
2017-04-01_13-01-13

List Adapter problem

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.

How to use it in xml eclypse file ?

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 👍

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.