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