mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Loads and displays default or English description, and categories. No caching of this info yet. Scrollable pane is a ListView, with the title/desc/category label in a 'header' view along with a spacer view. The height of the spacer is set dynamically to the height of the total fragment minus 48dp, giving room for an initially-visible title section and a little spillover so you can see it's scrollable. Clicking on a category in the cats list opens the category page in an external web browser. In the future this should open the category within the app, but we don't have a per-cat view yet. Description and category list are not yet editable. GitHub: https://github.com/wikimedia/apps-android-commons/pull/41 Change-Id: I46d0a77481dbe64a268a72f3efe49ae72168541f
41 lines
No EOL
1.6 KiB
XML
41 lines
No EOL
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:orientation="vertical"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:background="@android:color/background_dark"
|
|
>
|
|
<ProgressBar android:id="@+id/mediaDetailImageLoading"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:indeterminate="true"
|
|
android:visibility="visible"
|
|
/>
|
|
|
|
<ImageView android:id="@+id/mediaDetailImageFailed"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:src="@android:drawable/ic_menu_close_clear_cancel"
|
|
android:visibility="gone"
|
|
/>
|
|
|
|
<org.wikimedia.commons.MediaWikiImageView android:id="@+id/mediaDetailImage"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:scaleType="fitCenter"
|
|
/>
|
|
|
|
<ListView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/mediaDetailListView"
|
|
android:divider="#00A0A0A0"
|
|
android:fillViewport="true"
|
|
android:background="@android:color/transparent"
|
|
android:cacheColorHint="@android:color/transparent"
|
|
/>
|
|
|
|
</FrameLayout> |