如何在 Android 布局中拥有浮动图像(右对齐)以及环绕图像的文本?
这有点难以解释,但我想要完成的示例如下:
Here is some text | image |
that is printed | |
out in a view and ---------
it is wrapped around an
image that is floating and
right aligned.
我考虑过在 html 中生成布局并使用 Web 视图,但我需要能够在用户单击时执行操作在图像上。有人有什么想法吗?
预先感谢,
新郎
It's kind of hard to explain, but an example of what I'm wanting to accomplish is like this:
Here is some text | image |
that is printed | |
out in a view and ---------
it is wrapped around an
image that is floating and
right aligned.
I thought about generating the layout in html and using a web view, but I need to be able to perform an action when the user clicks on the image. Does anyone have any ideas?
Thanks in advance,
groomsy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你可以不用 html 做到这一点...
https://github.com/goingkilo/flowing-文本-for-android-/blob/master/screenshot3.png
you can do it without html ...
https://github.com/goingkilo/flowing-text-for-android-/blob/master/screenshot3.png
首先,您必须使用一些 html 代码,为您的 web 视图创建模板...
创建 JSInterface 与您的模板交互,
将界面和模板添加到您的 web 视图!
first you must work with some html code, creating a template for your webview...
Create JSInterface to interact with your template
add the interface and your Template to your webview!