开发者

Android: Turning off text darkening while scrolling

Is there a way to explicitly turn off the darkening of text during scrolling?

In this case I have set up the text view as follows:

public class DebugActivity extends Activi开发者_StackOverflow社区ty {

    @Override
    public void onCreate(Bundle SavedInstanceState){
        super.onCreate(SavedInstanceState);
        setContentView(R.layout.my_layout);

        TextView error_textview = (TextView) findViewById(R.id.my_id);
        error_textview.setMovementMethod(new ScrollingMovementMethod());
        error_textview.setText(getIntent().getExtras().getString("content"));

    }

}


This simply works for me

Simply add android:textColor="#ffffff" inside your TextView tag in your xml file.

This may be a quick fix for you. But this works fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜