mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
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:
parent
35736733c3
commit
81e79cf096
3 changed files with 22 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
6
commons/res/values/views.xml
Normal file
6
commons/res/values/views.xml
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue