如何在 Android Studio 中制作选择器 [英] How to make a selector in Android Studio
本文介绍了如何在 Android Studio 中制作选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在学习课程时,我被指示为按钮制作一个 xml 选择器.课程说要在 Eclipse 中创建一个新的 Android xml,但我使用的是 Android Studio.
While taking a course, I was instructed to make an xml selector for a Button. The course said to make a new Android xml in Eclipse, but i am using Android Studio.
此外,当我自定义编写代码时,它会给我一个错误.它说必须声明元素选择器".
Also when I custom write the code it gives me an error. It says "element selector must be declared".
从这里获取代码:Android:如何制作可绘制选择器一>.
有人知道如何在 Android Studio 中执行此操作吗?
Does anyone know how to do this in Android Studio?
推荐答案
虽然评论里已经回答了,
Though it is already answered in the comment,
这篇关于如何在 Android Studio 中制作选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文