您的位置: 首页 > 技术问答 > 如何更改微调器所选项目的颜色 如何更改微调器所选项目的颜色 分类: 技术问答 • 2022-03-27 21:39:24 问题描述: 如何更改微调器的文本颜色,即下拉按钮左侧的文本? (“丹麦”在picure)如何更改微调器所选项目的颜色 +0 我不知道为什么所有的向下票 - 这似乎是一个合理的问题给我。我不知道答案,但我知道要问什么。这可能有所帮助:https://*.com/questions/13703233/style-android-spinner – 答 你一定要试试这样 public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { TextView selectedText = (TextView) parent.getChildAt(0); if (selectedText != null) { selectedText.setTextColor(Color.RED); } } +0 工作得很好:) – Andreisk +0 它的罚款吗? – Raja
我不知道为什么所有的向下票 - 这似乎是一个合理的问题给我。我不知道答案,但我知道要问什么。这可能有所帮助:https://*.com/questions/13703233/style-android-spinner –