相关疑难解决方法(0)

悬停时按钮颜色更改

我只是Android的初学者.我希望按钮在鼠标悬停时更改其颜色.
我不知道如何在android中做到这一点.可以吗?

查看按钮:

<Button 
  android:id="@+id/b8"
  android:text="click me"
  style="?android:attr/buttonStyleSmall"
  android:textSize="20dp" />
Run Code Online (Sandbox Code Playgroud)

android colors button

8
推荐指数
1
解决办法
4万
查看次数

标签 统计

android ×1

button ×1

colors ×1