xref: /aosp_15_r20/development/samples/browseable/DrawableTinting/res/drawable/buttonbackground.xml (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*90c8c64dSAndroid Build Coastguard Worker<!--
3*90c8c64dSAndroid Build Coastguard WorkerCopyright 2014 The Android Open Source Project
4*90c8c64dSAndroid Build Coastguard Worker
5*90c8c64dSAndroid Build Coastguard WorkerLicensed under the Apache License, Version 2.0 (the "License");
6*90c8c64dSAndroid Build Coastguard Workeryou may not use this file except in compliance with the License.
7*90c8c64dSAndroid Build Coastguard WorkerYou may obtain a copy of the License at
8*90c8c64dSAndroid Build Coastguard Worker
9*90c8c64dSAndroid Build Coastguard Worker http://www.apache.org/licenses/LICENSE-2.0
10*90c8c64dSAndroid Build Coastguard Worker
11*90c8c64dSAndroid Build Coastguard WorkerUnless required by applicable law or agreed to in writing, software
12*90c8c64dSAndroid Build Coastguard Workerdistributed under the License is distributed on an "AS IS" BASIS,
13*90c8c64dSAndroid Build Coastguard WorkerWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*90c8c64dSAndroid Build Coastguard WorkerSee the License for the specific language governing permissions and
15*90c8c64dSAndroid Build Coastguard Workerlimitations under the License.
16*90c8c64dSAndroid Build Coastguard Worker-->
17*90c8c64dSAndroid Build Coastguard Worker
18*90c8c64dSAndroid Build Coastguard Worker<!-- This nine patch definition refers to a drawable bitmap (btn_default_holo.png) to which
19*90c8c64dSAndroid Build Coastguard Workera tint is applied. The tint is a color state list that changes color based on the state of the
20*90c8c64dSAndroid Build Coastguard Workerview it is applied to. Refer to its definition in "color/custom_tint.xml". -->
21*90c8c64dSAndroid Build Coastguard Worker<nine-patch xmlns:android="http://schemas.android.com/apk/res/android"
22*90c8c64dSAndroid Build Coastguard Worker    android:src="@drawable/btn_default_normal_holo"
23*90c8c64dSAndroid Build Coastguard Worker    android:tint="@color/custom_tint"
24*90c8c64dSAndroid Build Coastguard Worker    android:tintMode="multiply" />