更改Android的微调布局/设计布局、Android

2023-09-06 00:13:27 作者:骨子里的高雅

我想修改微调插件的设计。我可以改变的背景下,但我不能找到一种方法来改变右侧的箭头图标。有没有办法做到这一点?

I am trying to modify the design of Spinner widget. I can change the background, but I can't find a way to change the arrow icon on the right side. Is there a way to do it?

谢谢!

推荐答案

整个事情是一个单一的9补丁png图片。我以前通过更换修改过的影像微调的整体外观。看到这个页面:http://androiddrawableexplorer.appspot.com/

The whole thing is a single 9 patch png image. I've modified the entire look of spinners before by replacing the images. See this page: http://androiddrawableexplorer.appspot.com/

具体来看btn_dropdown_normal.9,btn_dropdown_ pressed.9,btn_dropdown_selected.9和btn_dropdown_disabled.9

Specifically look at btn_dropdown_normal.9, btn_dropdown_pressed.9, btn_dropdown_selected.9 and btn_dropdown_disabled.9

您只需要提供自己版本的这些图像。

You just need to provide your own versions of those images.