xref: /aosp_15_r20/development/samples/browseable/DrawableTinting/res/values/base-strings.xml (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker<?xml version="1.0" encoding="UTF-8"?>
2*90c8c64dSAndroid Build Coastguard Worker<!--
3*90c8c64dSAndroid Build Coastguard Worker Copyright 2013 The Android Open Source Project
4*90c8c64dSAndroid Build Coastguard Worker
5*90c8c64dSAndroid Build Coastguard Worker Licensed under the Apache License, Version 2.0 (the "License");
6*90c8c64dSAndroid Build Coastguard Worker you may not use this file except in compliance with the License.
7*90c8c64dSAndroid Build Coastguard Worker You 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 Worker Unless required by applicable law or agreed to in writing, software
12*90c8c64dSAndroid Build Coastguard Worker distributed under the License is distributed on an "AS IS" BASIS,
13*90c8c64dSAndroid Build Coastguard Worker WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*90c8c64dSAndroid Build Coastguard Worker See the License for the specific language governing permissions and
15*90c8c64dSAndroid Build Coastguard Worker limitations under the License.
16*90c8c64dSAndroid Build Coastguard Worker-->
17*90c8c64dSAndroid Build Coastguard Worker
18*90c8c64dSAndroid Build Coastguard Worker<resources>
19*90c8c64dSAndroid Build Coastguard Worker    <string name="app_name">DrawableTinting</string>
20*90c8c64dSAndroid Build Coastguard Worker    <string name="intro_message">
21*90c8c64dSAndroid Build Coastguard Worker        <![CDATA[
22*90c8c64dSAndroid Build Coastguard Worker
23*90c8c64dSAndroid Build Coastguard Worker
24*90c8c64dSAndroid Build Coastguard Worker            Sample that shows applying tinting and color filters to Drawables both programmatically
25*90c8c64dSAndroid Build Coastguard Worker            and as Drawable resources in XML.
26*90c8c64dSAndroid Build Coastguard Worker            \n\nTinting is set on a nine-patch drawable through the "tint" and "tintMode" parameters.
27*90c8c64dSAndroid Build Coastguard Worker            A color state list is referenced as the tint color, which defines colors for different
28*90c8c64dSAndroid Build Coastguard Worker            states of a View (for example disabled/enabled, focused, pressed or selected).
29*90c8c64dSAndroid Build Coastguard Worker            \n\nProgrammatically, tinting is applied to a Drawable through its "setColorFilter" method,
30*90c8c64dSAndroid Build Coastguard Worker            with a reference to a color and a PorterDuff blend mode. The color and blend mode can be
31*90c8c64dSAndroid Build Coastguard Worker            changed from the UI to see the effect of different options.
32*90c8c64dSAndroid Build Coastguard Worker
33*90c8c64dSAndroid Build Coastguard Worker
34*90c8c64dSAndroid Build Coastguard Worker        ]]>
35*90c8c64dSAndroid Build Coastguard Worker    </string>
36*90c8c64dSAndroid Build Coastguard Worker</resources>
37