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>DisplayingBitmaps</name> 19 <group>UI</group> 20 <package>com.example.android.displayingbitmaps</package> 21 22 <!-- change minSdk if needed--> 23 <minSdk>7</minSdk> 24 25 <strings> 26 <intro> 27 <![CDATA[ 28 This is a sample application for the Android Training class 29 "Displaying Bitmaps Efficiently" 30 (http://developer.android.com/training/displaying-bitmaps/).\n\n 31 32 It demonstrates how to load large bitmaps efficiently off the main UI thread, caching 33 bitmaps (both in memory and on disk), managing bitmap memory and displaying bitmaps 34 in UI elements such as ViewPager and ListView/GridView. 35 ]]> 36 </intro> 37 </strings> 38 39 <template src="base"/> 40 <common src="logger"/> 41 42 <metadata> 43 <status>PUBLISHED</status> 44 <categories>UI, Background, Views</categories> 45 <technologies>Android</technologies> 46 <languages>Java</languages> 47 <solutions>Mobile</solutions> 48 <level>ADVANCED</level> 49 <icon>screenshots/icon-web.png</icon> 50 <screenshots> 51 <img>screenshots/1-gridview.png</img> 52 <img>screenshots/2-detail.png</img> 53 </screenshots> 54 <api_refs> 55 <android>android.widget.ImageView</android> 56 <android>android.widget.GridView</android> 57 <android>android.graphics.BitmapFactory</android> 58 <android>android.os.AsyncTask</android> 59 <android>android.util.LruCache</android> 60 <android>android.support.v4.view.ViewPager</android> 61 </api_refs> 62 <description> 63 <![CDATA[ 64 Sample demonstrating how to load large bitmaps efficiently off the main UI thread, 65 caching bitmaps (both in memory and on disk), managing bitmap memory and displaying 66 bitmaps in UI elements such as ViewPager and ListView/GridView. 67 ]]> 68 </description> 69 <intro> 70 <![CDATA[ 71 This is a sample application for the Android Training class [Displaying Bitmaps Efficiently][1]. 72 73 It demonstrates how to load large bitmaps efficiently off the main UI thread, caching 74 bitmaps (both in memory and on disk), managing bitmap memory and displaying bitmaps 75 in UI elements such as ViewPager and ListView/GridView. 76 77 [1]: http://developer.android.com/training/displaying-bitmaps/ 78 ]]> 79 </intro> 80 </metadata> 81 </sample> 82