This repository has been archived by the owner on Apr 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 369
5.3 · SpannableDocumentLayout
Mathew Kurian edited this page Nov 26, 2014
·
1 revision
##SpannableDocumentLayout
###Class Overview
Calculates the position of each line/word/paragraph. Call measure
to calculate the positions. Call draw
to render the text.
####Constructors
Description | |
---|---|
SpannableDocumentLayout(Paint paint) Constructs a DocumentLayout with the specified the Paint which will be used to draw |
####Public Methods
Return | Description |
---|---|
void |
setText(CharSequence source) Set the content that needs to be displayed. |
void |
getLayoutParams() Get the LayoutParams that would be used to configure the layout settings. |
CharSequence |
getText() Return the text the this is displaying. |
int |
getMeasuredHeight() Get the height calculated by the layout with the specified text and Paint . |
void |
measure() Construct the static text positions. |
void |
draw(Canvas canvas) Draw the content measured by the layout onto the specified Canvas . |
Warning: Wiki is slightly out of date at the moment
Copyright © 2012-2015 TextJustify-Android