android - running new Activity from Activity selected with TabHost so that only contents of Frame change -
android - running new Activity from Activity selected with TabHost so that only contents of Frame change -
im still newbie in android, appreciate help couldnt find info on this.
i have tabhost 2 activities assigned. tabs "shops" , "people" both activities contain listviews. now.. if click on 1 of elements of listview "shoes/people" tab remain still while contents of frame alter (where listview is) @ given time can switch other tab , start process begining.
currently after user clicks on listview item
intent merchant = new intent(v.getcontext(), merchantview.class); startactivity(merchant);
a new activity started (tabs dissapear) , view completly replaced.
questions :
copmpletly total new view created when click on listview item. how can run merchantview activity within frame?
this merchantview have clickable element 1 time again behave in similar way (tab remains still).is approach here good?(to alter activites per click). mean maybe instead of running new activities every screen should alter view in way
thanks!
instead of starting new activity each time item clicked, , want utilize same view..why not when button clicked inflate new info view, instead of launching whole new activity. seems best solution.
android android-listview android-tabhost
Comments
Post a Comment