8000 GitHub - atomdu/beautiful-string
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

atomdu/beautiful-string

Repository files navigation

Beautiful String

This is the build class for SpannableString

src

example

 SpannableString ss = BeautifulString.get(textView)
                .style(android.graphics.Typeface.BOLD, 2, BeautifulString.MAX_LENGTH, true)
                .append(" Hello")
                .color(R.color.colorAccent)
                .append(" Beautiful")
                .color(R.color.colorPrimary)
                .append(" String")
                .onClick(new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        Toast.makeText(MainActivity.this,"click",Toast.LENGTH_SHORT).show();
                    }
                })
                .color(R.color.colorPrimary)
                .build();

        textView.setText(ss);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0