I have a single activity with navigation drawer which behaves normally, slides in from left to right and back. Apart from this there is a fragment(SearchFragment) out of 5 other fragments which has listview, on this particular fragment there is a filter button. On the click of this button, I want a drawer like layout to slide in from right to left. But this click functionality, and filter options drawer has to be inside this fragment only.
I am not asking for code, but how do I approach it?
What I tried,
- Wrapped all my content in a linearlayout
- Created a drawer like layout
- Wrapped both of them inside a framelayout
- On click of the filter button in SearchFragment, did some animation to slide in the layout
Is this what is to be done? Or there is a better approach to it?
Aucun commentaire:
Enregistrer un commentaire