mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
List of available licenses is pre-extracted from UploadWizard
MediaWiki extension. This should eventually be switched to use
some live query to the site configuration.
The license display is more or less localizable, for known templates.
Unrecognized templates specified as parameters to {{self}} will be
recognized (unlocalized) but others may not be.
Change-Id: I9df5fe807798a191a3bb0a45464760c75f19e366
56 lines
2.7 KiB
XML
56 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:orientation="vertical"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent">
|
|
|
|
<!-- Placeholder. Height gets set at runtime based on container size; the initial value is a hack to keep
|
|
the detail info offscreen until it's placed properly. May be a better way to do this. -->
|
|
<org.wikimedia.commons.media.MediaDetailSpacer
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="1600dp"
|
|
android:id="@+id/mediaDetailSpacer"/>
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="#AA000000"
|
|
android:padding="8dp">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Title of the media"
|
|
android:id="@+id/mediaDetailTitle"
|
|
android:layout_gravity="left|start"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="18sp" /> <!-- 18sp == MediumText -->
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Description of the media goes here. This can potentially be fairly long, and will need to wrap across multiple lines. We hope it looks nice though."
|
|
android:id="@+id/mediaDetailDesc"
|
|
android:layout_gravity="left|start"/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="License link"
|
|
android:id="@+id/mediaDetailLicense"
|
|
android:layout_gravity="left|start"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="18sp" /> <!-- 18sp == MediumText -->
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/detail_panel_cats_label"
|
|
android:textSize="18sp"
|
|
android:layout_gravity="left|start"
|
|
android:paddingTop="24dp" android:textColor="@android:color/white"/>
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/mediaDetailCategoryList"
|
|
android:layout_gravity="left|start"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|