Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove email icon from Android Studio emulation

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.enter image description here

like image 369
user3577756 Avatar asked Oct 19 '15 01:10

user3577756


People also ask

How do I remove icons from my Android toolbar?

Remove Icons from a Toolbar From the toolbar, drag the icon to any area outside of the toolbar, release your mouse. The icon is removed from the toolbar.

How do I change notification icons on Android?

1 Tap Notification Settings on the notification panel or tap the Settings app. 2 Tap Notifications. 3 Tap App icon badges.


1 Answers

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" /> 

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.

like image 104
Irfan Avatar answered Sep 23 '22 17:09

Irfan