mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
256 lines
No EOL
11 KiB
XML
256 lines
No EOL
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/mainBackground"
|
|
>
|
|
|
|
<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"
|
|
android:contentDescription="@string/mediaimage_failed"
|
|
/>
|
|
|
|
<fr.free.nrw.commons.MediaWikiImageView
|
|
android:id="@+id/mediaDetailImage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:actualImageScaleType="fitCenter"
|
|
/>
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/mediaDetailScrollView"
|
|
android:fillViewport="true"
|
|
android:background="@android:color/transparent"
|
|
android:cacheColorHint="@android:color/transparent"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
>
|
|
|
|
<!-- 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. -->
|
|
<fr.free.nrw.commons.media.MediaDetailSpacer
|
|
android:layout_width="match_parent"
|
|
android:layout_height="16dp"
|
|
android:id="@+id/mediaDetailSpacer"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/fragmentCategorisationBackground"
|
|
android:padding="16dp"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/subBackground"
|
|
android:padding="16dp"
|
|
>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@android:color/white"
|
|
android:text="@string/media_detail_title"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:paddingBottom="6dp"
|
|
/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/media_detail_media_title"
|
|
android:id="@+id/mediaDetailTitle"
|
|
android:layout_gravity="start"
|
|
android:textColor="@android:color/white"
|
|
android:background="?attr/subBackground"
|
|
android:textSize="14sp"
|
|
android:padding="12dp"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<fr.free.nrw.commons.media.MediaDetailSpacer
|
|
android:layout_width="match_parent"
|
|
android:layout_height="8dp"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/subBackground"
|
|
android:padding="16dp"
|
|
>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/media_detail_description"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:paddingBottom="6dp"
|
|
/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/media_detail_description_explanation"
|
|
android:background="?attr/subBackground"
|
|
android:id="@+id/mediaDetailDesc"
|
|
android:textColor="@android:color/white"
|
|
android:layout_gravity="start"
|
|
android:textSize="14sp"
|
|
android:padding="12dp"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<fr.free.nrw.commons.media.MediaDetailSpacer
|
|
android:layout_width="match_parent"
|
|
android:layout_height="8dp"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/subBackground"
|
|
android:padding="16dp"
|
|
>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/media_detail_license"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:paddingBottom="6dp"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/mediaDetailLicense"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start"
|
|
android:background="?attr/subBackground"
|
|
android:text="@string/media_detail_license"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14sp"
|
|
android:padding="12dp"
|
|
tools:text="License link" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/subBackground"
|
|
android:padding="16dp"
|
|
>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@android:color/white"
|
|
android:text="@string/media_detail_coordinates"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:paddingBottom="6dp"
|
|
/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/media_detail_coordinates"
|
|
android:id="@+id/mediaDetailCoordinates"
|
|
android:layout_gravity="start"
|
|
android:background="?attr/subBackground"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14sp"
|
|
android:padding="12dp"
|
|
tools:text="Coordinates link"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<fr.free.nrw.commons.media.MediaDetailSpacer
|
|
android:layout_width="match_parent"
|
|
android:layout_height="8dp"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/subBackground"
|
|
android:padding="16dp"
|
|
android:textStyle="bold"
|
|
>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/detail_panel_cats_label"
|
|
android:textSize="16sp"
|
|
android:layout_gravity="start"
|
|
android:textColor="@android:color/white"
|
|
android:paddingBottom="6dp"
|
|
/>
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/mediaDetailCategoryContainer"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<fr.free.nrw.commons.media.MediaDetailSpacer
|
|
android:layout_width="match_parent"
|
|
android:layout_height="8dp"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/subBackground"
|
|
android:padding="16dp"
|
|
>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/media_detail_uploaded_date"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:paddingBottom="6dp"
|
|
/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/media_detail_uploaded_date"
|
|
android:background="?attr/subBackground"
|
|
android:id="@+id/mediaDetailuploadeddate"
|
|
android:textColor="@android:color/white"
|
|
android:layout_gravity="start"
|
|
android:textSize="14sp"
|
|
android:padding="12dp"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
</FrameLayout> |