简体   繁体   中英

How to go at a position in new activity in android

Hi friends and Developer,

How can I go at certain position in new activity?

  1. for example when I pressed a button which will open Settings activity.
  2. after my action Settings activity opened.
  3. Now I want that Activity automatically scroll to the sounds position in settings where sounds related features are present.

how can I do this??

Setting provider. Android Developers

Check that out, you can modify your intent to contain the specified setting with this. ACTION_SOUND_SETTINGS might be the one.

如果您的“设置活动”具有项目的ListView,则可以使用:

listView.smoothScrollToPosition(indexOf(sound_item));

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