如何在android中停止选框

时间:2013-10-12 07:26:02

标签: java android

如何在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>() {

0 个答案:

没有答案