<?xml version="1.0" encoding="utf-8"?>

<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
  <!--
  该XML文件是应用的颜色资源文件，能为VIEW组件中的处于不同状态的组件提供显示的颜色（如点击、不点击等等状态下，VIEW组件显示的颜色）
  以selector为根元素，必须有命名空间，子元素为item 用于定义不同状态下，应该显示的颜色，状态属性定义状态，颜色属性定义颜色
  -->
  <item android:state_pressed="true" android:color="#88555555" />
  <!--
  1、android:state_pressed属性 定义了该状态为按下状态,属性值为true则指定了应在按下状态会显示该颜色，为false则指定了在未按下状态显示该颜色
  2、android:color属性 定义了该状态下应该显示的颜色,属性值指定了什么颜色，以#开头的16进制颜色
  -->
  <item android:state_selected="true" android:color="#ff999999" />
  <!--
  定义该状态为选中状态，属性值为true，则应在选中的状态下，显示该颜色
  -->
  <item android:color="#ff000000" />
  <!--
  默认颜色，默认颜色item元素必须在最后一个
  -->
</selector>