gomobile and text

230 views
Skip to first unread message

Mathieu Lonjaret

unread,
Sep 14, 2015, 8:43:19 AM9/14/15
to golang-nuts
Hi,

As I understand it, the only two ways to display some text on the screen are:

-using gl to draw some glyphs, like in golang.org/x/mobile/exp/app/debug/fps.go , which seems pretty gross, especially for lots of text
-bind with some java code to do it

Have I missed a pure Go, non gl, way to do it ?

thanks,
Mathieu

Roberto Saccon

unread,
Sep 14, 2015, 10:26:10 AM9/14/15
to golang-nuts
It seems like the Ivy example (for now only on github in android version) is embedding a webviev, which is  also not pure Go, but at least it gives more options to style the output.

Hyang-Ah Hana Kim

unread,
Sep 14, 2015, 11:20:28 AM9/14/15
to Roberto Saccon, golang-nuts
Yes APIs for native Go app development is very limited.
Nigel et al. are experimenting with golang.org/x/exp/shiny and it will include text support. But it's too early to say anything about it.

You can do gobind with java (e.g. ivy app).
Yesterday I saw github.com/srinathh/mobilehtml5app  from golang-nuts, but I didn't have a chance to look into it yet.


--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
__
Reply all
Reply to author
Forward
0 new messages