如何在android studio中制作选择器 [英] how to make selector in android studio

查看:118
本文介绍了如何在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中做到这一点?

Got code from here: Android: How to Make A Drawable Selector. Does anyone know how to do this in android studio?

推荐答案

尽管评论中已经回答了该问题,

Though it is already answered in the comment,

这篇关于如何在android studio中制作选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆