如何从 Android Studio 模拟中删除电子邮件图标 [英] How to remove email icon from Android Studio emulation
本文介绍了如何从 Android Studio 模拟中删除电子邮件图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何去掉手机底部的电子邮件图标?它在所有人身上,不应该在那里.
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 Studio 模拟中删除电子邮件图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文