How can I get the Spinner's dropdown arrow image resource?
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
add a comment |
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
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
add a comment |
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
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
android spinner android-resources
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Dec 31 '18 at 9:02
navylovernavylover
3,43521119
3,43521119
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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