Comments (2)
I don't think that the alignment isn't working, but rather your text layout's width is the exact width of the text, so there's nothing to center. If you increase the width of your layout, then you should see that it is aligned properly.
from textlayoutbuilder.
I got it.
Thank you.
from textlayoutbuilder.
Related Issues (19)
- Support for break strategy HOT 3
- AbsoluteSizeSpan doesn't Scale Correctly
- `public Layout build()` method should contain @Nullable annotation for better kotlin interop
- Layout on background thread? HOT 5
- No support for letter spacing
- Add support for setJustificationMode HOT 1
- Gradle fails to resolve version 1.3.1 HOT 4
- No release notes for 1.5.0 HOT 1
- How to set clickable span with staticLayout HOT 1
- What about migration on AndroidX?
- Restrictions on non-SDK interfaces HOT 1
- Abc
- Threre is no "setTextAppearance()" method in TextLayoutBuilder HOT 2
- the hide constructor method of android.text.StaticLayout HOT 2
- Usage 3 the method onDraw is wrong HOT 1
- GlyphWarmerImpl's Picture is not drawn on View? HOT 2
- Why infinity loop? HOT 4
- Creation of StaticLayout HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textlayoutbuilder.