-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update AlignmentApproach to AlignmentRendering
- Loading branch information
Showing
26 changed files
with
155 additions
and
152 deletions.
There are no files selected for viewing
9 changes: 0 additions & 9 deletions
9
aztec/src/main/kotlin/org/wordpress/aztec/AlignmentApproach.kt
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
aztec/src/main/kotlin/org/wordpress/aztec/AlignmentRendering.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.wordpress.aztec | ||
|
||
/** | ||
* With [SPAN_LEVEL] any alignment must be specified at the span level. Importantly, this | ||
* means that the View's gravity will always be ignored in determining the rendering of | ||
* the text's alignment. | ||
* | ||
* With [VIEW_LEVEL] alignment, the rendering of alignment is determined by the View's gravity. | ||
* Note that it is not possible to update the underlying alignment using [AztecText.toggleFormatting] | ||
* when you are using [VIEW_LEVEL] alignment rendering. | ||
*/ | ||
enum class AlignmentRendering { SPAN_LEVEL, VIEW_LEVEL } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.