android显示后屏幕flickr [英] android show back screen flickr

查看:109
本文介绍了android显示后屏幕flickr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我单击窗体中的编辑文本时,我在android中显示窗体活动,它闪烁并显示前一屏几秒钟,我不知道这是怎么发生的.

我已使用以下代码进行其他活动:

I have activity in android showing forms when i click edit text in form it flickrs and shows previous screen for few seconds i could not figure out how this happens.

I have used below code for going to other activity:

buttonone.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        Intent intent = new Intent(inflater.getContext(),
                MycashBalance.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        v.getContext().startActivity(intent);

    }
});

推荐答案

在您的 onClick 内尝试这些操作,看看会发生什么:
Try these inside your onClick and see what happens:
Intent intent= new Intent(yourCurrentActivityName.this,MycashBalance.class);                               
startActivity(intent);


这篇关于android显示后屏幕flickr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆