Friday, April 29, 2011

spannable in android

.Java File

TextView forgot = (TextView) findViewById(R.id.text1);
        SpannableString content = new SpannableString("Forgot Password");
        content.setSpan(new UnderlineSpan(), 0, content.length(), 0);
        forgot.setText(content);
        forgot.setTextColor(Color.BLACK);

No comments:

Post a Comment