如何从Android的工作室仿真电子邮件图标 [英] How to remove email icon from Android Studio emulation

查看:219
本文介绍了如何从Android的工作室仿真电子邮件图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在手机的底部摆脱电子邮件图标?这是所有的人,它不应该存在

How do I get rid of the email icon on the bottom of the phone? It is on all of them and it shouldn't be there.

推荐答案

转到activity_main.xml中并删除此部分:

Go to activity_main.xml and delete this portion:

<android.support.design.widget.FloatingActionButton android:id="@+id/fab"
        android:layout_width="wrap_content" android:layout_height="wrap_content"
        android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin"
        android:src="@android:drawable/ic_dialog_email" />

然后去MainActivity.java并删除这部分

And then go to MainActivity.java and delete this portion

FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
        fab.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                        .setAction("Action", null).show();
            }
        });

就是这样。您现在应该看到该图标就消失了。

That's it. You should now see that the icon disappeared.

这篇关于如何从Android的工作室仿真电子邮件图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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