0

我怎样才能在 android 中停止选取框,因为我想只显示文本而不是滚动文本。我想在这里我应该更改或删除一些东西,所以我喜欢禁用品牌

@Override
protected void onCreate(Bundle savedInstanceState) {
    Animation animationToLeft = new TranslateAnimation((getResources()
            .getDisplayMetrics().widthPixels / 2) + 200, -(getResources()
            .getDisplayMetrics().widthPixels / 2) - 200, 0, 0);
    animationToLeft.setDuration(12000);
    animationToLeft.setRepeatMode(Animation.RESTART);
    animationToLeft.setRepeatCount(Animation.INFINITE);
    try {
        String themeName = getResources().getString(R.string.theme);
        if (themeName.equals(theme1)) {
            theme = R.style.Theme_Sherlock;
            playBarTheme = R.color.abs__background_holo_dark;
        } else if (themeName.equals(theme3)) {
            theme = R.style.Theme_Sherlock_Light_DarkActionBar;
            playBarTheme = R.color.abs__background_holo_light;
        } else {
            theme = R.style.Theme_Sherlock_Light;
            playBarTheme = R.color.abs__background_holo_light;
        }
    } catch (Exception e) {
        e.printStackTrace();
        theme = R.style.Theme_Sherlock_Light;
    }
setTheme(theme);
super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_tv);
    mViewPager = (ViewPager) findViewById(R.id.pager);
    marqueText = (TextView) findViewById(R.id.marqueText);
    marqueText.setAnimation(animationToLeft);
    ((RelativeLayout) findViewById(R.id.click)).setVisibility(View.GONE);
    ((RelativeLayout) findViewById(R.id.click))
            .setOnClickListener(new OnClickListener() {

                @Override
                public void onClick(View arg0) {
                    startActivity(new Intent(TVActivity.this, DescAct.class));
                    getSupportActionBar().show();
                    marqueText.setVisibility(View.GONE);
                    ((RelativeLayout) findViewById(R.id.click))
                            .setVisibility(View.GONE);
                }
            });
    context = this;

    new AsyncTask<Void, Void, Void>() {
4

0 回答 0