You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?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.
-->
<!-- 定义一个 Drawable 状态选择器State List Drawable用于根据视图的状态动态切换背景或图片 -->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 当视图被按下时state_pressed=true使用此 Drawable 资源 -->
<!-- android:drawable="@drawable/new_note_pressed" 表示按下状态时显示的图片资源 -->
<item android:state_pressed="true"
android:drawable="@drawable/new_note_pressed" />
<!-- 默认 Drawable 资源,当没有其他状态匹配时使用 -->
<!-- android:drawable="@drawable/new_note_normal" 表示正常状态时显示的图片资源 -->
<item
android:drawable="@drawable/new_note_normal" />
</selector>