C ++中的Android UI [英] Android UI in C++

查看:90
本文介绍了C ++中的Android UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是在重新发明轮子,但是用C ++实现android用户界面会有多困难?创建按钮之类的东西以及处理按钮单击之类的触摸屏事件是否很困难?这可行吗?如果可以,您将如何去做呢?

I know this is kind of reinventing the wheel, but how hard would it be to implement an android user interface with C++? Is it hard to create things like buttons, and to handle touch screen events like button clicks? Is this feasible and if so, how would you go about doing it?

推荐答案

看看 Necessitas ,它是Android的Qt端口,似乎运行良好.

Take a look at Necessitas, its a Qt port for android which seems to work pretty well.

尽管它可能仍处于Alpha或Beta阶段,所以这取决于您的项目有多严重".但这可以肯定的是,不仅可以使用库,还可以使用普通的C ++来构建完整的应用程序.

It might still be in Alpha or Beta stage though, so it will depends on how "serious" your project is. But that proves for sure that one can use plain C++ to build a complete application, not only libraries.

这篇关于C ++中的Android UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆