Android色彩背景转换就像css

时间:2014-09-26 11:18:46

标签: android css android-activity background-color

我需要让我的活动的背景颜色略有不同(以编程方式)我在css中有这个例子:

<html>
<head>
<style type="text/css">
   div{
       width: 150px;
       height: 150px;
       background-color: #343;
       transition: ease all 0.5s;
   }
   div:hover{
       background-color: #ccc;
   }    
</style>
</head>
<body>
    <div> </div>
</body>
</html>

http://jsfiddle.net/x199ax41/(请将鼠标悬停在div上),有人知道当用户点击按钮时我怎么能做同样的效果?

这是一个坏主意(思考可用性)?

感谢。

0 个答案:

没有答案
相关问题