Make thumbnails load faster by loading smaller Thumbnails

GitHub: https://github.com/wikimedia/apps-android-commons/pull/25
Change-Id: I0af540a1d84348a7a3e67c6037cd509b88b84b21
This commit is contained in:
YuviPanda 2013-07-10 20:44:59 +00:00 committed by SuchABot
parent 35736733c3
commit 81e79cf096
3 changed files with 22 additions and 0 deletions

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res/org.wikimedia.commons"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
@ -20,6 +21,7 @@
android:layout_width="fill_parent"
android:layout_height="240dp"
android:scaleType="centerCrop"
custom:isThumbnail="true"
/>
<LinearLayout

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="MediaWikiImageView">
<attr name="isThumbnail" format="boolean" />
</declare-styleable>
</resources>