TextView state_pressed/state_focused/state_selected style change

旧时模样 提交于 2019-12-04 05:09:58

In android as per my knowledge there is only two state-list 1. Color State List Resource 2. StateListDrawable. If you are using style in it then please recheck the doc

Please check below link for more info

  1. http://developer.android.com/guide/topics/resources/color-list-resource.html
  2. http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList

The problem is the line style="@drawable/text_ops" this should be style="@style/text_ops".

I haven't tried using a selector for styles but it would be cool if it works that way.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!