开发者

Android: Turning off text darkening while scrolling

开发者 https://www.devze.com 2023-04-11 08:21 出处:网络
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:

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

精彩评论

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