forked from FolioReader/FolioReader-Android
-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration
Hrishikesh Kadam edited this page Jun 29, 2018
·
2 revisions
Set reading direction mode options for users. This method should be called before setDirection(Direction) as it has higher preference.
Parameters:
-
allowedDirection
- reading direction mode options for users. Setting toVERTICAL_AND_HORIZONTAL
users will have choice to select the reading direction at runtime.
Set reading direction. This method should be called after setAllowedDirection(AllowedDirection) as it has lower preference.
Parameters:
-
direction
- reading direction.
Parameters:
-
font
- You can choose custom font provided by FolioReader:-
Constants.FONT_ANDADA
= 1 -
Constants.FONT_LATO
= 2 -
Constants.FONT_LORA
= 3 -
Constants.FONT_RALEWAY
= 4
-
Parameters:
-
fontSize
- You can choosefontSize
from 0 to 4, 0 being textSizeOne till 4 as textSizeFive.
Parameters:
-
nightMode
-true
makes night mode on.
Parameters:
-
themeColor
- Color resource applied app wide as accent color.
Parameters:
-
showTts
- flag to toggle TextToSpeech feature.