Commit graph

13 commits

Author SHA1 Message Date
Nicolas Raoul
5ceb9aba69 Fixed namespace typo 2015-09-08 16:37:39 +09:00
Nicolas Raoul
97a57be47a Modified namespace so that app can be published on Google Play 2015-09-08 10:08:34 +09:00
Brion Vibber
e46a1fac88 UI matching in detail view to iOS version
* ListView -> LinearLayout for categories
* Add labels for fields
* Cool transparent rectangles!
* Padding adjustments...
* Darken image when scrolling detail panel up
* Placeholders for empty desc, license fields

Change-Id: I0e4c4348e741af3560d455ee4b793c2743626fbf
2013-10-21 14:47:26 -07:00
Brion Vibber
4df8ec8fa9 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
2013-08-27 03:51:14 +05:30
YuviPanda
65a01c4459 Disallow newlines in multiple upload edit title window
Bug: 46761

Change-Id: Ieb948364bee8828937bc488549d1dbf5ce7b6cd6
GitHub: https://github.com/wikimedia/apps-android-commons/pull/7
2013-06-13 20:33:44 +00:00
YuviPanda
57888260ec Volley images
Add support for using Volley to load remote images instead of UIL

1. Gives us Caching
2. Load images at full resolution, rather than hardcode them. This is done by trying to fetch an image at highest width possible for the particular view. If it 500s, we assume that the image is smaller than the requested width and just request the full size image
3. Created a MediaWikiImageView, to which you can pass a Media object and it will display it. Takes care of sizing, etc. Optionally you can also specify a view to use as the 'loading' view.

TODO:
Loading from content:// URIs still use UIL. Need to write a Volley HTTP Stack that can fake responses for content:// URIs.

GitHub: https://github.com/wikimedia/apps-android-commons/pull/1
Change-Id: Ia21a7b19fefa552d5a0b013085d0f5f1f80dc5ff
2013-06-12 20:44:57 +00:00
Brion Vibber
ca92bd6a90 Fix title text color in detail view on Gingerbread
Text color wasn't being set on the EditText, defaulted to black on Gingerbread.
Set to white to match the list.
2013-05-20 11:34:56 -07:00
Brion Vibber
c0a405c3c7 Disable spell suggestions in non-editable title view on detail page 2013-05-20 11:26:42 -07:00
Brion Vibber
e171d22fea Tweak input boxes so the IME doesn't eat fullscreen in landscape
android:imeOptions="flagNoExtractUI"
Will make screencasts suck less since they get forced to landscape...
2013-05-09 16:16:52 -07:00
YuviPanda
2976268291 Fix styling on 2.3
Also switch to Holo Dark, which is what we wanted anyway
2013-03-20 15:11:50 +05:30
YuviPanda
4977e0a800 Add editable swipeable multiple upload view
Major changes everywhere. Uses MediaDetailFragment for editing.
2013-03-20 01:17:17 +05:30
YuviPanda
7f1ab39683 Show loading progress for images in detail view 2013-02-23 16:47:13 +05:30
YuviPanda
0cb11284ff Add minimal detail view as a fragment 2013-02-21 21:09:04 +05:30