Flym icon indicating copy to clipboard operation
Flym copied to clipboard

Cleanup of HTML/CSS in EntryView.java

Open mhuhtala opened this issue 12 years ago • 1 comments

I just pushed a FeedEx branch on GitHub with some changes to EntryView.java.

  • Style and layout definitions are completely separated from HTML and placed in the CSS. This makes the HTML simpler and the HTML generation code a bit more readable. The stylesheet also includes rules for things like 'blockquote' elements, 'ul' and 'ol' lists in order to try to lay them out in a way that is readable on small displays.
  • The 'font' elements are gone. 'Font' was deprecated in HTML several years before the first Android device ever became available. For the font size preference setting, my code uses WebView's textZoom setting instead of inserting 'font' elements into the HTML. This makes the code a bit simpler and gets rid of a few lines of conditional HTML-generation.

I branched from v 1.4.1 and there are some conflicting changes in HoloAddict's current master, but it should be fairly easy to merge my branch in case anyone is interested.

mhuhtala avatar Jan 05 '14 22:01 mhuhtala

Hi!

Thank you for your CSS clean up, I agree it's way better like this (I'm not very good with html...). I just merge your changes.

Nevertheless, I did make some small graphical changes to look better, are you ok with them?

Once again, thanks for your participation.

FredJul avatar Jan 06 '14 21:01 FredJul