arimorty / floatingsearchview

A search view that implements a floating search bar also known as persistent search
https://github.com/arimorty/floatingsearchview/blob/master/README.md
Apache License 2.0
3.54k stars 668 forks source link

How to show home button over open navigation drawer? #319

Closed Jantzilla closed 5 years ago

Jantzilla commented 5 years ago

Is there a solution to show the home arrow over the open drawer header?

When the navigation drawer is attached, there seems to be no way to close the drawer via a visible home arrow, such as when using navigation drawer with Toolbar in the following way.

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Toolbar toolbar = findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
        ActionBar actionbar = getSupportActionBar();
        actionbar.setDisplayHomeAsUpEnabled(true);
        actionbar.setHomeAsUpIndicator(R.drawable.ic_menu);

        ...
    }
}