mousavi007 / wATL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wATL library Demo sources

NB: library itself hosted now in separate repository - github.com/suwhs/wATLlib

License

GPL v3 (You may support opensource project on bountysource.com)

Description

wATL is a library for android applications with features:

  • formatted text full justification,
  • wrap text around images,
  • auto-hyphenation,
  • adapter for show paginated article with stock ViewPager
  • supported Android version - 2.3 - 5.1+ (both runtimes - ART and DALVIK)

Demo Application available on Google Play

Get it on Google Play

Demo Video on Youtube

Quick Start

Usage:

wATLlib published on jcenter repository, so just

add to dependencies :

compile 'su.whs:wATLlib:+'

more detailed quick start guide

(also, see commercial licenses for proprietary apps on whs.su)

News

UPDATE 02 Jul 15 fix Demo App crash on old version of Android (2.3.3) BaseTextPagerAdapter now can be attached to ViewPager before setText() call

UPDATE 01 Jul 15 extract wATL library to git submodule - standalone library hosted at github.com/suwhs/wATLlib now wATL library contains adapter for ViewPager - to show paginated text

UPDATE 06 Apr 15 added MultiColumnTextViewEx example - widget, that supports automatic columns count calculating depends on screen resolution. limits sets via setColumnLimits(minColumnWidth,maxColumnWidth) or forcing columns count via setColumnsCount(int numOfColumns)

UPDATE 05 Apr 15 added online app demo (via appetize.io)

UPDATE 04 Apr 15 hyphenation rules loading optimization added icons and 'about' activity added image wrap demo activity

UPDATE 03 Apr 15 added Soft-Hyphenation LineBreaker to sample application - so, TextViewEx render justified text using HyphenLineBreaker.class HyphenLineBreaker takes time to initialize (it's adapted third-party code), but initialization required once per launch, and may be optimized. (Indeed it's just demo of wATL feature customizable LineBreaker) screenshots: screenshot 3, screenshot 4

Published Classes

some description on Wiki

  • su.whs.watl.ui.TextViewWS - base class with methods for handling text selection screenshot 1

  • su.whs.watl.ui.ClickableSpanListener - interface for easy handle clicks on drawable onClick() method receive view, span position, and coordinates of image within view

  • su.whs.watl.ui.TextViewEx - class (replacement for stock TextView) with full text justification support (enabled by default) screenshot 2

Contacts

wATL Home
info@whs.su

About

License:GNU General Public License v3.0


Languages

Language:HTML 64.3%Language:Java 35.7%