有多好Kivy为Android?多好、Kivy、Android

2023-09-04 23:48:42 作者:阳光下丶歇斯底里的含笑

很少有人写kivy,可以请你告诉我有多好kivy跨平台的框架,为Android?

Very little is written about kivy, can you please tell me how good is kivy cross platform framework for Android?

推荐答案

Kivy是开源库开发多点触控的应用程序。这是完全跨平台(Linux的/ OSX /运),并有GNU LGPL条款发布。

Kivy is an open source library for developing multi-touch applications. It is completely cross-platform (Linux/OSX/Win) and released under the terms of the GNU LGPL.

它配备了许多多点触摸输入设备的原生支持,多点触摸感知部件和硬件加速的OpenGL图形的越来越多库。 Kivy旨在让您专注于构建自定义和高度交互性的应用,方便快捷地为可能的。

It comes with native support for many multi-touch input devices, a growing library of multi-touch aware widgets and hardware accelerated OpenGL drawing. Kivy is designed to let you focus on building custom and highly interactive applications as quickly and easily as possible.

通过Kivy,你可以利用的Python的动态特性充分利用。有数以千计的高品质,免费的图书馆,可以集成在应用程序中。同时,性能关键部件在C语言翻译实施

With Kivy, you can take full advantage of the dynamic nature of Python. There are thousands of high-quality, free libraries that can be integrated in your application. At the same time, performance-critical parts are implemented in the C langu

Kivy在Android

Kivy能够在Android上运行,但你需要一个手机:

Kivy is able to run on android, but you need a phone with:

  在SD卡   的OpenGL ES 2.0(Android 2.2的最低要求)   

有关Android应用程序的要求

Requirements for android application

要创建Android平台的应用程序,你必须有一个在你的应用程序的根目录中名为main.py文件,处理Android平台在名称测试:

To create an application for Android platform, you must have a file named main.py in the root directory of your application, handling the android platform in the name test:

if __name__ in ('__main__', '__android__'):
    YourApp().run()

创建APK

在整个过程中创建一个包Androiddocumentation 描述。

有关详细信息 Kivy在Android

编辑:

在Android上的安装

Installation on Android

Android版不完全支持呢。检查Kivy在Android关于当前状态的详细信息。

The Android version is not fully supported yet. Check Kivy on Android for more information about the current status.

请注意, Kivy是一个框架。您的手机上安装Kivy本身会什么都不做。 Kivy不是应用程序

Please note that Kivy is a framework. Installing Kivy itself on your phone will do absolutely nothing. Kivy is not an application.

这是说,我们提供了一个启动器,让您的Kivy应用程序推送到您的手机,并通过一个简单的界面执行。我们将提供说明打包Kivy应用程序在一个独立的方式在未来。

That said, we provide a "launcher" that allows you to push your Kivy application onto your phone and execute it through a simple interface. We’ll provide instructions for packaging your Kivy application in a standalone way in the future.

要安装Kivy启动程序,您必须:

To install the Kivy launcher, you must:

转到Kivy启动Android市场上 点击上安装 选择您的手机......而就大功告成了!

现在,你可以把你Kivy应用在SD卡上的Kivy目录。

Now, you can put your Kivy applications in the Kivy directory on the SD Card.

 
精彩推荐
图片推荐