问题描述
我有关于
我如何能实现Lettrine(丢弃大写字母)渲染的Android?我的意思是,一个小部件会自动呈现一个lettrine。
How can I implement a 'Lettrine' (dropped initial capital letter) render in android?I mean, a widget that renders a lettrine automatically.
下面是一个例子就是我要找:
Here is an example of what I'm looking for:
我敢肯定没有简单的方式来做到这一点,但如果任何可以帮助...所有的想法都欢迎。
I'm quite sure there is no "simple way" to do it, but if any could help...All ideas are welcomed.
如果您也有兴趣在那样的Android窗口小部件,我会很乐意合作并释放我们在LGPL许可工作; - )的
If you are also interested in that kind of android widget, I'll be happy to collaborateand to release our work under LGPL license ;-)
推荐答案
最简单的方法是把文本与相应的CSS一个web视图,并让浏览器间$ P $磅的东西。
The easiest way would be to put the text in a WebView with the appropriate CSS, and let the browser interpret the thing.
至于widgerts,在Android中所有的布局矩形。有没有简单的方法来做到这一点。我想,你可以用自定义的<一个实现这一目标href="http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android/2.1_r2/android/text/StaticLayout.java/"相对=nofollow> StaticLayout 。
As for widgerts, all layouts in Android are rectangular. There is no easy way to do this. I think, you can achieve this with a custom StaticLayout.
这篇关于我怎样才能实现“Lettrine”呈现机器人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!