Как вызвать массив R.raw.sound из strings.xml?

<html>
    <head>
        <title>HTML Document</title>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
    </head>

    <body>
        <div id="hover-id">
            Hello World
        </div>

        <script>
            jQuery(document).ready(function($){
                $(document).on('mouseover', '#hover-id', function(){
                    $(this).css('color','yellowgreen');
                });

                $(document).on('mouseout', '#hover-id', function(){
                    $(this).css('color','black');
                });
            });
        </script>
    </body>
</html>
0
задан Sabbir Ahmed 28 March 2019 в 06:06
поделиться

1 ответ

звучит необработанная папка в массиве файлов strings.xml

strings.xml

<string-array name="select_sounds">
     <item>@raw/sound1</item>
     <item>@raw/sound2</item>
     <item>@raw/sound3</item>
     <item>@raw/sound4</item>
     <item>@raw/sound5</item>
 </string-array>
0
ответ дан Kishan Viramgama 28 March 2019 в 06:06
поделиться
Другие вопросы по тегам:

Похожие вопросы: