diff options
author | Mark Wei <markwei@google.com> | 2013-10-30 14:23:50 -0700 |
---|---|---|
committer | Mark Wei <markwei@google.com> | 2013-10-31 17:35:05 -0700 |
commit | 2e4d0863dba53435372ec96538f2ef3e1c3675bf (patch) | |
tree | 6d7bbae6bcb78563036ffe5f685ef1a334bd512c /sample/res | |
parent | 22955165fab693684cc3614c84ee81883ae933c8 (diff) | |
download | bitmap-2e4d0863dba53435372ec96538f2ef3e1c3675bf.tar.gz |
Make ExtendedBitmapDrawable extend BasicBitmapDrawable.
Modify sample app to use ExtendedBitmapDrawable with the following features:
Parallax,
Placholder and progress,
Decode aggregator.
Change-Id: Ia9e0fe6e6fdab018077a465ddf2a40109efbddf7
Diffstat (limited to 'sample/res')
-rw-r--r-- | sample/res/drawable-hdpi/ic_placeholder.png | bin | 0 -> 725 bytes | |||
-rw-r--r-- | sample/res/drawable-hdpi/ic_progress_inner.png | bin | 0 -> 2674 bytes | |||
-rw-r--r-- | sample/res/drawable-hdpi/ic_progress_outer.png | bin | 0 -> 2789 bytes | |||
-rw-r--r-- | sample/res/drawable-mdpi/ic_placeholder.png | bin | 0 -> 626 bytes | |||
-rw-r--r-- | sample/res/drawable-mdpi/ic_progress_inner.png | bin | 0 -> 1826 bytes | |||
-rw-r--r-- | sample/res/drawable-mdpi/ic_progress_outer.png | bin | 0 -> 1925 bytes | |||
-rw-r--r-- | sample/res/drawable-xhdpi/ic_placeholder.png | bin | 0 -> 840 bytes | |||
-rw-r--r-- | sample/res/drawable-xhdpi/ic_progress_inner.png | bin | 0 -> 3275 bytes | |||
-rw-r--r-- | sample/res/drawable-xhdpi/ic_progress_outer.png | bin | 0 -> 3416 bytes | |||
-rw-r--r-- | sample/res/drawable-xxhdpi/ic_placeholder.png | bin | 0 -> 1382 bytes | |||
-rw-r--r-- | sample/res/drawable-xxhdpi/ic_progress_inner.png | bin | 0 -> 3516 bytes | |||
-rw-r--r-- | sample/res/drawable-xxhdpi/ic_progress_outer.png | bin | 0 -> 3714 bytes | |||
-rw-r--r-- | sample/res/drawable/progress.xml | 34 | ||||
-rw-r--r-- | sample/res/layout/activity_main.xml | 4 |
14 files changed, 37 insertions, 1 deletions
diff --git a/sample/res/drawable-hdpi/ic_placeholder.png b/sample/res/drawable-hdpi/ic_placeholder.png Binary files differnew file mode 100644 index 0000000..7b05b48 --- /dev/null +++ b/sample/res/drawable-hdpi/ic_placeholder.png diff --git a/sample/res/drawable-hdpi/ic_progress_inner.png b/sample/res/drawable-hdpi/ic_progress_inner.png Binary files differnew file mode 100644 index 0000000..e461e74 --- /dev/null +++ b/sample/res/drawable-hdpi/ic_progress_inner.png diff --git a/sample/res/drawable-hdpi/ic_progress_outer.png b/sample/res/drawable-hdpi/ic_progress_outer.png Binary files differnew file mode 100644 index 0000000..d495aa8 --- /dev/null +++ b/sample/res/drawable-hdpi/ic_progress_outer.png diff --git a/sample/res/drawable-mdpi/ic_placeholder.png b/sample/res/drawable-mdpi/ic_placeholder.png Binary files differnew file mode 100644 index 0000000..752149d --- /dev/null +++ b/sample/res/drawable-mdpi/ic_placeholder.png diff --git a/sample/res/drawable-mdpi/ic_progress_inner.png b/sample/res/drawable-mdpi/ic_progress_inner.png Binary files differnew file mode 100644 index 0000000..0c06981 --- /dev/null +++ b/sample/res/drawable-mdpi/ic_progress_inner.png diff --git a/sample/res/drawable-mdpi/ic_progress_outer.png b/sample/res/drawable-mdpi/ic_progress_outer.png Binary files differnew file mode 100644 index 0000000..46061db --- /dev/null +++ b/sample/res/drawable-mdpi/ic_progress_outer.png diff --git a/sample/res/drawable-xhdpi/ic_placeholder.png b/sample/res/drawable-xhdpi/ic_placeholder.png Binary files differnew file mode 100644 index 0000000..92ed99b --- /dev/null +++ b/sample/res/drawable-xhdpi/ic_placeholder.png diff --git a/sample/res/drawable-xhdpi/ic_progress_inner.png b/sample/res/drawable-xhdpi/ic_progress_inner.png Binary files differnew file mode 100644 index 0000000..273e8e8 --- /dev/null +++ b/sample/res/drawable-xhdpi/ic_progress_inner.png diff --git a/sample/res/drawable-xhdpi/ic_progress_outer.png b/sample/res/drawable-xhdpi/ic_progress_outer.png Binary files differnew file mode 100644 index 0000000..568e9eb --- /dev/null +++ b/sample/res/drawable-xhdpi/ic_progress_outer.png diff --git a/sample/res/drawable-xxhdpi/ic_placeholder.png b/sample/res/drawable-xxhdpi/ic_placeholder.png Binary files differnew file mode 100644 index 0000000..18ac128 --- /dev/null +++ b/sample/res/drawable-xxhdpi/ic_placeholder.png diff --git a/sample/res/drawable-xxhdpi/ic_progress_inner.png b/sample/res/drawable-xxhdpi/ic_progress_inner.png Binary files differnew file mode 100644 index 0000000..c95c1bf --- /dev/null +++ b/sample/res/drawable-xxhdpi/ic_progress_inner.png diff --git a/sample/res/drawable-xxhdpi/ic_progress_outer.png b/sample/res/drawable-xxhdpi/ic_progress_outer.png Binary files differnew file mode 100644 index 0000000..fbf00d3 --- /dev/null +++ b/sample/res/drawable-xxhdpi/ic_progress_outer.png diff --git a/sample/res/drawable/progress.xml b/sample/res/drawable/progress.xml new file mode 100644 index 0000000..2db9837 --- /dev/null +++ b/sample/res/drawable/progress.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2013, The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item> + <rotate + android:drawable="@drawable/ic_progress_outer" + android:pivotX="50%" + android:pivotY="50%" + android:fromDegrees="0" + android:toDegrees="1080" /> + </item> + <item> + <rotate + android:drawable="@drawable/ic_progress_inner" + android:pivotX="50%" + android:pivotY="50%" + android:fromDegrees="720" + android:toDegrees="0" /> + </item> +</layer-list>
\ No newline at end of file diff --git a/sample/res/layout/activity_main.xml b/sample/res/layout/activity_main.xml index 1b29402..d80841d 100644 --- a/sample/res/layout/activity_main.xml +++ b/sample/res/layout/activity_main.xml @@ -23,6 +23,8 @@ <ListView android:id="@+id/list" android:layout_width="match_parent" - android:layout_height="match_parent" /> + android:layout_height="match_parent" + android:divider="@android:color/transparent" + android:dividerHeight="0px"/> </RelativeLayout> |