简体   繁体   中英

starting a new activity within android without animation

I'd like to start a new Activity when clicking an item of a ListView . This Activity will have exactly the same design ( ActionBar + ListView ) except that all the style and objects in the ListView will be different.

I thought the best way would be to separate them in two activities, however while transitioning between the two activities an animation is displayed and it makes the transition looks like its lagging.

First question : Is there a way to start a new Activity that is only a ListView and have it replace my current ListView while not touching my main window and statusbar?

Secondly : If not then is it possible to remove the transition animation between two activities?

在同一活动中,您可以再次在ListView上调用setAdapter并为其提供一个新的适配器(然后可以具有不同的数据/行布局等)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM