Media detail page redone as a "slide-up" panel.

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
This commit is contained in:
Brion Vibber 2013-06-25 13:41:29 -07:00 committed by YuviPanda
parent a1d435f86e
commit 4df8ec8fa9
13 changed files with 586 additions and 30 deletions

View file

@ -28,31 +28,14 @@
android:scaleType="fitCenter"
/>
<RelativeLayout
<ListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center|bottom"
android:background="#AA000000"
android:padding="8dp"
>
<EditText
android:id="@+id/mediaDetailTitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:imeOptions="flagNoExtractUi"
android:inputType="textNoSuggestions"
android:singleLine="true"
android:textColor="#FFFFFF"/>
<!-- <TextView
android:id="@+id/mediaDetailDescription"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/mediaDetailTitle"
android:layout_alignParentBottom="true"
style="?android:textAppearanceSmall"
android:textColor="#FFFFFFFF"
/> -->
</RelativeLayout>
android:id="@+id/mediaDetailListView"
android:divider="#00A0A0A0"
android:fillViewport="true"
android:background="@android:color/transparent"
android:cacheColorHint="@android:color/transparent"
/>
</FrameLayout>