| Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Copyright 2013 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | <sample> |
| 18 | <name>TextSwitcher</name> |
| 19 | <group>UI</group> |
| 20 | <package>com.example.android.textswitcher</package> |
| 21 | |
| 22 | <!-- change minSdk if needed--> |
| 23 | <minSdk>4</minSdk> |
| 24 | |
| 25 | <strings> |
| 26 | <intro> |
| 27 | <![CDATA[ |
| 28 | This sample illustrates the use of a TextSwitcher to display text. |
| 29 | \n\nClick the button below to set new text in the TextSwitcher and observe the |
| 30 | in and out fade animations. |
| 31 | ]]> |
| 32 | </intro> |
| 33 | </strings> |
| 34 | |
| 35 | <template src="base"/> |
| 36 | <common src="logger"/> |
| 37 | |
| Joanna Smith | 90afa45 | 2014-12-15 20:44:40 -0800 | [diff] [blame^] | 38 | <metadata> |
| 39 | <status>PUBLISHED</status> |
| 40 | <categories>UI</categories> |
| 41 | <technologies>Android</technologies> |
| 42 | <languages>Java</languages> |
| 43 | <solutions>Mobile</solutions> |
| 44 | <level>INTERMEDIATE</level> |
| 45 | <icon>screenshots/icon-web.png</icon> |
| 46 | <screenshots> |
| 47 | <img>screenshots/main.png</img> |
| 48 | </screenshots> |
| 49 | <api_refs> |
| 50 | <android>android.widget.TextSwitcher</android> |
| 51 | </api_refs> |
| 52 | |
| 53 | <description> |
| 54 | <![CDATA[ |
| 55 | This sample illustrates the use of a TextSwitcher to display animations for text changes. |
| 56 | ]]> |
| 57 | </description> |
| 58 | |
| 59 | <intro> |
| 60 | <![CDATA[ |
| 61 | This sample shows the use of the [android.widget.TextSwitcher][1] View with animations. A |
| 62 | TextSwitcher is a special type of [android.widget.ViewSwitcher][2] that animates |
| 63 | the current text out and new text in when |
| 64 | [android.widget.TextSwitcher#setText(CharSequence)][3] is called. |
| 65 | |
| 66 | Click the "Next" button to set new text in the TextSwitcher and observe the |
| 67 | in and out fade animations. |
| 68 | |
| 69 | [1]: http://developer.android.com/reference/android/widget/TextSwitcher.html |
| 70 | [2]: http://developer.android.com/reference/android/widget/ViewSwitcher.html |
| 71 | [3]: http://developer.android.com/reference/android/widget/TextSwitcher.html#setText(java.lang.CharSequence) |
| 72 | ]]> |
| 73 | </intro> |
| 74 | </metadata> |
| 75 | |
| Trevor Johns | a6b4636 | 2013-10-30 16:38:01 -0700 | [diff] [blame] | 76 | </sample> |