yDelouis / selfoss-android

Android application for Selfoss
MIT License
41 stars 9 forks source link

Image title display on long click #15

Closed caksoylar closed 10 years ago

caksoylar commented 10 years ago

It would be nice to be able to see image title/caption/alt-text/hover text in the app somehow (which is essential for some feeds such as the feed of xkcd.com). A typical implementation could be long clicking on the image to display the title on a pop up box, or displaying a context menu (which may include other options as well) from which it can be selected.

It doesn't seem like WebView has a standard interface for this. A relevant resource might be http://stackoverflow.com/questions/3449098/enable-longclick-in-webview tt-rss seems to have implemented a similar mechanism, see https://github.com/gothfox/Tiny-Tiny-RSS-for-Honeycomb/blob/master/src/org/fox/ttrss/ArticleFragment.java

yDelouis commented 10 years ago

Why not. Could you try to implement this feature and to propose a PR ?

caksoylar commented 10 years ago

It might not be pretty, but I managed to put together code that shows image's title tag on long press. I will be proposing a pull request shortly.

yDelouis commented 10 years ago

Closed by merged PR #16. Thanks.