An open API service indexing awesome lists of open source software.

https://github.com/gofaith/faithdroid

☆Go语言的Android GUI框架☆Android GUI lib for Go
https://github.com/gofaith/faithdroid

android framework go golang gui library

Last synced: 9 months ago
JSON representation

☆Go语言的Android GUI框架☆Android GUI lib for Go

Awesome Lists containing this project

README

          

# 全新的Go语言Android GUI框架
New Android GUI lib for GO

![logo](https://avatars2.githubusercontent.com/u/38978951?s=200&v=4)

# [Donate捐赠](https://jywjl.github.io/donate.html)

! 正在添加iOS支持,敬请期待 !

- [中文文档](https://github.com/gofaith/faithdroid/wiki/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B)
- [Wiki](https://github.com/gofaith/faithdroid/wiki)

---
## 快速入门 Get started

1.基础示例 'Hello world' code :

```Go
package faithdroid

func (a *MainActivity) OnCreate() {
LinearLayout(a).DeferShow().Size(-2, -2).Append(
TextView(a).SetId("text").Text("text view"),
Button(a).Size(-1, -1).Text("change text").OnClick(func() {
GetTextViewById("text").Text("text changed")
}))
}
```
2.结果 Result

![hello](https://github.com/gofaith/faithdroid/blob/master/res/hello.jpeg?raw=true)

---

## 使用Faithdroid开发的App

[局域网精灵专业版](https://jywjl.github.io)

## Explore more

- [中文文档](https://github.com/gofaith/faithdroid/wiki/%E7%9B%AE%E5%BD%95)
- [Wiki](https://github.com/gofaith/faithdroid/wiki)