<?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">
    <!--
    drawable文件夹 为可绘制图形的资源，可以是直接的图片，九宫格等等，也可以是XML文件（对资源进行进一步的配置）
    该XML文件为状态列表文件，是对一个对象的不同状态下显示的可绘制图形的定义，与color资源一样，selector为根元素，
    子元素为item，不同状态下，显示的不同可绘制图形
    -->
    <item android:state_pressed="true"
        android:drawable="@drawable/new_note_pressed" />
    <!--
    1、android:state_pressed定义了按下状态，属性值为true，则应当在按下状态下，显示当前定义的可绘制图形
    2、android:drawable属性 定义了应显示的可绘制图形，是对可绘制图形的引用    new_note_pressed图形是在drawable-hdpi文件夹下，
    该文件夹也是可绘制图形，但为高密度的图形，对其应用也是 @drawable/名字
    -->
    <item
        android:drawable="@drawable/new_note_normal" />
    <!--
    定义了默认的可绘制图形
    -->
</selector>
