How can I get the Spinner's dropdown arrow image resource?












0















I want to use that arrow image in a custom control I'm making, is there a way to get that asset?



I'm aware that I can download a similar one from the icons in the material design:



https://material.io/tools/icons/?icon=arrow_drop_down&style=baseline



But those are black, and the spinner's is grey. Also, if the spinner contains it, then the asset is already included in the app, so it feels dumb to have 2 near-identical assets.



Does it have an ID?










share|improve this question























  • I'm not completely sure about your requirements. Did you check this StackOverflow question? And about the icon color you can download icon in SVG format, open it in text editor and change the color as per your requirement (like grey).

    – Shashanth
    Dec 31 '18 at 8:50











  • Thanks for your response! Perhaps I didn't phrase my question properly: I want to get that arrow's resource id/png and use it in another ImageView. It's not a case in which I have a spinner and I want to change it's drop down arrow image.

    – MichaelThePotato
    Dec 31 '18 at 8:54











  • you can change the color from "import vector drawable". it has a decent color picking tool

    – C Forge
    Dec 31 '18 at 9:10
















0















I want to use that arrow image in a custom control I'm making, is there a way to get that asset?



I'm aware that I can download a similar one from the icons in the material design:



https://material.io/tools/icons/?icon=arrow_drop_down&style=baseline



But those are black, and the spinner's is grey. Also, if the spinner contains it, then the asset is already included in the app, so it feels dumb to have 2 near-identical assets.



Does it have an ID?










share|improve this question























  • I'm not completely sure about your requirements. Did you check this StackOverflow question? And about the icon color you can download icon in SVG format, open it in text editor and change the color as per your requirement (like grey).

    – Shashanth
    Dec 31 '18 at 8:50











  • Thanks for your response! Perhaps I didn't phrase my question properly: I want to get that arrow's resource id/png and use it in another ImageView. It's not a case in which I have a spinner and I want to change it's drop down arrow image.

    – MichaelThePotato
    Dec 31 '18 at 8:54











  • you can change the color from "import vector drawable". it has a decent color picking tool

    – C Forge
    Dec 31 '18 at 9:10














0












0








0








I want to use that arrow image in a custom control I'm making, is there a way to get that asset?



I'm aware that I can download a similar one from the icons in the material design:



https://material.io/tools/icons/?icon=arrow_drop_down&style=baseline



But those are black, and the spinner's is grey. Also, if the spinner contains it, then the asset is already included in the app, so it feels dumb to have 2 near-identical assets.



Does it have an ID?










share|improve this question














I want to use that arrow image in a custom control I'm making, is there a way to get that asset?



I'm aware that I can download a similar one from the icons in the material design:



https://material.io/tools/icons/?icon=arrow_drop_down&style=baseline



But those are black, and the spinner's is grey. Also, if the spinner contains it, then the asset is already included in the app, so it feels dumb to have 2 near-identical assets.



Does it have an ID?







android spinner android-resources






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 31 '18 at 8:36









MichaelThePotatoMichaelThePotato

710214




710214













  • I'm not completely sure about your requirements. Did you check this StackOverflow question? And about the icon color you can download icon in SVG format, open it in text editor and change the color as per your requirement (like grey).

    – Shashanth
    Dec 31 '18 at 8:50











  • Thanks for your response! Perhaps I didn't phrase my question properly: I want to get that arrow's resource id/png and use it in another ImageView. It's not a case in which I have a spinner and I want to change it's drop down arrow image.

    – MichaelThePotato
    Dec 31 '18 at 8:54











  • you can change the color from "import vector drawable". it has a decent color picking tool

    – C Forge
    Dec 31 '18 at 9:10



















  • I'm not completely sure about your requirements. Did you check this StackOverflow question? And about the icon color you can download icon in SVG format, open it in text editor and change the color as per your requirement (like grey).

    – Shashanth
    Dec 31 '18 at 8:50











  • Thanks for your response! Perhaps I didn't phrase my question properly: I want to get that arrow's resource id/png and use it in another ImageView. It's not a case in which I have a spinner and I want to change it's drop down arrow image.

    – MichaelThePotato
    Dec 31 '18 at 8:54











  • you can change the color from "import vector drawable". it has a decent color picking tool

    – C Forge
    Dec 31 '18 at 9:10

















I'm not completely sure about your requirements. Did you check this StackOverflow question? And about the icon color you can download icon in SVG format, open it in text editor and change the color as per your requirement (like grey).

– Shashanth
Dec 31 '18 at 8:50





I'm not completely sure about your requirements. Did you check this StackOverflow question? And about the icon color you can download icon in SVG format, open it in text editor and change the color as per your requirement (like grey).

– Shashanth
Dec 31 '18 at 8:50













Thanks for your response! Perhaps I didn't phrase my question properly: I want to get that arrow's resource id/png and use it in another ImageView. It's not a case in which I have a spinner and I want to change it's drop down arrow image.

– MichaelThePotato
Dec 31 '18 at 8:54





Thanks for your response! Perhaps I didn't phrase my question properly: I want to get that arrow's resource id/png and use it in another ImageView. It's not a case in which I have a spinner and I want to change it's drop down arrow image.

– MichaelThePotato
Dec 31 '18 at 8:54













you can change the color from "import vector drawable". it has a decent color picking tool

– C Forge
Dec 31 '18 at 9:10





you can change the color from "import vector drawable". it has a decent color picking tool

– C Forge
Dec 31 '18 at 9:10












1 Answer
1






active

oldest

votes


















1














There isn't an image resource for spinner drop-down arrow, its an image resource for an btn_dropdown.



The btn_dropdown xml file location is:



C:UsersAdministratorAppDataLocalAndroidSdkplatformsandroid-28dataresdrawablebtn_dropdown


and the following are its content:



<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_window_focused="false" android:state_enabled="true"
android:drawable="@drawable/btn_dropdown_normal" />
<item
android:state_window_focused="false" android:state_enabled="false"
android:drawable="@drawable/btn_dropdown_disabled" />
<item
android:state_pressed="true"
android:drawable="@drawable/btn_dropdown_pressed" />
<item
android:state_focused="true" android:state_enabled="true"
android:drawable="@drawable/btn_dropdown_selected" />
<item
android:state_enabled="true"
android:drawable="@drawable/btn_dropdown_normal" />
<item
android:state_focused="true"
android:drawable="@drawable/btn_dropdown_disabled_focused" />
<item
android:drawable="@drawable/btn_dropdown_disabled" />
</selector>


You could find a specific drawable file in the above file, for example:



name: btn_dropdown_normal.9.png (this is your want!)



location: C:UsersAdministratorAppDataLocalAndroidSdkplatformsandroid-28dataresdrawable-hdpi






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53985273%2fhow-can-i-get-the-spinners-dropdown-arrow-image-resource%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    There isn't an image resource for spinner drop-down arrow, its an image resource for an btn_dropdown.



    The btn_dropdown xml file location is:



    C:UsersAdministratorAppDataLocalAndroidSdkplatformsandroid-28dataresdrawablebtn_dropdown


    and the following are its content:



    <?xml version="1.0" encoding="utf-8"?>
    <!-- Copyright (C) 2008 The Android Open Source Project

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    -->

    <selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item
    android:state_window_focused="false" android:state_enabled="true"
    android:drawable="@drawable/btn_dropdown_normal" />
    <item
    android:state_window_focused="false" android:state_enabled="false"
    android:drawable="@drawable/btn_dropdown_disabled" />
    <item
    android:state_pressed="true"
    android:drawable="@drawable/btn_dropdown_pressed" />
    <item
    android:state_focused="true" android:state_enabled="true"
    android:drawable="@drawable/btn_dropdown_selected" />
    <item
    android:state_enabled="true"
    android:drawable="@drawable/btn_dropdown_normal" />
    <item
    android:state_focused="true"
    android:drawable="@drawable/btn_dropdown_disabled_focused" />
    <item
    android:drawable="@drawable/btn_dropdown_disabled" />
    </selector>


    You could find a specific drawable file in the above file, for example:



    name: btn_dropdown_normal.9.png (this is your want!)



    location: C:UsersAdministratorAppDataLocalAndroidSdkplatformsandroid-28dataresdrawable-hdpi






    share|improve this answer




























      1














      There isn't an image resource for spinner drop-down arrow, its an image resource for an btn_dropdown.



      The btn_dropdown xml file location is:



      C:UsersAdministratorAppDataLocalAndroidSdkplatformsandroid-28dataresdrawablebtn_dropdown


      and the following are its content:



      <?xml version="1.0" encoding="utf-8"?>
      <!-- Copyright (C) 2008 The Android Open Source Project

      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
      -->

      <selector xmlns:android="http://schemas.android.com/apk/res/android">
      <item
      android:state_window_focused="false" android:state_enabled="true"
      android:drawable="@drawable/btn_dropdown_normal" />
      <item
      android:state_window_focused="false" android:state_enabled="false"
      android:drawable="@drawable/btn_dropdown_disabled" />
      <item
      android:state_pressed="true"
      android:drawable="@drawable/btn_dropdown_pressed" />
      <item
      android:state_focused="true" android:state_enabled="true"
      android:drawable="@drawable/btn_dropdown_selected" />
      <item
      android:state_enabled="true"
      android:drawable="@drawable/btn_dropdown_normal" />
      <item
      android:state_focused="true"
      android:drawable="@drawable/btn_dropdown_disabled_focused" />
      <item
      android:drawable="@drawable/btn_dropdown_disabled" />
      </selector>


      You could find a specific drawable file in the above file, for example:



      name: btn_dropdown_normal.9.png (this is your want!)



      location: C:UsersAdministratorAppDataLocalAndroidSdkplatformsandroid-28dataresdrawable-hdpi






      share|improve this answer


























        1












        1








        1







        There isn't an image resource for spinner drop-down arrow, its an image resource for an btn_dropdown.



        The btn_dropdown xml file location is:



        C:UsersAdministratorAppDataLocalAndroidSdkplatformsandroid-28dataresdrawablebtn_dropdown


        and the following are its content:



        <?xml version="1.0" encoding="utf-8"?>
        <!-- Copyright (C) 2008 The Android Open Source Project

        Licensed under the Apache License, Version 2.0 (the "License");
        you may not use this file except in compliance with the License.
        You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions and
        limitations under the License.
        -->

        <selector xmlns:android="http://schemas.android.com/apk/res/android">
        <item
        android:state_window_focused="false" android:state_enabled="true"
        android:drawable="@drawable/btn_dropdown_normal" />
        <item
        android:state_window_focused="false" android:state_enabled="false"
        android:drawable="@drawable/btn_dropdown_disabled" />
        <item
        android:state_pressed="true"
        android:drawable="@drawable/btn_dropdown_pressed" />
        <item
        android:state_focused="true" android:state_enabled="true"
        android:drawable="@drawable/btn_dropdown_selected" />
        <item
        android:state_enabled="true"
        android:drawable="@drawable/btn_dropdown_normal" />
        <item
        android:state_focused="true"
        android:drawable="@drawable/btn_dropdown_disabled_focused" />
        <item
        android:drawable="@drawable/btn_dropdown_disabled" />
        </selector>


        You could find a specific drawable file in the above file, for example:



        name: btn_dropdown_normal.9.png (this is your want!)



        location: C:UsersAdministratorAppDataLocalAndroidSdkplatformsandroid-28dataresdrawable-hdpi






        share|improve this answer













        There isn't an image resource for spinner drop-down arrow, its an image resource for an btn_dropdown.



        The btn_dropdown xml file location is:



        C:UsersAdministratorAppDataLocalAndroidSdkplatformsandroid-28dataresdrawablebtn_dropdown


        and the following are its content:



        <?xml version="1.0" encoding="utf-8"?>
        <!-- Copyright (C) 2008 The Android Open Source Project

        Licensed under the Apache License, Version 2.0 (the "License");
        you may not use this file except in compliance with the License.
        You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions and
        limitations under the License.
        -->

        <selector xmlns:android="http://schemas.android.com/apk/res/android">
        <item
        android:state_window_focused="false" android:state_enabled="true"
        android:drawable="@drawable/btn_dropdown_normal" />
        <item
        android:state_window_focused="false" android:state_enabled="false"
        android:drawable="@drawable/btn_dropdown_disabled" />
        <item
        android:state_pressed="true"
        android:drawable="@drawable/btn_dropdown_pressed" />
        <item
        android:state_focused="true" android:state_enabled="true"
        android:drawable="@drawable/btn_dropdown_selected" />
        <item
        android:state_enabled="true"
        android:drawable="@drawable/btn_dropdown_normal" />
        <item
        android:state_focused="true"
        android:drawable="@drawable/btn_dropdown_disabled_focused" />
        <item
        android:drawable="@drawable/btn_dropdown_disabled" />
        </selector>


        You could find a specific drawable file in the above file, for example:



        name: btn_dropdown_normal.9.png (this is your want!)



        location: C:UsersAdministratorAppDataLocalAndroidSdkplatformsandroid-28dataresdrawable-hdpi







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 31 '18 at 9:02









        navylovernavylover

        3,43521119




        3,43521119






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53985273%2fhow-can-i-get-the-spinners-dropdown-arrow-image-resource%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Monofisismo

            Angular Downloading a file using contenturl with Basic Authentication

            Olmecas