xml - Android: Changing layout in same activity -
in application's main layout have button of search task. when user clicks button want change layout xml file search_layout.xml. don't want create new activity search task , want use activity_main.java class coding. how inflate search_layout existing activity_main.xml .
my activity_main layout coordinating layout collapsing toolbar , recycler view.
in search_layout.xml have simple relative layout.
so how deal ? i searched everywhere how inflate view adding existing view. in case want totally change view.
thanks
you can have @ this question, but, not practice follow , should consider using fragment
or other mechanism. doing cluttering activity
's logic search logic.
Comments
Post a Comment