简体   繁体   中英

How to set custom default ringtone on the selected list item in list View?

I use RecyclerView every list have its own sound.
I want when the user click on a list item that the specific sound is set as default ringtone.

Create a data structure with the sample sounds. Order them in the same order as your Recycler View elements. Add a onClickListener. Take the position received from the listener and send that sample to the media player.

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