1
2Android DisplayingBitmaps Sample
3===================================
4
5Sample demonstrating how to load large bitmaps efficiently off the main UI thread,
6caching bitmaps (both in memory and on disk), managing bitmap memory and displaying
7bitmaps in UI elements such as ViewPager and ListView/GridView.
8
9Introduction
10------------
11
12This is a sample application for the Android Training class [Displaying Bitmaps Efficiently][1].
13
14It demonstrates how to load large bitmaps efficiently off the main UI thread, caching
15bitmaps (both in memory and on disk), managing bitmap memory and displaying bitmaps
16in UI elements such as ViewPager and ListView/GridView.
17
18[1]: http://developer.android.com/training/displaying-bitmaps/
19
20Pre-requisites
21--------------
22
23- Android SDK 27
24- Android Build Tools v27.0.2
25- Android Support Repository
26
27Screenshots
28-------------
29
30<img src="screenshots/1-gridview.png" height="400" alt="Screenshot"/> <img src="screenshots/2-detail.png" height="400" alt="Screenshot"/>
31
32Getting Started
33---------------
34
35This sample uses the Gradle build system. To build this project, use the
36"gradlew build" command or use "Import Project" in Android Studio.
37
38Support
39-------
40
41- Google+ Community: https://plus.google.com/communities/105153134372062985968
42- Stack Overflow: http://stackoverflow.com/questions/tagged/android
43
44If you've found an error in this sample, please file an issue:
45https://github.com/googlesamples/android-DisplayingBitmaps
46
47Patches are encouraged, and may be submitted by forking this project and
48submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
49
50License
51-------
52
53Copyright 2017 The Android Open Source Project, Inc.
54
55Licensed to the Apache Software Foundation (ASF) under one or more contributor
56license agreements.  See the NOTICE file distributed with this work for
57additional information regarding copyright ownership.  The ASF licenses this
58file to you under the Apache License, Version 2.0 (the "License"); you may not
59use this file except in compliance with the License.  You may obtain a copy of
60the License at
61
62http://www.apache.org/licenses/LICENSE-2.0
63
64Unless required by applicable law or agreed to in writing, software
65distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
66WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
67License for the specific language governing permissions and limitations under
68the License.
69